mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
Update model rows on changes
This commit is contained in:
+4
@@ -112,6 +112,10 @@ public class ArrangementRuleEditingModelImpl implements ArrangementRuleEditingMo
|
||||
return myRow;
|
||||
}
|
||||
|
||||
public void setRow(int row) {
|
||||
myRow = row;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public ArrangementTreeNode getTopMost() {
|
||||
return myTopMost;
|
||||
|
||||
+1
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user