浏览代码

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

tags/V1_2_0
mkersten 20 年前
父节点
当前提交
a17b51bec3
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7
    3
      ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java

+ 7
- 3
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);
}

正在加载...
取消
保存