Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » can't enable GlobalActionHandler
can't enable GlobalActionHandler [message #143047] Mon, 13 October 2003 10:36
Eclipse UserFriend
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: Sat May 10 13:05:11 EDT 2025

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

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

Back to the top