Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Editor Context Menu
Editor Context Menu [message #1057809] Wed, 08 May 2013 19:01 Go to next message
Mike Johnson is currently offline Mike Johnson
Messages: 9
Registered: April 2013
Junior Member
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,
Re: Editor Context Menu [message #1057810 is a reply to message #1057809] Wed, 08 May 2013 19:03 Go to previous message
Mike Johnson is currently offline Mike Johnson
Messages: 9
Registered: April 2013
Junior Member
Sorry for double post!
Previous Topic:Genereate Constructor Using Fields with Jackson Annotations
Next Topic:Editor Context Menu
Goto Forum:
  


Current Time: Wed Jul 30 07:12:38 EDT 2014

Powered by FUDForum. Page generated in 0.01514 seconds