public class EMFModelConnector extends java.lang.Object implements IModelConnector
Constructor and Description |
---|
EMFModelConnector(org.eclipse.ui.IEditorPart editorPart) |
Modifier and Type | Method and Description |
---|---|
PatternMatcherRootContentKey |
getKey() |
org.eclipse.emf.common.notify.Notifier |
getNotifier(org.eclipse.viatra.query.runtime.api.IModelConnectorTypeEnum modelConnectorTypeEnum) |
org.eclipse.ui.IWorkbenchPart |
getOwner() |
java.util.Collection<org.eclipse.emf.ecore.EObject> |
getSelectedEObjects()
Returns the objects currently selected at the adapted model.
|
void |
loadModel(org.eclipse.viatra.query.runtime.api.IModelConnectorTypeEnum modelConnectorTypeEnum)
Loads the instance model into the
QueryExplorer . |
void |
showLocation(java.lang.Object[] locationObjects) |
void |
unloadModel()
Unloads the instance model from the
QueryExplorer . |
public EMFModelConnector(org.eclipse.ui.IEditorPart editorPart)
public void loadModel(org.eclipse.viatra.query.runtime.api.IModelConnectorTypeEnum modelConnectorTypeEnum)
IModelConnector
QueryExplorer
.loadModel
in interface IModelConnector
modelConnectorTypeEnum
- The model type which should be loaded.public void unloadModel()
IModelConnector
QueryExplorer
.unloadModel
in interface IModelConnector
public void showLocation(java.lang.Object[] locationObjects)
showLocation
in interface IModelConnector
locationObjects
- Shows the location of these objects inside the specific editor.public PatternMatcherRootContentKey getKey()
public org.eclipse.emf.common.notify.Notifier getNotifier(org.eclipse.viatra.query.runtime.api.IModelConnectorTypeEnum modelConnectorTypeEnum)
getNotifier
in interface IModelConnector
public org.eclipse.ui.IWorkbenchPart getOwner()
getOwner
in interface IModelConnector
public java.util.Collection<org.eclipse.emf.ecore.EObject> getSelectedEObjects()
IModelConnector
getSelectedEObjects
in interface IModelConnector