[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: enabledWhen for handlers and editors

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


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm