Perspective in editor [message #501408] |
Wed, 02 December 2009 04:00  |
Eclipse User |
|
|
|
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 04:03] by Moderator
|
|
|
|
Re: Perspective in editor [message #501481 is a reply to message #501450] |
Wed, 02 December 2009 09:18   |
Eclipse User |
|
|
|
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 09:47] by Moderator
|
|
|
Re: Perspective in editor [message #501798 is a reply to message #501408] |
Thu, 03 December 2009 14:32  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.21964 seconds