Specify whether an IEditorPart is closeable or not [message #332770] |
Fri, 07 November 2008 12:30  |
Eclipse User |
|
|
|
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 04:05  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03856 seconds