Browse Source

Fix for 54238: Restore build cancelling to Swing-based IDEs

tags/V1_2_0
mkersten 20 years ago
parent
commit
a17b51bec3
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java

+ 7
- 3
ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java View File

@@ -72,9 +72,13 @@ public class BasicEditor implements EditorAdapter {
}

public void showSourceLine(ISourceLocation sourceLocation, boolean highlight) {
showSourceLine(sourceLocation.getSourceFile().getAbsolutePath(), sourceLocation.getLine(), highlight);
}

try {
showSourceLine(sourceLocation.getSourceFile().getAbsolutePath(), sourceLocation.getLine(), highlight);
} catch (NullPointerException npe) {
Ajde.getDefault().getIdeUIAdapter().displayStatusInformation(" no corresponding source line to seek to");
}
}
public void showSourceLine(int lineNumber, boolean highlight) {
showSourceLine(filePath, lineNumber, highlight);
}

Loading…
Cancel
Save