Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Adding context sensitive menu items to the Data Source Explorer
Adding context sensitive menu items to the Data Source Explorer [message #505059] Fri, 25 December 2009 18:11 Go to next message
Lance Walton is currently offline Lance Walton
Messages: 5
Registered: July 2009
Junior Member
Hi.

I want to build a tool for which I need a view that is identical to the Data Source Explorer but which has additional menu items.

The EclipseWorld_701_Building_with_the_Data_Tools_project.ppt document says that this view is 'exemplary'. Does that mean that it is meant for 'example' only or something else?

What is the right way for me to proceed? Do I copy what I need, in which case, my tool could potentially co-exist with another tool and have a very similar view? This does not seem like the Eclipse way. Or is there something else I can do?

Regards,

Lance
Re: Adding context sensitive menu items to the Data Source Explorer [message #505567 is a reply to message #505059] Fri, 01 January 2010 08:32 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Lance Walton wrote:
> Hi.
>
> I want to build a tool for which I need a view that is identical to the
> Data Source Explorer but which has additional menu items.
>
> The EclipseWorld_701_Building_with_the_Data_Tools_project.ppt document
> says that this view is 'exemplary'. Does that mean that it is meant for
> 'example' only or something else?
>
> What is the right way for me to proceed? Do I copy what I need, in which
> case, my tool could potentially co-exist with another tool and have a
> very similar view? This does not seem like the Eclipse way. Or is there
> something else I can do?
>
> Regards,
>
> Lance

Hi Lance

That's a VERY old presentation. But it has in fact become much easier to
repurpose the content for the DSE or simply instantiate a new instance
of the view with a different name.

But if all you want to do is add actions to the DSE menus, that's cake.
The DSE (starting a couple of releases ago) uses the Common Navigator
Framework in Eclipse. So it's as easy as contributing a new action that
is associated with IConnectionProfile instances and it should magically
appear.

Take a look at the source for the org.eclipse.datatools.connectivity.ui
plug-in for many examples of how to go about this.

HTH.
--Fitz
Re: Adding context sensitive menu items to the Data Source Explorer [message #634904 is a reply to message #505567] Sun, 24 October 2010 23:18 Go to previous message
Abubaker  is currently offline Abubaker
Messages: 10
Registered: October 2010
Junior Member
Can you please explain more how can I add a menu item when a user right-click on a table on the DSE context menu.
I need this menu handler to get handle of the table to know the meta data of the table, column names, data types..etc.

Appreciate your advise,.
Abu
Previous Topic:Correct implementation of IConnectionFactory
Next Topic:How to Customize DSE View?
Goto Forum:
  


Current Time: Sat Aug 30 06:39:48 EDT 2014

Powered by FUDForum. Page generated in 0.01581 seconds