Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with editor area
Problem with editor area [message #436736] Fri, 16 September 2005 08:46 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: Problem with editor area [message #436743 is a reply to message #436741] Fri, 16 September 2005 15:11 Go to previous messageGo to next message
Eclipse UserFriend
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 #436744 is a reply to message #436743] Fri, 16 September 2005 15:28 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Assuming you are using a newer Runtime, would it be an option to create
a shutdownhook for the vm and remember the physical pathes to the
created folders? When the vm shutsdown it will delete the folder for
you. This assumes of course that the vm shutsdown with your rcp app.

Regards
Stefan

alr wrote:
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Problem with editor area [message #437269 is a reply to message #436745] Mon, 26 September 2005 18:34 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
This is a bug. I have filed bug 110684: [RCP] [EditorMgmt] Workbench
sometimes restores multiple empty editor folders

Boris

"alr" <alr@agelid.com> wrote in message
news:cdcb1bf0e41f13c268e3e7cba34a13ee$1@www.eclipse.org...
> 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.
>
>
>
Previous Topic:plugin is not run
Next Topic:welcome page/intro part always appears
Goto Forum:
  


Current Time: Thu Dec 05 16:37:19 GMT 2024

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

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

Back to the top