mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
Fixes #69
This commit is contained in:
@@ -1684,7 +1684,7 @@ public class ASTGenerator {
|
||||
} else {
|
||||
logE("null");
|
||||
if(scrollOnly) {
|
||||
editor.statusMessage("Can't find definition of " + simpName,
|
||||
editor.statusMessage(simpName + " is not defined in this sketch",
|
||||
DebugEditor.STATUS_ERR);
|
||||
}
|
||||
}
|
||||
@@ -2310,6 +2310,15 @@ public class ASTGenerator {
|
||||
DebugEditor.STATUS_WARNING);
|
||||
return;
|
||||
}
|
||||
|
||||
DefaultMutableTreeNode defCU = findAllOccurrences();
|
||||
String selText = lastClickedWord == null ? editor.ta.getSelectedText()
|
||||
: lastClickedWord;
|
||||
if(defCU == null){
|
||||
editor.statusMessage(selText + " isn't defined in this sketch, so it can't" +
|
||||
" be renamed", DebugEditor.STATUS_ERR);
|
||||
return;
|
||||
}
|
||||
if (!frmRename.isVisible()){
|
||||
frmRename.setLocation(editor.getX()
|
||||
+ (editor.getWidth() - frmRename.getWidth()) / 2,
|
||||
|
||||
Reference in New Issue
Block a user