Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Tabbed Views
Tabbed Views [message #872160] Tue, 15 May 2012 15:10 Go to next message
Mike Desmarais is currently offline Mike DesmaraisFriend
Messages: 3
Registered: May 2012
Junior Member
I must be missing something simple on this one. I have two views I want to set up as tabbed views. I set them up by creating an IFolderLayout and then using the addview method with the view ID's as parameters.

Both of them get created but the second shows up with a little red box next to its name and I'm getting a message in the console saying "Referenced part does not exist yet".

Once I click on that view's tab for the first time I'm all set but how to I get it to be available from the initial load.
Re: Tabbed Views [message #873647 is a reply to message #872160] Fri, 18 May 2012 18:49 Go to previous message
Russ Loucks is currently offline Russ LoucksFriend
Messages: 11
Registered: December 2011
Junior Member
On 05/15/2012 10:10 AM, Mike Desmarais wrote:
> I must be missing something simple on this one. I have two views I want
> to set up as tabbed views. I set them up by creating an IFolderLayout
> and then using the addview method with the view ID's as parameters.
>
> Both of them get created but the second shows up with a little red box
> next to its name and I'm getting a message in the console saying
> "Referenced part does not exist yet".
> Once I click on that view's tab for the first time I'm all set but how
> to I get it to be available from the initial load.

I typically create just the folders in my
Perspective.createInitialLayout() method:

class Perspective implements IPerspectiveFactory {
String ID = {plugin_ID} + ".perspective";
String LEFT_TOP = ID + ".leftTop";
String LEFT_BOTTOM = ID + ".leftBottom";
. . .

createinitiallayout(IPageLayout layout) {
layout.setEditorAreaVisible(true);
String editorArea = layout.geteditorarea();

layout.createplaceholderfolder (LEFT_TOP,
IPagelayout.LEFT, 0.20f editorArea);
layout.createplaceholderfolder (LEFT_BOTTOM,
IPagelayout.BOTTOM, 0.50f LEFT_TOP);
. . .
}
}

then in my plugin.xml, I contribute views to those folders:

<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="com.bst.optimizer.organizerTool.perspective">
<view
id="org.eclipse.ui.console.ConsoleView"
relationship="stack"
relative="{plugin_ID}.perspective.bottom"
visible="true"/>
. . . .
</perspectiveExtension>
</extension>


They all appear when that perspective becomes active....
Previous Topic:How to get rid of "orphan perspectives"?
Next Topic:How to force preview on deletion of Resource
Goto Forum:
  


Current Time: Tue Apr 23 14:32:27 GMT 2024

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

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

Back to the top