Enable handler based on active page in multi-page editor [message #773109] |
Sat, 31 December 2011 09:08  |
Eclipse User |
|
|
|
Does anyone have an example of enabling a command handler based on the active page of a multi-page editor?
I can enable based on the overall editor via activeEditorId but can't figure out a way to discriminate between pages of the editor. I have tried activePartId in an expression as below, where each <value> in the <or> is a section or page that I want the handler enabled. The handler is still always inactive.
Thanks for reading my question and any help you can provide!
<definition
id="rewindPageActive">
<with
variable="activePartId">
<or>
<equals
value="editor.RedesignWireSection">
</equals>
<equals
value="editor.RedesignWindingSection">
</equals>
<equals
value="editor.RedesignElectricalSection">
</equals>
<equals
value="editor.RedesignDensitiesSection">
</equals>
<equals
value="editor.RedesignCoilsSection">
</equals>
<equals
value="editor.RedesignCircMilSection">
</equals>
<equals
value="editor.RewindMotor">
</equals></or>
</with>
</definition>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03493 seconds