Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #161 from nwnpallewela/master
Browse files Browse the repository at this point in the history
Fixing DEVTOOLESB-672
  • Loading branch information
nwnpallewela authored Aug 2, 2016
2 parents 4bc7b44 + 6910c45 commit 4063d1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ protected void doRun(IProgressMonitor progressMonitor) {
nullableValue);

/*
* AddCommand is used to avoid concurrent updating. index 0 to
* add as the first child
* AddCommand is used to avoid concurrent updating. index -1 to
* add as the last child
*/
AddCommand addCmd = new AddCommand(((GraphicalEditPart) selectedEP).getEditingDomain(), selectedNode,
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, 0);
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew,-1);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack().execute(addCmd);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ protected void doRun(IProgressMonitor progressMonitor) {
nullableValue);

/*
* AddCommand is used to avoid concurrent updating. index 0 to
* AddCommand is used to avoid concurrent updating. index -1 to
* add as the first child
*/
AddCommand addCmd = new AddCommand(((GraphicalEditPart) selectedEP).getEditingDomain(), selectedNode,
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, 0);
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, -1);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack().execute(addCmd);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ protected void doRun(IProgressMonitor progressMonitor) {
setPropertyKeyValuePairforTreeNodes(treeNodeNew, propertyValueList, JSON_SCHEMA_NULLABLE,
nullableValue);
/*
* AddCommand is used to avoid concurrent updating. index 0 to
* add as the first child
* AddCommand is used to avoid concurrent updating. index -1 to
* add as the last child
*/
AddCommand addCmd = new AddCommand(((GraphicalEditPart) selectedEP).getEditingDomain(), selectedNode,
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, 0);
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, -1);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack().execute(addCmd);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ protected void doRun(IProgressMonitor progressMonitor) {
nullableValue);

/*
* AddCommand is used to avoid concurrent updating. index 0 to
* AddCommand is used to avoid concurrent updating. index -1 to
* add as the first child
*/

AddCommand addCmd = new AddCommand(((GraphicalEditPart) selectedEP).getEditingDomain(), selectedNode,
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, 0);
DataMapperPackage.Literals.TREE_NODE__NODE, treeNodeNew, -1);
if (addCmd.canExecute()) {
((GraphicalEditPart) selectedEP).getEditingDomain().getCommandStack().execute(addCmd);
}
Expand Down

0 comments on commit 4063d1e

Please sign in to comment.