[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: How to get the main Editor from an EditPart

I guess you cant access from an editpart..
but you can do this:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()

Tamer escreveu:
Hi,

I have a combined GMF/EMF editor and I would like to access my XYEditor instance from a LinkEditPart.
How can I do that?
I don't think getParent() in the EditPart will do the job.
Thanks for your help!


Regards,

tamer

ps: my LinkEditPart object is just a diagram element that represents a link between two nodes.