From f2377eca27eeaf204b80f34686b9f4d99a232a78 Mon Sep 17 00:00:00 2001 From: Stefan Kapferer Date: Fri, 23 Aug 2024 13:17:00 +0200 Subject: [PATCH] Remove 'Move stakeholder to group' action in language server; for now --- .../dsl/ide/tests/actions/StakeholdersActionsTest.xtend | 4 ---- .../refactoring/MoveStakeholderToGroupCommandTest.xtend | 4 ++-- .../org/contextmapper/dsl/ide/actions/CMLActionRegistry.java | 3 ++- .../contextmapper/dsl/ide/commands/CMLCommandRegistry.java | 3 ++- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/actions/StakeholdersActionsTest.xtend b/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/actions/StakeholdersActionsTest.xtend index dee18b3f..2daee274 100644 --- a/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/actions/StakeholdersActionsTest.xtend +++ b/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/actions/StakeholdersActionsTest.xtend @@ -29,10 +29,6 @@ class StakeholdersActionsTest extends AbstractBoundedContextCodeActionTest { ''' line = 1 expectedCodeActions = ''' - command : cml.ar.moveStakeholderToGroup.proxy - title : Move Stakeholder To New Group - args : - file://«this.root»/MyModel.cml,Tester command : cml.ar.createValueForStakeholder.proxy title : Create Value For Stakeholder args : diff --git a/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/commands/refactoring/MoveStakeholderToGroupCommandTest.xtend b/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/commands/refactoring/MoveStakeholderToGroupCommandTest.xtend index 17fc61fb..bd2138d6 100644 --- a/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/commands/refactoring/MoveStakeholderToGroupCommandTest.xtend +++ b/org.contextmapper.dsl.ide.tests/src/org/contextmapper/dsl/ide/tests/commands/refactoring/MoveStakeholderToGroupCommandTest.xtend @@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test class MoveStakeholderToGroupCommandTest extends AbstractCMLCommandTest { - @Test + /*@Test def void testARCommandExecution() { // given initializeCommandsDynamically() @@ -44,6 +44,6 @@ class MoveStakeholderToGroupCommandTest extends AbstractCMLCommandTest { // then CMLCommandService.COMMAND_EXECUTED_RETURN_VALUE.assertEquals(resultVal) - } + } */ } diff --git a/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/actions/CMLActionRegistry.java b/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/actions/CMLActionRegistry.java index 0ac9c765..2a3e3063 100644 --- a/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/actions/CMLActionRegistry.java +++ b/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/actions/CMLActionRegistry.java @@ -116,7 +116,8 @@ private List getAllActions(CMLResource resource, List se codeActions.add(new SuspendPartnershipAction(resource, selectedObjects)); codeActions.add(new SwitchFromPartnershipToSharedKernelAction(resource, selectedObjects)); codeActions.add(new SwitchFromSharedKernelToPartnershipAction(resource, selectedObjects)); - codeActions.add(new MoveStakeholderToGroupAction(resource, selectedObjects)); + // Transformation making problems in VS Code + // codeActions.add(new MoveStakeholderToGroupAction(resource, selectedObjects)); codeActions.add(new CreateValue4StakeholderAction(resource, selectedObjects)); codeActions.add(new AddEthicalValueAssessmentAction(resource, selectedObjects)); codeActions.add(new WrapValueInClusterAction(resource, selectedObjects)); diff --git a/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/commands/CMLCommandRegistry.java b/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/commands/CMLCommandRegistry.java index 1a6fb29b..6f2b4c89 100644 --- a/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/commands/CMLCommandRegistry.java +++ b/org.contextmapper.dsl.ide/src/org/contextmapper/dsl/ide/commands/CMLCommandRegistry.java @@ -91,7 +91,8 @@ private void registerCommands() { commandMap.put("cml.ar.switchPartnershipToSharedKernel", new SwitchFromPartnershipToSharedKernelCommand(editRecorder)); commandMap.put("cml.ar.switchSharedKernelToPartnership", new SwitchFromSharedKernelToPartnershipCommand(editRecorder)); commandMap.put("cml.quickfix.command.splitStoryByVerb", new SplitStoryByVerbCommand(editRecorder)); - commandMap.put("cml.ar.moveStakeholderToGroup", new MoveStakeholderToGroupCommand(editRecorder)); + // Transformation making problems in VS Code + // commandMap.put("cml.ar.moveStakeholderToGroup", new MoveStakeholderToGroupCommand(editRecorder)); commandMap.put("cml.ar.createValueForStakeholder", new CreateValue4StakeholderCommand(editRecorder)); commandMap.put("cml.ar.addEthicalValueAssessment", new AddEthicalValueAssessmentCommand(editRecorder)); commandMap.put("cml.ar.wrapValueInCluster", new WrapValueInClusterCommand(editRecorder));