summaryrefslogtreecommitdiffstats
path: root/ajbrowser/src/org/aspectj/tools
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-07-29 16:35:10 +0000
committeracolyer <acolyer>2004-07-29 16:35:10 +0000
commit2ec27dacd9bb565c01e34c87521c622a20ae435f (patch)
treef4a31ee3827b6f19e959c556e690097ebc7176df /ajbrowser/src/org/aspectj/tools
parent354314541812fa2ef5a561d422b022410555d498 (diff)
downloadaspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.tar.gz
aspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.zip
fix for Bugzilla Bug 40206
need common isAspectJSourceFile() method
Diffstat (limited to 'ajbrowser/src/org/aspectj/tools')
-rw-r--r--ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java
index 8227c7fd0..6b487439d 100644
--- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java
+++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java
@@ -24,6 +24,7 @@ import org.aspectj.ajde.ui.*;
import org.aspectj.ajde.ui.internal.UserPreferencesStore;
import org.aspectj.ajde.ui.swing.*;
import org.aspectj.asm.*;
+import org.aspectj.util.FileUtil;
//import org.aspectj.asm.internal.*;
/**
@@ -160,7 +161,7 @@ public class BrowserManager {
if (filePath.endsWith(".lst")) {
AjdeUIManager.getDefault().getBuildConfigEditor().openFile(filePath);
topFrame.setEditorPanel(AjdeUIManager.getDefault().getBuildConfigEditor());
- } else if (filePath.endsWith(".java") || filePath.endsWith(".aj")){
+ } else if (FileUtil.hasSourceSuffix(filePath)){
editorManager.showSourceLine(filePath, 0, false);
} else {
Ajde.getDefault().getErrorHandler().handleError("File: " + filePath