Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Editor Context Menu
Editor Context Menu [message #1057808] Wed, 08 May 2013 18:59 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 #1058156 is a reply to message #1057808] Sun, 12 May 2013 13:49 Go to previous message
Mike Johnson is currently offline Mike Johnson
Messages: 9
Registered: April 2013
Junior Member
Almost a thousand views... any ideas? This is seems basic, someone must know how to do this.

[Updated on: Sun, 12 May 2013 13:49]

Report message to a moderator

Previous Topic:Editor Context Menu
Next Topic:Problem with Dandelion - Lisp development plugin for eclipse
Goto Forum:
  


Current Time: Thu Apr 17 23:38:39 EDT 2014

Powered by FUDForum. Page generated in 0.12876 seconds