Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Perspective in editor(How to create perspective with view in editor)
Perspective in editor [message #501408] Wed, 02 December 2009 09:00 Go to next message
Matroska is currently offline MatroskaFriend
Messages: 2
Registered: December 2009
Junior Member
Hi all, I am almost a newbie rcp developer. I have found many solutions using newsgroup but not for this. I need to set the perspective of my rcp app in order to show a view on the top left position but not to occupy the entire column, just the top left corner. On the bottom of the layout I would like tohave a console view that takes 2/3 of the columns. This could be the layout (X view is what I am trying to achieve).

A Editor X
A BBBBBB

Thanks in advance

[Updated on: Wed, 02 December 2009 09:03]

Report message to a moderator

Re: Perspective in editor [message #501450 is a reply to message #501408] Wed, 02 December 2009 12:05 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

you can take a look at http://www.eclipse.org/articles/using-perspectives/Perspecti veArticle.html

Regards,

Aurelien Pupier


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Perspective in editor [message #501481 is a reply to message #501450] Wed, 02 December 2009 14:18 Go to previous messageGo to next message
Matroska is currently offline MatroskaFriend
Messages: 2
Registered: December 2009
Junior Member
I have understood the problem. In perspective building order is important! So it is different to write:

layout.addStandaloneView(View1.ID, true, IPageLayout.LEFT, 0.3f,
				editorArea);
layout.addStandaloneView(View2.ID, true, IPageLayout.RIGHT, 0.5f, editorArea);
		
layout.addStandaloneView(View3.ID, true,
				IPageLayout.BOTTOM, 0.5f, editorArea);


from
layout.addStandaloneView(View1.ID, true, IPageLayout.LEFT, 0.3f,
				editorArea);
layout.addStandaloneView(View3.ID, true,
				IPageLayout.BOTTOM, 0.5f, editorArea);
layout.addStandaloneView(View2.ID, true, IPageLayout.RIGHT, 0.5f, editorArea);		


Thanks.

Regards

[Updated on: Wed, 02 December 2009 14:47]

Report message to a moderator

Re: Perspective in editor [message #501798 is a reply to message #501408] Thu, 03 December 2009 19:32 Go to previous message
Shawn Spiars is currently offline Shawn SpiarsFriend
Messages: 22
Registered: July 2009
Junior Member
Maybe something like this will help.

public void createInitialLayout(IPageLayout layout) {

String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible(true);

IFolderLayout bottom = layout.createFolder("bottom",
PageLayout.BOTTOM, 0.75F, editorArea);
bottom.addView(MyView.ID);

IFolderLayout topLeft = layout.createFolder("topLeft",
IPageLayout.LEFT, 0.20F, editorArea);
topLeft.addView(NavigationView.ID);
}

Shawn
Previous Topic:classloader/thread instanceof problem
Next Topic:Open a View
Goto Forum:
  


Current Time: Thu Apr 25 05:51:05 GMT 2024

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

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

Back to the top