Skip to main content


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 SergeyFriend
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 Apr 18 05:30:16 GMT 2024

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

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

Back to the top