Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » New placeholders are rendering in wrong view parts
New placeholders are rendering in wrong view parts [message #696164] Wed, 13 July 2011 08:08 Go to next message
Swap  is currently offline Swap
Messages: 30
Registered: March 2011
Member
I have 3 view parts in my rap application 1)topLeft 2)topCenter 3)topRight

IFolderLayout topLeft = layout.createFolder(FOLDER_ID_TOPLEFT,
IPageLayout.LEFT, 0.33f, IPageLayout.ID_EDITOR_AREA);
topLeft.addView(MCIFExplorerView.ID);
topLeft.addPlaceholder(BrowseComponentView.ID + ":" + BrowseComponentView.ID + "*");


IPlaceholderFolderLayout topCenter = layout.createPlaceholderFolder(FOLDER_ID_TOPCENTER,
IPageLayout.LEFT, 0.9f, IPageLayout.ID_EDITOR_AREA);
topCenter.addPlaceholder(EditorView.ID);



IPlaceholderFolderLayout topRight = layout.createPlaceholderFolder(FOLDER_ID_TOPRIGHT,
IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
topRight.addPlaceholder(AppModelBrowserView.ID);



When I tried to add placeholder in topLeft & topCenter view
(e.g. BrowseComponentView, EditorView), It is shown in Right view.

What is the cause? What is solution to correct it?
Please reply
(no subject) [message #697378 is a reply to message #696164] Sat, 16 July 2011 09:02 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Swap,

Please try the RAP newsgroup.

Best regards,

Wim

> I have 3 view parts in my rap application 1)topLeft 2)topCenter 3)topRight
>
> IFolderLayout topLeft = layout.createFolder(FOLDER_ID_TOPLEFT,
> IPageLayout.LEFT, 0.33f, IPageLayout.ID_EDITOR_AREA);
> topLeft.addView(MCIFExplorerView.ID);
> topLeft.addPlaceholder(BrowseComponentView.ID + ":" +
BrowseComponentView.ID + "*");
>
>
> IPlaceholderFolderLayout topCenter =
layout.createPlaceholderFolder(FOLDER_ID_TOPCENTER,
> IPageLayout.LEFT, 0.9f, IPageLayout.ID_EDITOR_AREA);
> topCenter.addPlaceholder(EditorView.ID);
>
>
>
> IPlaceholderFolderLayout topRight =
layout.createPlaceholderFolder(FOLDER_ID_TOPRIGHT,
> IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);
> topRight.addPlaceholder(AppModelBrowserView.ID);
>
>
>
> When I tried to add placeholder in topLeft & topCenter view
> (e.g. BrowseComponentView, EditorView), It is shown in Right view.
>
> What is the cause? What is solution to correct it?
> Please reply
Previous Topic:Creating your own Launch configuration
Next Topic:One handler sees source provider, another doesn't
Goto Forum:
  


Current Time: Wed Apr 16 15:56:38 EDT 2014

Powered by FUDForum. Page generated in 0.01510 seconds