mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Minor fixes to Java Mode
This commit is contained in:
@@ -2495,6 +2495,7 @@ public class ASTGenerator {
|
||||
|
||||
protected static ASTNode findLineOfNode(ASTNode node, int lineNumber,
|
||||
int offset, String name) {
|
||||
if (node == null) return null;
|
||||
|
||||
CompilationUnit root = (CompilationUnit) node.getRoot();
|
||||
// log("Inside "+getNodeAsString(node) + " | " + root.getLineNumber(node.getStartPosition()));
|
||||
|
||||
@@ -489,11 +489,9 @@ public class JavaTextAreaPainter extends TextAreaPainter
|
||||
setToolTipText(null);
|
||||
return super.getToolTipText(event);
|
||||
}
|
||||
String s = textArea.getLineText(line);
|
||||
if (s == "") {
|
||||
return event.toString();
|
||||
|
||||
} else if (s.length() == 0) {
|
||||
String s = textArea.getLineText(line);
|
||||
if (s == null || s.isEmpty()) {
|
||||
setToolTipText(null);
|
||||
return super.getToolTipText(event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user