Ed,
first of all thank you very much for your fast reply!
Philip,
Comments below.
Philip Langer wrote:
I'm not sure if I'm posting this to the right group. If not, please
excuse me.
I've got two questions about EMF/GMF Editors, especially
EcoreDiagramEditors and EcoreEditors:
I'm not exactly sure what you're referring to? The editors for editing
*.ecore resources?
First, I would like to get the EObjects which are currently selected in
an active EcoreDiagramEditor. Is there a way of doing this?
Editors generally provide a selection service you can use to determine
the current selection. E.g., EMF generated editors implement
ISelectionProvider.
In the question about getting selected EObjects I was referring to the
org.eclipse.emf.ecoretools.diagram.part.EcoreDiagramEditor which,
unfortunately, does not implement the ISelectionProvider. For generated
Ecore editors using this provider works perfectly. But, how can I get the
EObjects which are selected in the diagram displayed by an
EcoreDiagramEditor?
I think you can use getSite().getSelectionProvider().