| [news.eclipse.platform] Re: enabledWhen for handlers and editors |
Paul,
Karl
Karl Koster wrote:This is the contents of the expression definitions extension point:
There are property testers for the properties org.kdr.isNew, org.kdr.isDirty, and org.kdr.isAllowed.
An expression containing the segment below will be re-evaluated when the variable changes ... so when a new active editor is selected.
<with
variable="activeEditor">
<test
property="org.kdr.isDirty"
value="true">
</test>
</with>
This will not get re-evaluated if the current active editor simply goes dirty. You would have to use org.eclipse.ui.services.IEvaluationService.requestEvaluation(String) at the appropriate time to request a re-evaluation of expressions containing your property.
PW