Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IFolderLayout persistance
IFolderLayout persistance [message #463992] Thu, 22 February 2007 02:32 Go to next message
Eclipse UserFriend
Originally posted by: cszamudio.msn.com

Hi. I realize this might be an old topic, but I have not been able to
decipher the postings. I would like to have a Folder defined using
IFolderLayout persist when all views in the folder have been closed.

I've tried this, but to no avail:
// create a folder to house the information views
IFolderLayout infoFolder = layout.createFolder("info", IPageLaout.RIGHT,
0.5f, layout.getEditorArea());
// initially create a view to populate the folder
infoFolder.addView(INFOVIEW.ID);
// get the layout for the folder
IViewLayout infoLayout = layout.getViewLayout("info");
// set it to non-closeable
infoLayout.setCloseable(false);

Unfortunately, when I close the view, the folder also gets hidden and the
other folders expand to fill up the space in the layout. Could someone
suggest a way to allow the folder to persist when views are closed?

Thanks.
Re: IFolderLayout persistance [message #463994 is a reply to message #463992] Thu, 22 February 2007 03:07 Go to previous message
Eclipse UserFriend
Originally posted by: cszamudio.msn.com

Sorry. I realize doing more research that what I am trying to do is not
possible. Choosing an Editor rather than a View is what I need to
consider.


"Carlos S. Zamudio" <cszamudio@msn.com> wrote in message
news:erivbc$6iv$1@utils.eclipse.org...
> Hi. I realize this might be an old topic, but I have not been able to
> decipher the postings. I would like to have a Folder defined using
> IFolderLayout persist when all views in the folder have been closed.
>
> I've tried this, but to no avail:
> // create a folder to house the information views
> IFolderLayout infoFolder = layout.createFolder("info", IPageLaout.RIGHT,
> 0.5f, layout.getEditorArea());
> // initially create a view to populate the folder
> infoFolder.addView(INFOVIEW.ID);
> // get the layout for the folder
> IViewLayout infoLayout = layout.getViewLayout("info");
> // set it to non-closeable
> infoLayout.setCloseable(false);
>
> Unfortunately, when I close the view, the folder also gets hidden and the
> other folders expand to fill up the space in the layout. Could someone
> suggest a way to allow the folder to persist when views are closed?
>
> Thanks.
>
Previous Topic:How to set the Locale /Language (i18n) RCP application dynamically
Next Topic:AbstractDocumentProvider.isReadOnly(...)
Goto Forum:
  


Current Time: Tue Apr 16 09:26:02 GMT 2024

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

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

Back to the top