Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » closable Editor
closable Editor [message #464885] Sat, 17 March 2007 09:33 Go to next message
Janek is currently offline JanekFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,
In View(Viewpart) I can make it unclosable() in perspective by calling
layout.getViewLayout(ID).setCloseable(false) in
createInitialLayout(..) method. How Can I do the same thing for editor
(EditorPart)?

thx & Regards
Re: closable Editor [message #464893 is a reply to message #464885] Mon, 19 March 2007 09:50 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

Hello Janek.
You can apply the following workaround. Let your editor implement
ISaveablePart2 and return CANCEL in method. Maybe you can pop-up with a
dialog and message saying why you are not allowing to close your editor.
public int promptToSaveOnClose();
Janek wrote:
> Hi,
> In View(Viewpart) I can make it unclosable() in perspective by calling
> layout.getViewLayout(ID).setCloseable(false) in
> createInitialLayout(..) method. How Can I do the same thing for editor
> (EditorPart)?
>
> thx & Regards
Previous Topic:ZoomContributionItem has focus
Next Topic:Use Of Developped Plugins in a Workbench
Goto Forum:
  


Current Time: Tue Oct 08 07:06:56 GMT 2024

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

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

Back to the top