Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View placement problem
View placement problem [message #443890] Mon, 06 February 2006 18:03 Go to next message
Dhiresh Patel  is currently offline Dhiresh Patel Friend
Messages: 86
Registered: July 2009
Member
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 08:02 Go to previous message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
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: Thu Dec 05 01:03:54 GMT 2024

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

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

Back to the top