0

I'm having trouble making an eclipse plugin. This is what I have done so far, this create a menu item in project explorer (when right clicked) but it is disabled and I don't know why, maybe because the button doesn't do anything right now:

<plugin>
   <extension point="org.eclipse.ui.menus">
      <menuContribution
         locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">

         <command
               commandId="com.project.file"
               label="Files"
               tooltip="Get files"
               style = "push">
         </command>
      </menuContribution>
   </extension>
</plugin>

I want that when the button files is pressed then a window displays hello world. This is just something easy I'm trying to do but I don't know how to connect my java class to my plugin.xml file. Does anybody have an idea on how to do this?

2
Contributors
1
Reply
13
Views
2 Years
Discussion Span
Last Post by stultuske
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.