Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » actionSet enablement doesn't work
actionSet enablement doesn't work [message #336886] Thu, 09 July 2009 13:42
Sergey is currently offline Sergey
Messages: 1
Registered: July 2009
Junior Member
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
Previous Topic:Shared workspace problem
Next Topic:Displaying the "About" box in my feature based RCP makes all bundles change into INSTALLED
Goto Forum:
  


Current Time: Thu Oct 23 00:58:13 GMT 2014

Powered by FUDForum. Page generated in 0.01516 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software