IFolderLayout persistance [message #463992] |
Wed, 21 February 2007 21:32  |
Eclipse User |
|
|
|
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] |
Wed, 21 February 2007 22:07  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.24163 seconds