Skip to main content



      Home
Home » Eclipse Projects » GEF » Need Editor access in an EditPolicy class
Need Editor access in an EditPolicy class [message #17167] Tue, 20 August 2002 06:14 Go to next message
Eclipse UserFriend
Originally posted by: jol.linuxgames.com

Hello,

I've an Editor class which extends GraphicalEditorWithPalette. I've an
EditPart which extends ContainerEditPolicy.

In the getDeleteCommand method of MyContainerEditPolicy class I need access
to the Editor (because i need erase some file of the project).

Is it possible to have access at the editor ?

Thanks.

Jol
Re: Need Editor access in an EditPolicy class [message #17280 is a reply to message #17167] Tue, 20 August 2002 10:54 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.spam.com

Yes.

policy.getHost().getRoot().getViewer().getEditDomain() will return the
EditDomain.
getEditorPart is not on the interface because some uses of GEF do not have
EditorParts.
but, cast to DefaultEditDomain(), if that is the implementation you used for
your application, and then call getEditorPart().

"vennin joel" <jol@linuxgames.com> wrote in message
news:ajt49l$k66$1@rogue.oti.com...
> Hello,
>
> I've an Editor class which extends GraphicalEditorWithPalette. I've an
> EditPart which extends ContainerEditPolicy.
>
> In the getDeleteCommand method of MyContainerEditPolicy class I need
access
> to the Editor (because i need erase some file of the project).
>
> Is it possible to have access at the editor ?
>
> Thanks.
>
> Jol
>
>
>
Previous Topic:question regarding canceling tool activation
Next Topic:How to get started (very basic)
Goto Forum:
  


Current Time: Fri Jun 06 08:37:06 EDT 2025

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

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

Back to the top