Skip to content
Snippets Groups Projects
Commit ef7169a1 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

fillRefreshAdapter is now a EContentAdapter.

refs 149
parent 9e551119
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ package org.fortiss.tooling.base.ui.editpart;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.impl.AdapterImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EContentAdapter;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
......@@ -44,11 +44,12 @@ public abstract class GraphicalEditPartBase<T extends EObject> extends
* The adapter used to receive change notifications for the
* {@link #modelElement}.
*/
protected final Adapter fullRefreshAdapter = new AdapterImpl() {
protected final Adapter fullRefreshAdapter = new EContentAdapter() {
/** {@inheritDoc} */
@Override
public void notifyChanged(Notification notification) {
super.notifyChanged(notification);
// do not care what happens, just refresh everything
refresh();
}
......@@ -99,9 +100,4 @@ public abstract class GraphicalEditPartBase<T extends EObject> extends
}
return super.getAdapter(key);
}
/** Returns the model element of this edit part. */
public T getModelElement() {
return modelElement;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment