public class EcoreEditorDetector extends PartAdapter implements org.eclipse.ui.IPropertyListener
EcoreEditor is opened and attach an EditingDomainListener to it (singleton).| Modifier and Type | Method and Description |
|---|---|
void |
addEditor(org.eclipse.emf.ecore.presentation.EcoreEditor editor)
Attach an
EditingDomainListener to an EcoreEditor. |
void |
addEditorAndCreateHistory(org.eclipse.emf.ecore.presentation.EcoreEditor editor,
List<org.eclipse.emf.ecore.resource.Resource> metamodelResources,
org.eclipse.emf.common.util.URI historyURI)
Attach an
EditingDomainListener to an EcoreEditor and
create a history to record the changes. |
static EcoreEditorDetector |
getInstance()
Getter for singleton instance.
|
EditingDomainListener |
getListener(org.eclipse.emf.ecore.presentation.EcoreEditor editor)
Get the
EditingDomainListener for a EcoreEditor. |
void |
partClosed(org.eclipse.ui.IWorkbenchPart part) |
void |
partOpened(org.eclipse.ui.IWorkbenchPart part) |
void |
propertyChanged(Object source,
int propId) |
partActivated, partBroughtToTop, partDeactivatedpublic static EcoreEditorDetector getInstance()
public void addEditor(org.eclipse.emf.ecore.presentation.EcoreEditor editor)
EditingDomainListener to an EcoreEditor.public void addEditorAndCreateHistory(org.eclipse.emf.ecore.presentation.EcoreEditor editor,
List<org.eclipse.emf.ecore.resource.Resource> metamodelResources,
org.eclipse.emf.common.util.URI historyURI)
EditingDomainListener to an EcoreEditor and
create a history to record the changes.public void partOpened(org.eclipse.ui.IWorkbenchPart part)
partOpened in interface org.eclipse.ui.IPartListenerpartOpened in class PartAdapterpublic void partClosed(org.eclipse.ui.IWorkbenchPart part)
partClosed in interface org.eclipse.ui.IPartListenerpartClosed in class PartAdapterpublic EditingDomainListener getListener(org.eclipse.emf.ecore.presentation.EcoreEditor editor)
EditingDomainListener for a EcoreEditor.public void propertyChanged(Object source, int propId)
propertyChanged in interface org.eclipse.ui.IPropertyListenerCopyright © 2020. All rights reserved.