Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can I prevent an editor from being restored?
Can I prevent an editor from being restored? [message #332607] Thu, 30 October 2008 23:42 Go to next message
Connie Lam is currently offline Connie LamFriend
Messages: 24
Registered: July 2009
Junior Member
Hello,

With 3.4 one can prevent a view from being restored:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215797

Is the same thing supported for editors too?

Thanks,
Connie
Re: Can I prevent an editor from being restored? [message #332610 is a reply to message #332607] Fri, 31 October 2008 08:20 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Connie wrote:
> Hello,
>
> With 3.4 one can prevent a view from being restored:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=215797
>
> Is the same thing supported for editors too?

Maybe you could attach listeners to the IWorkbench and close your
editors before the shutdown or something?

Remy
Re: Can I prevent an editor from being restored? [message #332615 is a reply to message #332607] Fri, 31 October 2008 15:08 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It's the IEditorInput that persists editors. If your IEditorInput
returns null from org.eclipse.ui.IEditorInput.getPersistable() or
exists()==false the editor won't be persisted.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:How to generate plugin's javadoc from ant ?
Next Topic:Encoding issues when initializing a Text Editor
Goto Forum:
  


Current Time: Tue Jul 16 13:36:28 GMT 2024

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

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

Back to the top