diff --git a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeActionHandler.xtend b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeActionHandler.xtend index bbdbcdb49..a6c39d756 100644 --- a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeActionHandler.xtend +++ b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeActionHandler.xtend @@ -29,10 +29,7 @@ class MrTreeActionHandler extends AbstractActionHandler { MrTreeInteractiveLanguageServerExtension lsExtension new() { - this.supportedMessages = newHashMap( - MrTreeSetPositionConstraintAction.KIND -> MrTreeSetPositionConstraintAction, - MrTreeDeletePositionConstraintAction.KIND -> MrTreeDeletePositionConstraintAction, - SetAspectRatioAction.KIND -> SetAspectRatioAction) + this.supportedMessages = newHashMap(MrTreeSetPositionConstraintAction.KIND -> MrTreeSetPositionConstraintAction) } override handle(Action action, String clientId, KGraphDiagramServer server) { @@ -40,14 +37,6 @@ class MrTreeActionHandler extends AbstractActionHandler { synchronized((server as KGraphDiagramServer).modelLock) { lsExtension.setPositionConstraint(action.constraint, clientId) } - } else if (action instanceof MrTreeDeletePositionConstraintAction) { - synchronized((server as KGraphDiagramServer).modelLock) { - lsExtension.deletePositionConstraint(action.constraint, clientId) - } - } else if (action instanceof SetAspectRatioAction) { - synchronized((server as KGraphDiagramServer).modelLock) { - lsExtension.setAspectRatio(action.constraint, clientId) - } } else { throw new IllegalArgumentException("Action " + action.kind + " not supported by handler " + this.class.simpleName) } diff --git a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeDeletePositionConstraint.xtend b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeDeletePositionConstraint.xtend deleted file mode 100644 index db2439acf..000000000 --- a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeDeletePositionConstraint.xtend +++ /dev/null @@ -1,31 +0,0 @@ -/* - * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient - * - * http://rtsys.informatik.uni-kiel.de/kieler - * - * Copyright 2022 by - * + Kiel University - * + Department of Computer Science - * + Real-Time and Embedded Systems Group - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package de.cau.cs.kieler.klighd.lsp.interactive.mrtree - -import org.eclipse.xtend.lib.annotations.Data - -/** - * Message send if an order constraint is deleted. - * Only the node id is required to do so, since it has its previous position saved together with its actual position. - * - * @author sdo - * - */ -@Data -class MrTreeDeletePositionConstraint { - String id -} \ No newline at end of file diff --git a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeInteractiveLanguageServerExtension.xtend b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeInteractiveLanguageServerExtension.xtend index c4c497da3..e5ef7c37d 100644 --- a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeInteractiveLanguageServerExtension.xtend +++ b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeInteractiveLanguageServerExtension.xtend @@ -64,17 +64,6 @@ class MrTreeInteractiveLanguageServerExtension implements ILanguageServerExtensi setConstraint(MrTreeOptions.POSITION_CONSTRAINT, uri, pc.id, pc.position, pc.positionConstraint) } - - def deletePositionConstraint(MrTreeDeletePositionConstraint constraint, String clientId) { - // Not implemented - } - - /** - * Sets the aspect ratio. - */ - def setAspectRatio(SetAspectRatio constraint, String clientId) { - // Not implemented - } /** * Sets a layer or position constraint with a chosen {@code value} on the node diff --git a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/Actions.xtend b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeSetPositionConstraintAction.xtend similarity index 56% rename from plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/Actions.xtend rename to plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeSetPositionConstraintAction.xtend index 0e6f92f39..f860449ab 100644 --- a/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/Actions.xtend +++ b/plugins/de.cau.cs.kieler.klighd.lsp/src/de/cau/cs/kieler/klighd/lsp/interactive/mrtree/MrTreeSetPositionConstraintAction.xtend @@ -39,43 +39,3 @@ public class MrTreeSetPositionConstraintAction implements Action { initializer.accept(this) } } - -/** - * Deletes the constraint on the node that is identified by the given id. - * - * @author sdo - */ -@Accessors -@EqualsHashCode -@ToString(skipNulls = true) -public class MrTreeDeletePositionConstraintAction implements Action { - public static val KIND = 'treeDeletePositionConstraint' - String kind = KIND - - MrTreeDeletePositionConstraint constraint - - new() {} - new(Consumer initializer) { - initializer.accept(this) - } -} - -/** - * Deletes the constraint on the node that is identified by the given id. - * - * @author sdo - */ -@Accessors -@EqualsHashCode -@ToString(skipNulls = true) -public class SetAspectRatioAction implements Action { - public static val KIND = 'setAspectRatio' - String kind = KIND - - SetAspectRatio constraint - - new() {} - new(Consumer initializer) { - initializer.accept(this) - } -}