mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
refactoring can now be undone with one undo
This commit is contained in:
@@ -2020,6 +2020,7 @@ public class ASTGenerator {
|
||||
pdeOffsets[i][2] = awrap.getPDECodeOffsetForSN(this);
|
||||
}
|
||||
|
||||
editor.startCompoundEdit();
|
||||
for (int i = 0; i < defCU.getChildCount(); i++) {
|
||||
ASTNodeWrapper awrap = (ASTNodeWrapper) ((DefaultMutableTreeNode) (defCU
|
||||
.getChildAt(i))).getUserObject();
|
||||
@@ -2043,6 +2044,7 @@ public class ASTGenerator {
|
||||
//int k = JOptionPane.showConfirmDialog(new JFrame(), "Rename?","", JOptionPane.INFORMATION_MESSAGE);
|
||||
editor.ta.setSelectedText(newName);
|
||||
}
|
||||
editor.stopCompoundEdit();
|
||||
errorCheckerService.resumeThread();
|
||||
editor.getSketch().setModified(true);
|
||||
errorCheckerService.runManualErrorCheck();
|
||||
|
||||
Reference in New Issue
Block a user