From 2ec27dacd9bb565c01e34c87521c622a20ae435f Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 29 Jul 2004 16:35:10 +0000 Subject: fix for Bugzilla Bug 40206 need common isAspectJSourceFile() method --- ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ajbrowser/src/org') 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 -- cgit v1.2.3