| How to place a view at the bottom with a 100% width [message #480284] |
Fri, 14 August 2009 14:08  |
Eclipse User |
|
|
|
Hello
I am currently playing around with my perspective and I am not able to place the
property-view below another view and the editorarea
public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.3f,
editorArea);
topLeft.addView(CustomerView.ID);
topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
// Bottom left: Outline view and Property Sheet view
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f,
editorArea);
bottom.addView(IPageLayout.ID_PROP_SHEET);
}
With this the view is below the editorarea, but the topLeftArea still goes down
to the bottom. When it runs I can manually move the propertyview down so it must
be possible somehow. So I tried the following
FolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f,
"topLeft" | editorArea)
but this doesnt work.
Any ideas?
Thanks
|
|
|
| Re: How to place a view at the bottom with a 100% width [message #480314 is a reply to message #480284] |
Fri, 14 August 2009 18:56  |
Eclipse User |
|
|
|
Swap the order of folder creation.
// Bottom left: Outline view and Property Sheet view
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f,
editorArea);
bottom.addView(IPageLayout.ID_PROP_SHEET);
}
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.3f,
editorArea);
topLeft.addView(CustomerView.ID);
topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
Then your bottom folder covers the entire bottom, and the topLeft folder becomes the left side of the editor area (but not the bottom folder below).
PW
|
|
|
Powered by
FUDForum. Page generated in 0.03873 seconds