Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to place a view at the bottom with a 100% width
How to place a view at the bottom with a 100% width [message #480284] Fri, 14 August 2009 18:08 Go to next message
Marc Schlegel is currently offline Marc SchlegelFriend
Messages: 92
Registered: July 2009
Member
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 22:56 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Previous Topic:Re: Keybinding warnings - how to remove?
Next Topic:StatusLine
Goto Forum:
  


Current Time: Thu Apr 18 19:48:18 GMT 2024

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

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

Back to the top