diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/GraphicalEditPartBase.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/GraphicalEditPartBase.java index 13fd81574dddce169f88bd472e2db04d69934081..0ae93d2a434ef5a5fd2ce86ec4cc6f0241f507cd 100644 --- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/GraphicalEditPartBase.java +++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editpart/GraphicalEditPartBase.java @@ -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; - } }