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 #596972] 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 #597006 is a reply to message #596972] Fri, 01 January 2010 13:15 Go to previous 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
Previous Topic:About OleDB Connection
Next Topic:database development perspective not visible
Goto Forum:
  


Current Time: Sat Jul 26 09:18:48 EDT 2014

Powered by FUDForum. Page generated in 0.07676 seconds