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, partDeactivated
public 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.IPartListener
partOpened
in class PartAdapter
public void partClosed(org.eclipse.ui.IWorkbenchPart part)
partClosed
in interface org.eclipse.ui.IPartListener
partClosed
in class PartAdapter
public 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.IPropertyListener
Copyright © 2020. All rights reserved.