Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Programmatically add a view to a folder
Programmatically add a view to a folder [message #287781] Wed, 06 July 2005 22:08 Go to next message
Mike Higginbotham is currently offline Mike HigginbothamFriend
Messages: 22
Registered: July 2009
Junior Member
I have a perspective that includes several standalone views and a folder.
In IPerspectiveFactory#createInitialLayout I add a view to the folder
using addView. As a result of later user input, I need to add another view
to the folder. How do I get access to the folder in order to do that?
Re: Programmatically add a view to a folder [message #287950 is a reply to message #287781] Fri, 08 July 2005 19:51 Go to previous message
Eclipse UserFriend
Originally posted by: mikeh59.iname.com

A colleague of mine stumbled upon the solution looking at the Eclipse code.
Use addPlaceholder on the IPageLayout to add a placeholder for a view id of
"<viewID>:*". I eventually found the bug fix that incorporated this in
release 3.0. I also found the bug fix that updated the JavaDoc - but not
until 3.1RC2. Unfortunately, I had only checked the 3.0.2 documentation.

Regards,
Mike Higginbotham

<higginmi@us.ibm.com> wrote in message news:dahkpo$mfb$1@news.eclipse.org...
>I have a perspective that includes several standalone views and a folder.
> In IPerspectiveFactory#createInitialLayout I add a view to the folder
> using addView. As a result of later user input, I need to add another view
> to the folder. How do I get access to the folder in order to do that?
Previous Topic:Programmatically selecting an IResource in the workspace
Next Topic:How to get tree item from item name?
Goto Forum:
  


Current Time: Sat Aug 17 06:21:08 GMT 2024

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

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

Back to the top