Skip to content

Commit

Permalink
Remove 'Move stakeholder to group' action in language server; for now
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka committed Aug 23, 2024
1 parent 79bd329 commit f2377ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test

class MoveStakeholderToGroupCommandTest extends AbstractCMLCommandTest {

@Test
/*@Test
def void testARCommandExecution() {
// given
initializeCommandsDynamically()
Expand All @@ -44,6 +44,6 @@ class MoveStakeholderToGroupCommandTest extends AbstractCMLCommandTest {
// then
CMLCommandService.COMMAND_EXECUTED_RETURN_VALUE.assertEquals(resultVal)
}
} */

}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private List<CMLCodeAction> getAllActions(CMLResource resource, List<EObject> 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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f2377ec

Please sign in to comment.