Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Editor ToolBar not working
Editor ToolBar not working [message #324000] Tue, 15 January 2008 19:06
Eclipse UserFriend
Hey I am working on a project where a new editor has been built for files from a scripting language called take.


So I made a plugin that works, but now I want buttons on the toolbar for the compiling screen to popup.

So I made this class and linked it to

public class TakeContributer extends BasicTextEditorActionContributor{
...
@Override
public void contributeToToolBar(IToolBarManager toolBarManager) {

TakeCompileToClasses tc2c = new TakeCompileToClasses("Compile to Classes");
tc2c.setActionDefinitionId("nz.ac.massey.take.takeep.actionsSets.TakeCompileToClasses ");
tc2c.setToolTipText("Compile to Classes");
toolBarManager.add(tc2c);

}
}

And I have linked that as the contributer class in plugin.xml.
Now the action shows up in the toolbar, with the corrent text "Compile to Classes" but when I click it the "run" method in the Action is never called and I dont know why?

Thanks
Graham
Previous Topic:Classloading in Eclipse plugin
Next Topic:Faking tooltips on a MenuManager
Goto Forum:
  


Current Time: Wed Jul 16 09:36:55 EDT 2025

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

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

Back to the top