Adding a new command action [message #771380] |
Tue, 27 December 2011 04:23 |
Missing name Mising name Messages: 105 Registered: December 2010 |
Senior Member |
|
|
I'm trying to add a new Action to my app.
I've created the Action class.
In the ApplicationActionBarAdvisor, I create an instance of it, and call register() for that instance.
I also add it to the coolbar and the menu.
In my Manifest, I've created a new command under "org.eclipse.ui.commands" and specified the id, name, description, and categoryId.
When I run the app, the command works, BUT during app startup I get this exception:
java.lang.Exception
at org.eclipse.jface.action.ExternalActionManager$CommandCallback.isActive(ExternalActionManager.java:370)
at org.eclipse.jface.action.ActionContributionItem.isCommandActive(ActionContributionItem.java:647)
The comments in that code say the command is not yet defined.
So, where do I need to define it?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02655 seconds