Layout of views [message #461366] |
Wed, 10 January 2007 02:03  |
Eclipse User |
|
|
|
Hi All,
I have 4 views . I want to specify the size and position of the views
in a perspective..If opened those views in a perspective they are not
allowing to resize..
Actually I need to show three views as combined like a tabbed folder and
is arranged at rightmost side of the Eclipse.. and the 4th view is at the
center ....
Can anyone help me or provide a snippet for specifying those views...
|
|
|
|
Re: Layout of views [message #462157 is a reply to message #461366] |
Tue, 23 January 2007 20:22  |
Eclipse User |
|
|
|
Originally posted by: smerz.unwired.com.au
try this:
public class SomePerspective implements IPerspectiveFactory
{
public void createInitialLayout(IPageLayout layout)
{
//layout.setEditorAreaVisible(false);
layout.addStandaloneView(MyViewA.ID, false, IPageLayout.LEFT, 0.30f, layout.getEditorArea());
IFolderLayout folder = layout.createFolder("Net Folder", IPageLayout.RIGHT, 0.7f, layout.getEditorArea());
folder.addView(MyViewB.ID);
folder.addView(MyViewC.ID);
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.05004 seconds