Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » How to Customize DSE View?
icon7.gif  How to Customize DSE View? [message #548511] Thu, 22 July 2010 08:42 Go to next message
Marco C is currently offline Marco CFriend
Messages: 6
Registered: July 2010
Location: Italy
Junior Member
Hi all,
I have created a new Eclipse plug-in and i want to utilize the power of the DSE (Data Source Explorer) view in my project.
Now I have created a new perspective and added the " org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or " view to this.
I want to know how I can customize this view (changing the context menus, visualize only some elements of a connections such as tables), I didn't find any clear documentation for doing this.
Thanks in advice. Smile

Marco
Re: How to Customize DSE View? [message #548618 is a reply to message #548511] Thu, 22 July 2010 13:29 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Hi Marco...

The DSE is based on the Eclipse Navigator Framework, so you should be
able to search for example of how to add to that. Here's a link to the
online docs for Galileo:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/cnf.htm

When you say "Change the context menus" - you have the ability to add
new menus, override menu actions, etc. Take a look at the plugin.xml for
org.eclipse.datatools.connectivity.sqm.server.ui for some examples there.

When you say "visualize only some elements of a connection such as a
table", it sounds like you want to filter out some of the other SQL
objects that appear in the tree? If that's the case, you can look at the
section "Defining Filters" in this document:
http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html

Hope that helps some!

--Fitz

marco.cortella@eng.it wrote:
> Hi all,
> I have created a new Eclipse plug-in and i want to utilize the power of
> the DSE (Data Source Explorer) view in my project.
> Now I have created a new perspective and added the "
> org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or " view
> to this.
> I want to know how I can customize this view (changing the context
> menus, visualize only some elements of a connections such as tables), I
> didn't find any clear documentation for doing this.
> Thanks in advice. :)
> Marco
Re: How to Customize DSE View? [message #548827 is a reply to message #548618] Fri, 23 July 2010 08:22 Go to previous messageGo to next message
Marco C is currently offline Marco CFriend
Messages: 6
Registered: July 2010
Location: Italy
Junior Member
Yes, thanks a lot Brian!
But I have a doubt, is not necessary to have an extension point to modify the DSE? I don't see a "org.eclipse.datatools.connectivity.ui.dse" in the possible extension point list... probably I'm missing something?
Re: How to Customize DSE View? [message #549061 is a reply to message #548827] Fri, 23 July 2010 21:48 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Marco C wrote:
> Yes, thanks a lot Brian!
> But I have a doubt, is not necessary to have an extension point to
> modify the DSE? I don't see a
> "org.eclipse.datatools.connectivity.ui.dse" in the possible extension
> point list... probably I'm missing something?
All you need to know is the viewer ID you're extending. Take a look at
the Digital Paper Napkin examples and hopefully that will help. There
are no DSE-specific extension points.
Re: How to Customize DSE View? [message #556434 is a reply to message #548511] Wed, 01 September 2010 10:50 Go to previous messageGo to next message
Antonella  is currently offline Antonella Friend
Messages: 4
Registered: September 2010
Junior Member
Hi all,
I'm new with plugin development so I need very much your help.

This is my problem:
Like Marco I need hide many items by the popup menu. I read suggestions to make this but I'm not able to do this correctly.

My principal doubt is that I have 4 views: 3 are created explicittally by the extensions while 1 uses directly the org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or in my factory class.

Now, I know the view id but I don't know how add filters to hide all popup voices (the ONLY item that I want use is Properties ) ... I read how add filters but I don't understand how... for my case. I need to create a particular extension to make this? If yes ... which?

Someone can help me? I need it very very much!!

Thanks in advance,

Antonella
Re: How to Customize DSE View? [message #557991 is a reply to message #556434] Thu, 09 September 2010 17:13 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Hi Antonella,

Sorry it's taken a while to get back to you...

Can you provide some additional info on WHAT menus you're looking to remove?

There's an example on StackOverflow that describes how they removed a
few menus:
http://stackoverflow.com/questions/1289513/removing-popupmen us-from-cnf-common-navigator-framework-in-eclipse

In the case of the DSE, the view ID is
" org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or "

--Fitz

Antonella wrote:
> Hi all,
> I'm new with plugin development so I need very much your help.
>
> This is my problem:
> Like Marco I need hide many items by the popup menu. I read suggestions
> to make this but I'm not able to do this correctly.
>
> My principal doubt is that I have 4 views: 3 are created explicittally
> by the extensions while 1 uses directly the
> org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or in my
> factory class.
>
> Now, I know the view id but I don't know how add filters to hide all
> popup voices (the ONLY item that I want use is Properties ) ... I read
> how add filters but I don't understand how... for my case. I need to
> create a particular extension to make this? If yes ... which?
>
> Someone can help me? I need it very very much!!
>
> Thanks in advance,
>
> Antonella
Re: How to Customize DSE View? [message #597771 is a reply to message #548511] Thu, 22 July 2010 13:29 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Hi Marco...

The DSE is based on the Eclipse Navigator Framework, so you should be
able to search for example of how to add to that. Here's a link to the
online docs for Galileo:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/cnf.htm

When you say "Change the context menus" - you have the ability to add
new menus, override menu actions, etc. Take a look at the plugin.xml for
org.eclipse.datatools.connectivity.sqm.server.ui for some examples there.

When you say "visualize only some elements of a connection such as a
table", it sounds like you want to filter out some of the other SQL
objects that appear in the tree? If that's the case, you can look at the
section "Defining Filters" in this document:
http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html

Hope that helps some!

--Fitz

marco.cortella@eng.it wrote:
> Hi all,
> I have created a new Eclipse plug-in and i want to utilize the power of
> the DSE (Data Source Explorer) view in my project.
> Now I have created a new perspective and added the "
> org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or " view
> to this.
> I want to know how I can customize this view (changing the context
> menus, visualize only some elements of a connections such as tables), I
> didn't find any clear documentation for doing this.
> Thanks in advice. :)
> Marco
Re: How to Customize DSE View? [message #597781 is a reply to message #548618] Fri, 23 July 2010 08:22 Go to previous messageGo to next message
Marco C is currently offline Marco CFriend
Messages: 6
Registered: July 2010
Location: Italy
Junior Member
Yes, thanks a lot Brian!
But I have a doubt, is not necessary to have an extension point to modify the DSE? I don't see a "org.eclipse.datatools.connectivity.ui.dse" in the possible extension point list... probably I'm missing something?
Re: How to Customize DSE View? [message #597805 is a reply to message #597781] Fri, 23 July 2010 21:48 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Marco C wrote:
> Yes, thanks a lot Brian!
> But I have a doubt, is not necessary to have an extension point to
> modify the DSE? I don't see a
> "org.eclipse.datatools.connectivity.ui.dse" in the possible extension
> point list... probably I'm missing something?
All you need to know is the viewer ID you're extending. Take a look at
the Digital Paper Napkin examples and hopefully that will help. There
are no DSE-specific extension points.
Re: How to Customize DSE View? [message #597917 is a reply to message #548511] Wed, 01 September 2010 10:50 Go to previous messageGo to next message
Antonella  is currently offline Antonella Friend
Messages: 4
Registered: September 2010
Junior Member
Hi all,
I'm new with plugin development so I need very much your help.

This is my problem:
Like Marco I need hide many items by the popup menu. I read suggestions to make this but I'm not able to do this correctly.

My principal doubt is that I have 4 views: 3 are created explicittally by the extensions while 1 uses directly the org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or in my factory class.

Now, I know the view id but I don't know how add filters to hide all popup voices (the ONLY item that I want use is Properties ) ... I read how add filters but I don't understand how... for my case. I need to create a particular extension to make this? If yes ... which?

Someone can help me? I need it very very much!!

Thanks in advance,

Antonella
Re: How to Customize DSE View? [message #597928 is a reply to message #597917] Thu, 09 September 2010 17:13 Go to previous messageGo to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Hi Antonella,

Sorry it's taken a while to get back to you...

Can you provide some additional info on WHAT menus you're looking to remove?

There's an example on StackOverflow that describes how they removed a
few menus:
http://stackoverflow.com/questions/1289513/removing-popupmen us-from-cnf-common-navigator-framework-in-eclipse

In the case of the DSE, the view ID is
" org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or "

--Fitz

Antonella wrote:
> Hi all,
> I'm new with plugin development so I need very much your help.
>
> This is my problem:
> Like Marco I need hide many items by the popup menu. I read suggestions
> to make this but I'm not able to do this correctly.
>
> My principal doubt is that I have 4 views: 3 are created explicittally
> by the extensions while 1 uses directly the
> org.eclipse.datatools.connectivity.DataSourceExplorerNavigat or in my
> factory class.
>
> Now, I know the view id but I don't know how add filters to hide all
> popup voices (the ONLY item that I want use is Properties ) ... I read
> how add filters but I don't understand how... for my case. I need to
> create a particular extension to make this? If yes ... which?
>
> Someone can help me? I need it very very much!!
>
> Thanks in advance,
>
> Antonella
Re: How to Customize DSE View? [message #636041 is a reply to message #548827] Fri, 29 October 2010 06:54 Go to previous message
Abubaker  is currently offline Abubaker Friend
Messages: 10
Registered: October 2010
Junior Member
Yes brian is right the DTP implements the CNF of eclipse.
All you have to do is to create a normal pop up menu extension and set the objectClass property to be org.eclipse.datatools.connectivity.IConnectionProfile

and then add a command to this menu and write your handler.

this will give you the top most object in the DSE which is the connection profile and you can use it to traverse the all tree.

believe him.

My question is how did you get the DSE to appear in your RCP i want to do that but i do not know how.

[Updated on: Fri, 29 October 2010 06:56]

Report message to a moderator

Previous Topic:Adding context sensitive menu items to the Data Source Explorer
Next Topic:UI Table for editing schema/data
Goto Forum:
  


Current Time: Fri Apr 19 05:11:34 GMT 2024

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

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

Back to the top