Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Specify whether an IEditorPart is closeable or not
Specify whether an IEditorPart is closeable or not [message #332770] Fri, 07 November 2008 17:30 Go to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
I have a main graphical editor from which I can open sub-editors : I
would like my main editor to be not closeable, whereas sub-editors could
be closeable.
Is there a way to specify whether an IEditorPart should be closeable or
not ? While defining my perspective, I can only set the closeable
property, but this is applied for all editors.

Regards,
Jacques
Re: Specify whether an IEditorPart is closeable or not [message #332958 is a reply to message #332770] Mon, 17 November 2008 09:05 Go to previous message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
As information, the solution we found was to extend the
PresentablePartFolder class so that we could supply additional check
against the editor type in the insert() method on order to set the
editor as closeable or not. This also involves to implement our own
WorkbenchPresentationFactory class and override other classes in order
to use our new PresentablePartFolder class.
This make use of lot of internal classes, but we currently target
Eclipse Europa version and no plan to upgrade.


Jacques LESCOT a écrit :
> I have a main graphical editor from which I can open sub-editors : I
> would like my main editor to be not closeable, whereas sub-editors could
> be closeable.
> Is there a way to specify whether an IEditorPart should be closeable or
> not ? While defining my perspective, I can only set the closeable
> property, but this is applied for all editors.
>
> Regards,
> Jacques
Previous Topic:Problems creating update site
Next Topic:JavaSearchResultPage
Goto Forum:
  


Current Time: Fri Apr 26 06:28:22 GMT 2024

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

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

Back to the top