Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with RCP perspective layout(Problem with RCP perspective layout)
Problem with RCP perspective layout [message #541727] Tue, 22 June 2010 10:51 Go to next message
syeed is currently offline syeed
Messages: 19
Registered: June 2010
Junior Member
Hi,
I am creating an RCP application. I place four folders in the Perspective and add views to them (please see the code bellow).
The problem is, If I close all the Views in top folder, the bottom folder expands and the top folder is not be visible any more. It happens for all the folders. But I want to keep all the folders visible even if no views is present in the folder.

I tried it with "createPlaceholderFolder" but it does not solve the problem.
Please Provide some solution.
thanks in advance.

-Syeed

public void createInitialLayout( IPageLayout layout ) {
this.layout = layout;
String editorAreaId = layout.getEditorArea();
layout.setEditorAreaVisible( false );
layout.setFixed( false );

layout.createFolder( FI_RIGHT, IPageLayout.RIGHT, 0.85f, editorAreaId );
layout.createFolder( FI_LEFT, IPageLayout.LEFT, 0.25f, editorAreaId );

layout.createFolder( FI_TOP,IPageLayout.TOP, 0.75f, editorAreaId ).addView("Views.GraphView");

layout.createFolder( FI_BOTTOM, IPageLayout.BOTTOM, 0.05f, editorAreaId );


}
Re: Problem with RCP perspective layout [message #541754 is a reply to message #541727] Tue, 22 June 2010 12:30 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Syeed,

It seems you have a layout problem! ;)

What you want is not possible AFAIK. Only the edit area can stay behind
without content. The other views grab the open view space. The user can drag
around views anyway, this is a design idea with Eclipse: the user is in
control of view placement.

If you want to prevent views to be opened or closed or dragged, consider
using the layout.setfixed method.

--

Best Regards,
Wim Jongman
-- Who's General Failure & why is he reading my disk?
(Eclipse Old Skool
Quote Service)

> Hi,
> I am creating an RCP application. I place four folders in the Perspective
and add views to them (please see the code bellow).
> The problem is, If I close all the Views in top folder, the bottom folder
expands and the top folder is not be visible any more. It happens for all the
folders. But I want to keep all the folders visible even if no views is
present in the folder.
>
> I tried it with "createPlaceholderFolder" but it does not solve the
problem.
> Please Provide some solution.
> thanks in advance.
>
> -Syeed
>
> public void createInitialLayout( IPageLayout layout ) {
> this.layout = layout;
> String editorAreaId = layout.getEditorArea();
> layout.setEditorAreaVisible( false );
> layout.setFixed( false );
>
> layout.createFolder( FI_RIGHT, IPageLayout.RIGHT, 0.85f, editorAreaId );
> layout.createFolder( FI_LEFT, IPageLayout.LEFT, 0.25f, editorAreaId );
>
> layout.createFolder( FI_TOP,IPageLayout.TOP, 0.75f, editorAreaId
).addView("Views.GraphView");
>
> layout.createFolder( FI_BOTTOM, IPageLayout.BOTTOM, 0.05f, editorAreaId );
>
>
> }
Previous Topic:RCP layout problem
Next Topic:Create a User Scope
Goto Forum:
  


Current Time: Fri Oct 24 21:29:24 GMT 2014

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

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