Java 执行后重新检查rcp处理程序
我对我们的propertyTester和启用处理程序有问题。该属性为areUpdatesAvailable,并且当该属性为true时,将启用处理程序。在处理程序执行areUpdatesAvailable值后,该值变为false,但我当前如何设置它,它只在选择更改时进行检查。因此,如果我右键单击某个项目并调用更新处理程序,然后再次右键单击该项目而不更改我的选择,则更新仍处于启用状态,因为它不会再次调用属性测试仪。有没有办法在处理程序执行后再次进行检查Java 执行后重新检查rcp处理程序,java,handler,rcp,Java,Handler,Rcp,我对我们的propertyTester和启用处理程序有问题。该属性为areUpdatesAvailable,并且当该属性为true时,将启用处理程序。在处理程序执行areUpdatesAvailable值后,该值变为false,但我当前如何设置它,它只在选择更改时进行检查。因此,如果我右键单击某个项目并调用更新处理程序,然后再次右键单击该项目而不更改我的选择,则更新仍处于启用状态,因为它不会再次调用属性测试仪。有没有办法在处理程序执行后再次进行检查 <handler class
<handler
class="com.cerner.automation.touchstone.handlers.UpdateExternalReference"
commandId="com.cerner.automation.touchstone.workflow.Update">
<enabledWhen>
<with
variable="selection">
<test
property="com.cerner.automation.touchstone.testers.nodeItem.areUpdatesAvailable" value="true" forcePluginActivation="true">
</test>
<iterate
ifEmpty="false"
operator="and">
<instanceof
value="com.cerner.automation.touchstone.model.ExternalReferenceItem">
</instanceof>
</iterate>
<test
forcePluginActivation="true"
property="com.cerner.automation.touchstone.testers.nodeItem.isInternal"
value="true">
</test>
</with>
</enabledWhen>
</handler>
我最后做的是在处理程序完成后使用requestEvaluation
final IEvaluationService evaluationService = (IEvaluationService) window.getService(IEvaluationService.class);
evaluationService.requestEvaluation(property);
嗨,mdamman,如果你不介意的话,如果你熟悉cerner的编程,你能给我发送你的电子邮件id吗。