Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Opening views in tabs
Opening views in tabs [message #466063] Fri, 13 April 2007 06:58 Go to next message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Hi,
this is probably a simple question. I have two views that can be opened
simultaneously. I want them to be opened "on top of each other" in tabs.
But all i could find so far, is to define two placeholders in my
perspective like this:

// Einen Platzhalte für den Errorlog einblenden
layout.addPlaceholder("de.gebitms.geplan.ui.view.errorlog",
IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
// Einen Platzhalte für die Anzeige der Tabelleninhalte einblenden
layout.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ",
IPageLayout.RIGHT, 0.6f, "de.gebitms.geplan.ui.view.errorlog");

But this opens the views next to each other in different parts. How can i
get these views to be opened in tabs?

Thanks for any help.
Christoph
Re: Opening views in tabs [message #466065 is a reply to message #466063] Fri, 13 April 2007 07:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: valere.fedronic.ext.streamezzo.com

hi,

>>I want them to be opened "on top of each other" in tabs

I don't understand what you mean by 'in tabs'.

Otherwise if you want them "on top of each other", try this layout:

layout.addPlaceholder("de.gebitms.geplan.ui.view.errorlog",IPageLayout.BOTTOM,
0.6f, layout.getEditorArea());

layout.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ",
IPageLayout.BOTTOM, 0.5f, "de.gebitms.geplan.ui.view.errorlog");

Is that what you want?

valere.


Christoph wrote:
> Hi, this is probably a simple question. I have two views that can be
> opened simultaneously. I want them to be opened "on top of each other"
> in tabs. But all i could find so far, is to define two placeholders in
> my perspective like this:
>
> // Einen Platzhalte für den Errorlog einblenden
> layout.addPlaceholder("de.gebitms.geplan.ui.view.errorlog",
> IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
> // Einen Platzhalte für die Anzeige der Tabelleninhalte einblenden
> layout.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ",
> IPageLayout.RIGHT, 0.6f, "de.gebitms.geplan.ui.view.errorlog");
>
> But this opens the views next to each other in different parts. How can
> i get these views to be opened in tabs?
> Thanks for any help.
> Christoph
>
Re: Opening views in tabs [message #466067 is a reply to message #466065] Fri, 13 April 2007 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: valere.fedronic.ext.streamezzo.com

Sorry i think i understand what you want, try this

IFolderLayout myFolder=
layout.createFolder("folder",IPageLayout.BOTTOM,0.5f,layout.getEditorArea());

myFolder.addPlaceholder("de.gebitms.geplan.ui.view.errorlog ");
myFolder.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ");


valere fedronic wrote:
> hi,
>
> >>I want them to be opened "on top of each other" in tabs
>
> I don't understand what you mean by 'in tabs'.
>
> Otherwise if you want them "on top of each other", try this layout:
>
> layout.addPlaceholder("de.gebitms.geplan.ui.view.errorlog",IPageLayout.BOTTOM,
> 0.6f, layout.getEditorArea());
>
> layout.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ",
> IPageLayout.BOTTOM, 0.5f, "de.gebitms.geplan.ui.view.errorlog");
>
> Is that what you want?
>
> valere.
>
>
> Christoph wrote:
>> Hi, this is probably a simple question. I have two views that can be
>> opened simultaneously. I want them to be opened "on top of each other"
>> in tabs. But all i could find so far, is to define two placeholders in
>> my perspective like this:
>>
>> // Einen Platzhalte für den Errorlog einblenden
>> layout.addPlaceholder("de.gebitms.geplan.ui.view.errorlog",
>> IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
>> // Einen Platzhalte für die Anzeige der Tabelleninhalte einblenden
>> layout.addPlaceholder("de.gebitms.geplan.ui.views.ViewTabelleninhalt ",
>> IPageLayout.RIGHT, 0.6f, "de.gebitms.geplan.ui.view.errorlog");
>>
>> But this opens the views next to each other in different parts. How
>> can i get these views to be opened in tabs?
>> Thanks for any help.
>> Christoph
>>
Re: Opening views in tabs [message #466071 is a reply to message #466067] Fri, 13 April 2007 08:01 Go to previous messageGo to next message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Yes, that was what i was looking for. Sorry, english is not my native
language and i didnŽt know how to describe it. That was probably why i
couldnŽt find anything helpfull through google ;-)

But i have a further question. If i do it like you described, the new
folder is visible all the time. Is it possible to hide it, while these two
views are not visible and to only open it, when there is one of the two
views open?

Thank very much for your help.
Christoph
Re: Opening views in tabs [message #466078 is a reply to message #466071] Fri, 13 April 2007 10:07 Go to previous message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Ok, found it myself. I had to use IPlaceholderFolderLayout instead of
IFolderLayout.
Previous Topic:SetSelection programmatically in TreeViewer causes no event?
Next Topic:Can't export RCP app - zillions of compile errors
Goto Forum:
  


Current Time: Thu Apr 25 05:12:54 GMT 2024

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

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

Back to the top