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

Components: JavaFX editor. Moved command stack use to kernel.base.

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 b82e27cd
ComponentStructureFXEditor.java 0d5e3c00d0021fbd469841706093cccde85d7d42 YELLOW
ComponentStructureFXEditor.java d097c17a4ebc5bc2a87659544d3dd15f2afde254 YELLOW
ComponentStructureFXEditorBinding.java 3f78a7b48cb7b9a0b0b35fab58a4ad7f3233c18a YELLOW
ControllerFactory.java 0adaa2e7ab2e3bc73bae21aec736842a5abeb9a1 YELLOW
FXComponentEditorUtils.java 6aa86b3c28b6a8a68844d251c961378d83df7710 YELLOW
ModelFactory.java 302b27b932b375c0dff4537d32188baba44d8be4 YELLOW
ModelFactory.java 0eed7ac8d4a6b961b220f0fb7ebaa517c6712112 YELLOW
VisualFactory.java c3f9acf01cb627f07dca673631a4c8f632d2c4a9 YELLOW
......@@ -19,14 +19,12 @@ import static javafx.scene.paint.Color.LIGHTGRAY;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.DiagramViewerFeatures;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.change.Change;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.controller.IControllerFactory;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.model.IModelFactory;
import org.eclipse.systemfocus.kernel.common.ui.javafx.lwfxef.visual.IVisualFactory;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.InputPort;
import org.fortiss.af3.component.model.OutputPort;
import org.fortiss.tooling.kernel.service.ICommandStackService;
import org.fortiss.tooling.kernel.ui.extension.base.LWFXEFEditorBase;
import javafx.geometry.Dimension2D;
......@@ -69,18 +67,4 @@ public class ComponentStructureFXEditor extends LWFXEFEditorBase<Component> {
protected IControllerFactory createControllerFactory() {
return new ControllerFactory();
}
/** {@inheritDoc} */
@Override
protected void modelSelected(Object model) {
// TODO
}
/** {@inheritDoc} */
@Override
protected void applyModelChange(Change chg) {
ICommandStackService.getInstance().runAsCommand(editedObject, () -> {
chg.applyChange();
});
}
}
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