| Perspective Bar in e4 [message #651525] |
Mon, 31 January 2011 09:46  |
Christoph Messages: 4 Registered: January 2011 |
Junior Member |
|
|
Hi,
I am currently trying to evaluate the e4 application framework and try to build a small sample app. I successfully worked through the tutorials of Tom Schindl and Lars Vogel, now I want to dig a bit deeper.
One question that bothers me at the moment is: How can I make my e4 app display a perspective bar similar to the one I know from Eclipse 3? I could not find any option in my e4xmi file, nor did I find anything about this on the web.
Any help is appreciated!
Thanks in advance.
Christoph
Maybe, as a siednote: Is there any recommended further documentation that helps me getting a better understanding of e4?
|
|
|
|
| Re: Perspective Bar in e4 [message #651542 is a reply to message #651525] |
Mon, 31 January 2011 10: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 10:40] Report message to a moderator
|
|
|
|
|
|
| Did it myself [message #1009856 is a reply to message #651525] |
Fri, 15 February 2013 16: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
|
|
|
Powered by
FUDForum. Page generated in 0.01915 seconds