Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » can't enable GlobalActionHandler
can't enable GlobalActionHandler [message #143047] Mon, 13 October 2003 14:36
Federico is currently offline FedericoFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all!

I'm trying to override the system menu action "Project" -> "Rebuild
Project", because I would like to provide a special build functionality.
I'm using:

//rebuild project
myRebuildAction = new MyRebuildAction();
getViewSite().getActionBars().setGlobalActionHandler(org.ecl ipse.ui.IWorkbenchActionConstants.REBUILD_PROJECT,
myRebuildAction);


It works fine, but I don't manage to get the action enabled if an editor
is enabled (if I get the object related to my editor and start the action
it works fine). I registered a PartListener and in partActivated() method
I wanted to use myRebuildAction.setEnabled(true).

Where is the error to locate? Was this action not meant to be overridden
in this way? Is there a different way to solve the problem?

Thank you in advance for an answer!

Fed
Previous Topic:No IDocument class in org.eclipse.jface.test package in 3.0 M4
Next Topic:just jNI
Goto Forum:
  


Current Time: Mon Nov 11 08:39:03 GMT 2024

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

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

Back to the top