aboutsummaryrefslogtreecommitdiffstats
path: root/ajbrowser
diff options
context:
space:
mode:
authormkersten <mkersten>2004-04-27 18:55:41 +0000
committermkersten <mkersten>2004-04-27 18:55:41 +0000
commita17b51bec37c42f0bf29df5bc454aff948bc6105 (patch)
tree54d04d0b9b46f66ad5c0cd566ebacbec4941bdc0 /ajbrowser
parenta0a485769158ab44e251deeecf8c294ca3ac7526 (diff)
downloadaspectj-a17b51bec37c42f0bf29df5bc454aff948bc6105.tar.gz
aspectj-a17b51bec37c42f0bf29df5bc454aff948bc6105.zip
Fix for 54238: Restore build cancelling to Swing-based IDEs
Diffstat (limited to 'ajbrowser')
-rw-r--r--ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java
index 95d5c9135..720ed65fd 100644
--- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java
+++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java
@@ -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);
}