Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » How to get from an EditPart instance to the Editor instance it is currently in?
How to get from an EditPart instance to the Editor instance it is currently in? [message #547186] Thu, 15 July 2010 16:50 Go to next message
SM is currently offline SM
Messages: 10
Registered: October 2009
Junior Member
I am writing an eclipse plug-in that extends editor (UMLDiagramEditor). Inside the editor I put some EditParts. From some of these edit parts I need a reference to their encapsulating editor (so that for example, when clicking an instance of MyEditPart, I want to programmatically close the editor).

Please advise on the API to get from an EditPart instance to the Editor it is in.

Thanks.
Re: How to get from an EditPart instance to the Editor instance it is currently in? [message #549600 is a reply to message #547186] Tue, 27 July 2010 06:56 Go to previous message
Christian Waniek is currently offline Christian Waniek
Messages: 50
Registered: May 2010
Member
Hi

first, I don't know how to get the Editor for an EditPart. But maybe this forum isn't the right one because it rather looks like a GMF-related question. Maybe you should place your question in the GMF-Forum and link this thread to the new GMF-Thread.

Besides: I don't know your exact requirement but maybe it would do to only get the active editor. This could be a lot easier.

Regards
Christian Waniek
Previous Topic:Helios is out.. where are the UML2 Tools?
Next Topic:How to get from an EditPart instance to the Editor instance it is currently in?
Goto Forum:
  


Current Time: Thu Apr 17 14:29:43 EDT 2014

Powered by FUDForum. Page generated in 0.01619 seconds