Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » perspective bar
perspective bar [message #1080852] Tue, 06 August 2013 09:00 Go to next message
Eclipse UserFriend
Hi,

does anybody here know who can i active/display the perspective bar?

My RCP application has two perspectives and i want active the icons in the right top corner like in ecplise 3.x.

I use eclipse 4.2.2. My implemented perspective switcher action works fine but normally i want to switch the perspective like in eclipse 3.x.

[Updated on: Wed, 07 August 2013 01:22] by Moderator

Re: perspective bar [message #1081066 is a reply to message #1080852] Tue, 06 August 2013 15:14 Go to previous messageGo to next message
Eclipse UserFriend
I have the same question actually.
Re: perspective bar [message #1082435 is a reply to message #1081066] Thu, 08 August 2013 11:05 Go to previous messageGo to next message
Eclipse UserFriend
The current implementation of the Perspective Switcher is, unfortunately, tied to the Eclipse IDE and isn't available in pure e4 apps. We do intend to address this as part of an overall move to make the IDE code more self-contained so that our current need to access the WorkbenchPage can be removed.
Re: perspective bar [message #1172516 is a reply to message #1082435] Tue, 05 November 2013 19:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eric,

Is there an estimated date for this to be implemented by any chance? I'm just about to add multiple perspectives and wanted to check before doing anything custom.

Regards,

Ozgur.
Re: perspective bar [message #1173792 is a reply to message #1172516] Wed, 06 November 2013 14:13 Go to previous messageGo to next message
Eclipse UserFriend

This is (unfortunately) not even on our radar right now, note that you can likely get away with cloning the compatibility implementation and just cut out the 3.x specific code to get what you need. This would mean for example not calling the workbenchpage's 'setPerspective' method but just setting the MPerspectiveStack's selectedElement...
Re: perspective bar [message #1184243 is a reply to message #1173792] Wed, 13 November 2013 05:15 Go to previous message
Eclipse UserFriend
Thanks Eric, that does work. It might already be obvious how to achieve this for many but I've also pasted the below snippet to show how to get hold of the perspective stack and its perspectives.

@Inject
MApplication application;

void dummyForce1stPerspectiveActivation() {
	MWindow l = application.getChildren().get(0);
	MPerspectiveStack stack = (MPerspectiveStack)l.getChildren().get(0);
        MPerspective perspective = stack.getChildren().get(0);
        stack.setSelectedElement(perspective);
}
Previous Topic:Part on top of a PartSashContainer
Next Topic:Eclipse 4 on Red Hat Linux
Goto Forum:
  


Current Time: Wed Jul 23 02:24:12 EDT 2025

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

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

Back to the top