actionSet enablement doesn't work [message #336886] |
Thu, 09 July 2009 09:42 |
Eclipse User |
|
|
|
Hi,
We need programmatically enable/disable toolbar actions so I added
enablement section to action:
<action
class="de.ids.acos.et.client.ui.eclipse.actions.NewProjectAction "
definitionId="de.ids.acos.et.client.app.commands.NewProject "
icon="icons/createNewModel.gif"
id="de.ids.acos.et.client.ui.eclipse.actions.NewProjectAction "
label="%CreateProject.label"
tooltip="%CreateProject.label">
<enablement>
<systemProperty
name="systempr"
value="systempr">
</systemProperty>
</enablement>
</action>
But after specifying sys property toolbar's button remains disabled, even
after setting property on application startup.
Is it correct or can I disable/enable menu other way?
Thanks,
Sergey
|
|
|
Powered by
FUDForum. Page generated in 0.03532 seconds