Commit a6f99954 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

Components: JavaFX editor. Removed unnecessary model listener.

Issue-Ref: 3815
Issue-Url: https://af3-developer.fortiss.org/issues/3815

Signed-off-by: Florian Hölzl's avatarFlorian Hoelzl <hoelzl@fortiss.org>
parent b62e3ff3
ChannelController.java 99c2b3b99b4fe37642605a33a3f6fd7c12a2f6bf RED
DiagramComponentPortController.java 98f2b9c069c48d98fbf3a51fd086a3f5cffce911 RED
DiagramController.java 4d184103feefcaf9a74ed63538d227b975f9c4f8 RED
SubComponentController.java 4ab19d9f7fc2b0cb837ac1c3a5c3bb4e9010d156 RED
SubComponentController.java 42d3c964f33bef24172a44819672988ba07e6edd RED
SubComponentPortController.java ce6b20088baeb1ddd5c98111316f707f71cd133e RED
......@@ -23,7 +23,6 @@ import static org.fortiss.tooling.base.utils.LayoutDataUtils.moveNode;
import static org.fortiss.tooling.base.utils.LayoutDataUtils.setNodeSize;
import static org.fortiss.tooling.base.utils.LayoutDataUtils.setStickyConnectorLayoutData;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.FeedbackChange;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.controller.IController;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.mvc.IContentAnchorageMVCBundle;
......@@ -32,7 +31,6 @@ import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.Port;
import org.fortiss.tooling.base.model.layout.Dimension;
import org.fortiss.tooling.base.ui.editor.fx.EObjectBasedRectangularResizableContentControllerBase;
import org.fortiss.tooling.base.utils.LayoutModelElementAdapter;
import javafx.geometry.Dimension2D;
import javafx.geometry.Side;
......@@ -44,9 +42,6 @@ import javafx.geometry.Side;
*/
public final class SubComponentController
extends EObjectBasedRectangularResizableContentControllerBase {
/** Listener for model changes. */
private final LayoutModelElementAdapter modelListener;
/** Constructor. */
public SubComponentController(IContentMVCBundle mvcb) {
super(mvcb);
......@@ -55,24 +50,6 @@ public final class SubComponentController
throw new IllegalArgumentException("Expected model of type Component, but was " +
model.getClass().getSimpleName());
}
// FIXME: listeners are not yet disposed
modelListener = new LayoutModelElementAdapter(getComponent()) {
/** {@inheritDoc} */
@Override
protected void attributeChanged(Notification notification) {
getViewer().updateModelVisual(getComponent());
}
@Override
protected void layoutChanged(Notification notification) {
getViewer().updateModelVisual(getComponent());
}
};
}
/** Disposes this controller by unregistering from the model. */
public void dispose() {
modelListener.unregisterAdapter();
}
/** Returns the component. */
......
Markdown is supported
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