[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Get selected EObjects from EcoreDiagramEditor
|
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:
First, I would like to get the EObjects which are currently selected in
an active EcoreDiagramEditor. Is there a way of doing this?
Second, how can I set an EcoreEditor (tree editor) to dirty (leadings to
the asterics in the tab) after changing its contents from outside
programmatically. I retrieved the selected EObjects using
ISelectionProvider.getSelection and changed the objects. The changes are
displayed in the editor immediately. But how can I set the editor to
dirty
from outside to force a "want to save"-question when closing.
Thank you very much in advance,
Philip Langer