Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View placement problem
View placement problem [message #443890] Mon, 06 February 2006 13:03 Go to next message
Eclipse UserFriend
I am trying to place a view called Category View on the right side of the
screen just like outline view in eclipse ide. I have a standalone view
called MOdel View on left side. VehicleDetails on top right hand side.
Transmission and Engine view on bottom right side. When I open Category
view it opens on bottom right together with transmission and Engine view.
Like I said before I would like to open category on top right just like
outline view in eclipse.
Here is the code I am using:

public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addStandaloneView(ModelsView.ID, false, IPageLayout.LEFT,
30f, layout.getEditorArea());

IPlaceholderFolderLayout flTop =
layout.createPlaceholderFolder("FolderID1",IPageLayout.TOP,
55f,layout.getEditorArea());
flTop.addPlaceholder(VehicleDetailsView.ID);

IPlaceholderFolderLayout flRight =
layout.createPlaceholderFolder("FolderID2",IPageLayout.RIGHT,
33f,layout.getEditorArea());
flRight.addPlaceholder(CategoryView.ID);

IPlaceholderFolderLayout flBottom =
layout.createPlaceholderFolder("FolderID3",IPageLayout.BOTTOM,
53f,layout.getEditorArea());
flBottom.addPlaceholder(EngineView.ID);
flBottom.addPlaceholder(TransmissionView.ID);
}

I would appreciate any help,

Dhiresh
Re: View placement problem [message #443908 is a reply to message #443890] Tue, 07 February 2006 03:02 Go to previous message
Eclipse UserFriend
change
IPlaceholderFolderLayout flRight =
layout.createPlaceholderFolder("FolderID2",IPageLayout.RIGHT,
33f,layout.getEditorArea());
flRight.addPlaceholder(CategoryView.ID);

to the

IPlaceholderFolderLayout flRight =
layout.createPlaceholderFolder("FolderID2",IPageLayout.RIGHT,
33f,"FolderID1");
flRight.addPlaceholder(CategoryView.ID);
Previous Topic:How can i access the menu item?
Next Topic:still problem with job ...
Goto Forum:
  


Current Time: Sun Jul 13 05:22:50 EDT 2025

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

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

Back to the top