Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » startup views
startup views [message #444772] Mon, 20 February 2006 17:16 Go to next message
cesar is currently offline cesarFriend
Messages: 20
Registered: July 2009
Junior Member
Hi,

In an RCP app, I added:
- a new view in the plugin.xml (don't even know if it was really necessary)
- and at the createInitialLayout() of the class implementing
IPerspectiveFactory:

IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
(float)0.60, "left");
left.addView("library.editor.view1");

But I just cannot see the view in the RCP. Is there another further step to
accomplish this or I just messed things up?

Thanks in advance,

Cesar
Re: startup views [message #444773 is a reply to message #444772] Mon, 20 February 2006 17:25 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

cesar wrote:
>
> IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
> (float)0.60, "left");

In createFolder(*) the last string is a refId ... an ID of somethat that
already exists in the layout. Like IPageLayout.ID_EDITOR_AREA

Later,
PW


Re: startup views [message #444775 is a reply to message #444773] Mon, 20 February 2006 18:34 Go to previous message
cesar is currently offline cesarFriend
Messages: 20
Registered: July 2009
Junior Member
Thanks Paul. It worked.

I was trying to mimic the piece of code below (that works):

IFolderLayout bottonRight = layout.createFolder("bottonRight",
IPageLayout.BOTTOM, (float)0.60, "right"); //see this last "right"

But I forgot to check that "right" (but not "left") was defined before as a
IFolderLayout.

Cesar

"Paul Webster" <pwebster@ca.ibm.com> a
Previous Topic:Simple Question - How Add External Jar?
Next Topic:Dont know whether it is the right place to ask...
Goto Forum:
  


Current Time: Tue Nov 05 13:18:49 GMT 2024

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

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

Back to the top