Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Perspective layout problem
Perspective layout problem [message #464177] Mon, 26 February 2007 20:05 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Check & report problems on startup
Next Topic:RCP + Features + Resource
Goto Forum:
  


Current Time: Fri Mar 21 04:36:34 EDT 2025

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

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

Back to the top