Hello fellow developers
I have a problem adding and executing an action in the console-view of
eclipse.
I put the following code at the end of the plugin.xml :
<extension point="org.eclipse.ui.viewActions">
<viewContribution
id="de.fu_berlin.inf.dpp.ui.ConsoleContribution"
targetID="org.eclipse.ui.console.ConsoleView">
<action
id="de.fu_berlin.inf.dpp.ui.ShareConsoleAction"
label="SarosConsoleSharing"
toolbarPath="Saros"
icon="icons/obj16/group.png"
tooltip="Share the Console"
class="de.fu_berlin.inf.dpp.ui.actions.TestAction">
</action>
</viewContribution>
</extension>
I created the class TestAction in the package:
de.fu_berlin.inf.dpp.ui.actions
and filled it with the following content:
package de.fu_berlin.inf.dpp.ui.actions;
import org.eclipse.jface.action.Action;
public class TestAction extends Action {
@Override
public void run() {
System.out.println("Action tested");
}
}
In my understanding this should suffice. But when I'm pressing the button an
information window opens containing: "The chosen operation is not currently
available".
Can anybody please help me? Thanks in advance!
Sincerely
Bernd Bieber
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DPP-Devel mailing list
DPP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel