Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » How to add a pop-up menu on Table items?
How to add a pop-up menu on Table items? [message #728758] Fri, 23 September 2011 20:51 Go to next message
Marc  is currently offline Marc Friend
Messages: 1
Registered: September 2011
Junior Member
I have an action that takes 1 to many tables and generates code or a report.
How to add a pop-up menu on Table items?

To add a pop-up menu to a java file I've found we do the following:
<extension point="org.eclipse.ui.popupMenus"> 
<objectContribution 
      id="org.eclipse.ui.articles.action.contribution.popup.object"
   objectClass="org.eclipse.core.resources.IFile"
   nameFilter="*.java">
   <filter
         name="projectNature"
         value="org.eclipse.jdt.core.javanature">
      </filter>
      <action
         id="org.eclipse.ui.articles.action.contribution.object.action1" 
         label="Object Action 1"
         icon="icons/red_dot.gif"
         menubarPath="additions" 
      class="org.eclipse.ui.articles.action.contribution.ObjectAction1Delegate"> 
      </action> 
   </objectContribution> 
</extension>


What is the object class to use?

Any link to the doc is appreciated.
Re: How to add a pop-up menu on Table items? [message #733507 is a reply to message #728758] Tue, 04 October 2011 22:22 Go to previous message
Brian Payton is currently offline Brian PaytonFriend
Messages: 152
Registered: July 2009
Senior Member
The Data Source Explorer is an implementation of the Eclipse Common
Navigator Framework. Take a look at the plugin.xml file in the
org.eclipse.datatools.data.core.ui plug-in to see how the Data menu gets
added to Table objects in the DSE.

On 9/23/2011 1:51 PM, Marc wrote:
> I have an action that takes 1 to many tables and generates code or a
> report. How to add a pop-up menu on Table items?
>
> To add a pop-up menu to a java file I've found we do the following:
> <extension point="org.eclipse.ui.popupMenus"> <objectContribution
> id="org.eclipse.ui.articles.action.contribution.popup.object"
> objectClass="org.eclipse.core.resources.IFile"
> nameFilter="*.java">
> <filter
> name="projectNature"
> value="org.eclipse.jdt.core.javanature">
> </filter>
> <action
> id="org.eclipse.ui.articles.action.contribution.object.action1"
> label="Object Action 1"
> icon="icons/red_dot.gif"
> menubarPath="additions"
> class="org.eclipse.ui.articles.action.contribution.ObjectAction1Delegate">
> </action> </objectContribution> </extension>
>
> What is the object class to use?
>
> Any link to the doc is appreciated.
Previous Topic:stored procedure debugging
Next Topic:java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException error while SQL parse
Goto Forum:
  


Current Time: Sat Nov 22 14:31:21 GMT 2014

Powered by FUDForum. Page generated in 0.01619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software