Showing properties of e4 view selection in 3.x Properties view [message #1005497] |
Fri, 25 January 2013 12:07  |
Eclipse User |
|
|
|
Hi. I'm developing a RCP with some e4 views and some 3.x. Once I'm using 3.x properties view i'd like that when a select some item in my e4 views, the properties of that element show up in properties view.
How can I manage this?
Should I implement a view 4.x of my own to show propertes of all my RCP objects, including editor's objects, etc, or can I keep hybrid approach? In this case how can I do this? I started with this article: http://www.eclipse.org/articles/Article-Properties-View/properties-view.html and I also looked at the usual extension points:
org.eclipse.ui.views.properties.tabbed.propertyContributor
org.eclipse.ui.views.properties.tabbed.propertySections
...
At this point I've already propagated via Eselectionservice whenever view selection changes.:
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
selectionService.setSelection(selection.size()==1? selection.getFirstElement() : selection.toArray());
Can someone advise me?
Thanks
Rui
|
|
|
|
|
Re: Showing properties of e4 view selection in 3.x Properties view [message #1066656 is a reply to message #1005497] |
Wed, 03 July 2013 11:15  |
Eclipse User |
|
|
|
The problem here is that the Properties view works with the 3.x based selection service, thus when you provide 4.x selection, the Properties view will not detect it.
Long term (4.4/Luna?), this should be fixed by the platform, see bug403930 and also Platform UI/Plan/4.4
I did some trials in creating a properties view which could handle both 3.x and 4.x selections.
The problem was that 4x-parts doesn't need to subclass IWorkbenchPart so I had to do some ugly tricks to fool the 3x property code into working. It is doable but the only long term solution is to get this properly supported by the platform itself. Guess focus for Juno and Kepler has been to get everything working as with 3.x, with good performance etc.
|
|
|
Powered by
FUDForum. Page generated in 0.11894 seconds