Skip to main content



      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 16:51 Go to next message
Eclipse UserFriend
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 18:22 Go to previous message
Eclipse UserFriend
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:More than one select statement in SQL scrapbook?
Next Topic:java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException error while SQL parse
Goto Forum:
  


Current Time: Sat Jul 12 17:47:20 EDT 2025

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

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

Back to the top