Commit a2bb3dc0 authored by Simon Barner's avatar Simon Barner
Browse files

Use getEditedObject() instead of directly accessing to editedObject.

refs 2950
parent 49f1ff31
......@@ -47,7 +47,7 @@ public abstract class ModelListenerEditorBase<T extends EObject> extends GEFEdit
/**
* {@link FileProject} to which {@link #fileProjectListener} is registered. It cannot be
* determined in {@link #dispose()} when the {@link #editedObject} has been deleted.
* determined in {@link #dispose()} when the {@link #getEditedObject()} has been deleted.
*/
private FileProject fileProject;
......@@ -150,7 +150,7 @@ public abstract class ModelListenerEditorBase<T extends EObject> extends GEFEdit
IHierarchicElement oldModel = modelGetter.get();
if(model != oldModel) {
runAsCommand(editedObject, () -> {
runAsCommand(getEditedObject(), () -> {
modelSetter.accept((IHierarchicElement)model);
});
}
......@@ -159,7 +159,7 @@ public abstract class ModelListenerEditorBase<T extends EObject> extends GEFEdit
/** {@inheritDoc} */
@Override
public void createPartControl(Composite parent) {
fileProject = getFileProject(editedObject);
fileProject = getFileProject(getEditedObject());
fileProject.eAdapters().add(fileProjectListener);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment