Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Prevent Editor from being closed
Prevent Editor from being closed [message #460302] Tue, 23 August 2005 21:02 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Is it possible to prevent the user from closing an editor? I mean I want
to get rid of the "x" button on my editor.
Any help is much appreciated.
Re: Prevent Editor from being closed [message #460303 is a reply to message #460302] Tue, 23 August 2005 22:07 Go to previous messageGo to next message
Stefan Zugal is currently offline Stefan ZugalFriend
Messages: 59
Registered: July 2009
Member
I found this in the eclipse.platform.rcp newsgroup, i hope it helps ;)

" There is no easy way to do this, you can however define your own
AbstractPresentationFactory and when the editors stacks are created don't
allow then to close.

Or, use an view instead. View's can be saved just like editors.
Jean-michel "


"Cleverson Schmidt" <cleversons@gmail.com> schrieb im Newsbeitrag
news:137bf037c1a03e48eaa580efc0817f66$1@www.eclipse.org...
> Is it possible to prevent the user from closing an editor? I mean I want
> to get rid of the "x" button on my editor.
> Any help is much appreciated.
>
Re: Prevent Editor from being closed [message #460312 is a reply to message #460303] Wed, 24 August 2005 06:29 Go to previous message
Eclipse UserFriend
Originally posted by: geneves.philippe.ordirope.com

Hello,
I know that you can have an action
on the 'save' window of the editor (when you close a dirty editor)
to cancel the close.
see interface org.eclipse.ui.ISaveablePart2
(since possible in 3.1)




"Stefan Zugal" <Zugi00@gmx.at> a
Previous Topic:Can't layout appropriately using FormLayout
Next Topic:Checkbox image
Goto Forum:
  


Current Time: Mon Apr 12 17:19:27 GMT 2021

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

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

Back to the top