Hi,
I'm trying to add a context menu to my main editor screen to start adding code generation/auto-complete functionality.
Just to get the context menu up and running, can someone please help me understand why this basic starting point isn't working?
My plugin.xml:
<plugin>
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="myContribution"
targetID="myTargetID">
<action
id="myAction"
label="This Is A Text Box Test"
class="action">
</action>
</viewerContribution>
</extension>
</plugin>
My file action.java:
public class action {
public action() {
// TODO Auto-generated constructor stub
}
}
Obviously my "class" isn't doing anything at the moment, but - as I understand it - it's what get's called when you click on the new context menu item.
The problem? The context menu item "This Is A Text Box Test" isn't showing up in any editor window I pull up in my debugging instance. I don't see any errors generated. Am I missing something?
Thank you,