Editor ToolBar not working [message #324000] |
Tue, 15 January 2008 19:06 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.27941 seconds