Problem with editor area [message #436736] |
Fri, 16 September 2005 08:46 |
Eclipse User |
|
|
|
Originally posted by: alr.agelid.com
Hi,
i've build an Eclipse RCP that use editor as main components. Such editor
aren't linked to resources or at least resources that may be opened on
startup.
After, opening several editors and layout them, many folders have been
created. That's cool. BUT on start up all these folders are still there.
How can i reset/remove all those folders programmatically.
I've tried to reset the perspective but no influence on editor area.
I've tried to close all editors on close, but i'm probably do it too late
since it's done on the postWindowClose on my WorkbenchAdvisor.
Please help,
Arnauld
|
|
|
Re: Problem with editor area [message #436741 is a reply to message #436736] |
Fri, 16 September 2005 13:47 |
|
alr wrote:
> Hi,
> i've build an Eclipse RCP that use editor as main components. Such
> editor aren't linked to resources or at least resources that may be
> opened on startup.
>
> After, opening several editors and layout them, many folders have been
> created. That's cool. BUT on start up all these folders are still there.
> How can i reset/remove all those folders programmatically.
> I've tried to reset the perspective but no influence on editor area.
> I've tried to close all editors on close, but i'm probably do it too
> late since it's done on the postWindowClose on my WorkbenchAdvisor.
Make sure that your IEditorInput#getPersistable() returns null. The
workbench doesn't usually try to re-instantiage the editor if it's input
wasn't persisted.
Later,
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Re: Problem with editor area [message #436743 is a reply to message #436741] |
Fri, 16 September 2005 15:11 |
Eclipse User |
|
|
|
Originally posted by: alr.agelid.com
Thanks for your reply,
but getPersistable already returns 'null'. that why i've no editor back on
startup.
My problem is all the empty folder (actually editor'area layout's folders)
opened where my editors were.
|
|
|
|
Re: Problem with editor area [message #436745 is a reply to message #436744] |
Fri, 16 September 2005 15:33 |
Eclipse User |
|
|
|
Originally posted by: alr.agelid.com
I think there is a misunderstood, what i'm calling Folder in not the file
system folder, it's an Eclipse's perspecive folder. That a named part of
the layout, where views (or editor part for my concern) can be stacked.
Folder part can be placed relative to others.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03740 seconds