Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » invisible placeholders
invisible placeholders [message #328129] Wed, 14 May 2008 21:16 Go to next message
Chad is currently offline ChadFriend
Messages: 15
Registered: July 2009
Junior Member
I need the ability to open multiple instances of the same view within the
same perspective, but have them not be visible initially.

When the perspective first opens, ViewA should occupy the entire screen.
In response to user activity, multiple instances of ViewB should open, and
stack on the bottom half of the screen.

Here's what I've tried (in the perspective factory):

IFolderLayout folder = layout.createFolder("MyViews",
IPageLayout.BOTTOM,0.5f, layout.getEditorArea());
folder.addPlaceholder("ViewB:*");

This creates a grayed out portion (with maximize and minimize buttons) on
the bottom half of the screen, even though no instance of ViewB has been
shown. I do not want this to be there.

Could you please help?

I'm using Eclipse 3.2.

Thanks,
Chad
Re: invisible placeholders [message #328239 is a reply to message #328129] Mon, 19 May 2008 17:45 Go to previous messageGo to next message
Chad is currently offline ChadFriend
Messages: 15
Registered: July 2009
Junior Member
Can anyone help with this?

Thanks,
Chad

//////////////////////////////////////////////

I need the ability to open multiple instances of the same view within the
same perspective, but have them not be visible initially.

When the perspective first opens, ViewA should occupy the entire screen.
In response to user activity, multiple instances of ViewB should open, and
stack on the bottom half of the screen. Here's what I've tried (in the
perspective factory):

IFolderLayout folder = layout.createFolder("MyViews",
IPageLayout.BOTTOM,0.5f, layout.getEditorArea());
folder.addPlaceholder("ViewB:*");

This creates a grayed out portion (with maximize and minimize buttons) on
the bottom half of the screen, even though no instance of ViewB has been
shown. I do not want this to be there.

Could you please help?

I'm using Eclipse 3.2.

Thanks,
Chad
Re: invisible placeholders [message #328542 is a reply to message #328239] Tue, 27 May 2008 13:54 Go to previous messageGo to next message
Chad is currently offline ChadFriend
Messages: 15
Registered: July 2009
Junior Member
Is it possible to do what I'm trying to do here? I'd be glad for any
feedback, and I'll be glad to clarify the question if necessary.

Chad

////////////////////////////////////////////

Can anyone help with this?

Thanks,
Chad

//////////////////////////////////////////////

I need the ability to open multiple instances of the same view within the
same perspective, but have them not be visible initially.

When the perspective first opens, ViewA should occupy the entire screen.
In response to user activity, multiple instances of ViewB should open, and
stack on the bottom half of the screen. Here's what I've tried (in the
perspective factory):

IFolderLayout folder = layout.createFolder("MyViews",
IPageLayout.BOTTOM,0.5f, layout.getEditorArea());
folder.addPlaceholder("ViewB:*");

This creates a grayed out portion (with maximize and minimize buttons) on
the bottom half of the screen, even though no instance of ViewB has been
shown. I do not want this to be there.

Could you please help?

I'm using Eclipse 3.2.

Thanks,
Chad
Re: invisible placeholders [message #328916 is a reply to message #328542] Fri, 06 June 2008 17:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Chad Showalter wrote:
> Is it possible to do what I'm trying to do here? I'd be glad for any
> feedback, and I'll be glad to clarify the question if necessary.
>

Why not use org.eclipse.ui.IPageLayout.createPlaceholderFolder(String,
int, float, String) instead?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: invisible placeholders [message #328988 is a reply to message #328916] Mon, 09 June 2008 21:57 Go to previous messageGo to next message
Chad is currently offline ChadFriend
Messages: 15
Registered: July 2009
Junior Member
Paul Webster wrote:

> Why not use org.eclipse.ui.IPageLayout.createPlaceholderFolder(String,
> int, float, String) instead?

This is exactly what I needed -- thanks!
Custom Perspective [message #329017 is a reply to message #328988] Tue, 10 June 2008 15:30 Go to previous message
Alok is currently offline AlokFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

Is is possible to add multiple editors in the custom perspective? e.g.
I've got a table and tree editor and i want to add both in the perspective
where one should appear in the normal editor area and the other should
appear in right so that i can see the properties of both at the same
time.I can achieve this by dragging one of the editor but i want to
include in the perspective so that it appears by default.

I could not find any method in IPageLayout for this and it is supporting
to add views in context of editor area. Also while trying to use the other
editor id it is throwing exception.Am i missing something here?

Any help is appreciated.

Thanks and regards,
Alok
Previous Topic:Ganymede RC3 XPCOM error -2147467262
Next Topic:Doxygen & Eclipse
Goto Forum:
  


Current Time: Sat Jul 27 16:40:41 GMT 2024

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

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

Back to the top