Perspective layout problem [message #464177] |
Mon, 26 February 2007 20:05  |
Eclipse User |
|
|
|
Originally posted by: jcarroll.us.ibm.com
I am trying to display 2 views, one that takes up the top 2/3s of the
window, and the other view beneath the first view, my code in
IPerspectiveFactory is :
layout.setEditorAreaVisible(false);
layout.addPlaceholder(ContentView.ID, IPageLayout.LEFT, 1.0f,
layout.getEditorArea());
layout.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW,
IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
I am programatically showing the first view in response to a user
action, and then the 2nd view, but the 2nd view always appears to the
right of the first view rather than beneath it, can someone please tell
me what I am doing wrong.
thanks,
John
|
|
|
Re: Perspective layout problem [message #464183 is a reply to message #464177] |
Tue, 27 February 2007 00:50   |
Eclipse User |
|
|
|
layout.setEditorAreaVisible(false);
layout.addPlaceholder(ContentView.ID, IPageLayout.LEFT, 1.0f,
layout.getEditorArea());
layout.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW,
IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
try changing the parameters to (ContentView.ID, IPageLayout.TOP, 1.0f,
layout.getEditorArea()) for the first view
|
|
|
Re: Perspective layout problem [message #464213 is a reply to message #464183] |
Tue, 27 February 2007 13:40  |
Eclipse User |
|
|
|
Originally posted by: jcarroll.us.ibm.com
Anubhav Pande wrote:
> layout.setEditorAreaVisible(false);
> layout.addPlaceholder(ContentView.ID, IPageLayout.LEFT, 1.0f,
> layout.getEditorArea());
> layout.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW,
> IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
>
> try changing the parameters to (ContentView.ID, IPageLayout.TOP, 1.0f,
> layout.getEditorArea()) for the first view
>
That works great, thanks for the help.
John.
|
|
|
Powered by
FUDForum. Page generated in 0.03660 seconds