Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Can't get a simple popup menu to work(Popup menu)
Can't get a simple popup menu to work [message #1009310] Thu, 14 February 2013 16:54
Zack Macomber is currently offline Zack Macomber
Messages: 1
Registered: February 2013
Junior Member
I'm using Eclipse PDE Version: 3.6.2.r362_v20110203-7b7mFL2FET3dhHalh1iNZtL. My IDE is IBM Rational® Software Architect for WebSphere Software Version: 8.0.4

I'm trying to get a simple popup menu to work via the Plug-In Project popup menu template. The Eclipse version I've specified when creating a new plugin project is 3.6. I'm using J2SE-1.5 as the Execution Environment. The template I'm using is Plug-in with a popup menu. I changed the label names to use "Hello World".

When I choose "Launch an Eclipse Application", and then right-click on a file, I'm not seeing the submenu I specified. Not sure what else I need to do to get this "dummy" popup menu to work.

Here's my plugin.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="org.eclipse.core.resources.IFile"
id="HelloWorldPopupMenu.contribution1">
<menu
label="Zacks Submenu"
path="additions"
id="HelloWorldPopupMenu.menu1">
<separator
name="group1">
</separator>
</menu>
<action
label="Hello World!"
class="helloworldpopupmenu.popup.actions.HelloWorld"
menubarPath="HelloWorldPopupMenu.menu1/group1"
enablesFor="1"
id="HelloWorldPopupMenu.newAction">
</action>
</objectContribution>
</extension>
</plugin>
Previous Topic:How can I create a "Source Folder" browser
Next Topic:Editor plugin : Java inside XML file ?
Goto Forum:
  


Current Time: Sun Apr 20 15:48:22 EDT 2014

Powered by FUDForum. Page generated in 0.02102 seconds