|
|
Re: Perspective Bar in e4 [message #651542 is a reply to message #651525] |
Mon, 31 January 2011 15:40 |
Christoph Messages: 4 Registered: January 2011 |
Junior Member |
|
|
Thanks, for the hint, Tom. But I still have trouble adding this to my app.
I just added a ToolControl with the URI
platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org. eclipse.e4.ui.workbench.addons.perspectiveswitcher.Perspecti veSwitcher
to my e4xmi file. The switcher is now partly visible but it has no Perspectives attached to ist and I keep getting this exception:
ERROR: Unable to create class 'org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.Pers pectiveSwitcher' from bundle '60'
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalStateException: Workbench has not been created yet.
.
.
.
What am I still missing?
[Updated on: Mon, 31 January 2011 15:40] Report message to a moderator
|
|
|
|
|
|
Did it myself [message #1009856 is a reply to message #651525] |
Fri, 15 February 2013 21:40 |
|
I didn't know there was a built in one, so I wrote my own one! My UI designer is going to want a specific look and feel anyway, so I knew I was going to have to do my own implementation.
I then just stuck it in my toolbar as a ToolControl.
It currently doesn't updated if there are dynamic updates to the model, or update selection if something else changes the current perspective. But that shouldn't be too hard to do by just listening to the model.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jo Grant, Senior Software Engineer
Admin and Config Console Architect
OpenPages, IBM
|
|
|
Re: Perspective Bar in e4 [message #1227191 is a reply to message #651568] |
Fri, 03 January 2014 20:18 |
|
Hi Tom, I see that bug 335733 is marked fixed in 4.1 but that, in 4.3.1, the addon is still in the org.eclipse.ui.workbench plugin (albeit in an e4 package). Am I correct in thinking that I still cannot use it in a pure e4 application?
Craig
|
|
|
|
Powered by
FUDForum. Page generated in 0.04232 seconds