IDEA-19061 Integrate the Rearranger-plugin into core-IDEA

Update model rows on changes
This commit is contained in:
Denis.Zhdanov
2012-08-28 16:13:34 +04:00
parent 19d23fdb8e
commit ea7151ca64
2 changed files with 5 additions and 2 deletions
@@ -112,6 +112,10 @@ public class ArrangementRuleEditingModelImpl implements ArrangementRuleEditingMo
return myRow;
}
public void setRow(int row) {
myRow = row;
}
@NotNull
public ArrangementTreeNode getTopMost() {
return myTopMost;
@@ -508,11 +508,10 @@ public class ArrangementRuleTree {
ArrangementRuleEditingModelImpl m = myModels.remove(oldRow);
if (m != null) {
changedModelMappings.put(newRow, m);
m.setRow(newRow);
}
return true;
}
});
putAll(changedModelMappings, myModels);