diff options
author | acolyer <acolyer> | 2004-07-29 16:35:10 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-07-29 16:35:10 +0000 |
commit | 2ec27dacd9bb565c01e34c87521c622a20ae435f (patch) | |
tree | f4a31ee3827b6f19e959c556e690097ebc7176df /ajde/src | |
parent | 354314541812fa2ef5a561d422b022410555d498 (diff) | |
download | aspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.tar.gz aspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.zip |
fix for Bugzilla Bug 40206
need common isAspectJSourceFile() method
Diffstat (limited to 'ajde/src')
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java | 5 | ||||
-rw-r--r-- | ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java b/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java index c1b0a3789..862602b13 100644 --- a/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java +++ b/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java @@ -21,6 +21,7 @@ import org.aspectj.ajde.*; import org.aspectj.ajde.ui.*; import org.aspectj.bridge.*; import org.aspectj.util.ConfigParser; +import org.aspectj.util.FileUtil; /** * @author Mik Kersten @@ -34,9 +35,7 @@ public class LstBuildConfigManager implements BuildConfigManager { private static final FilenameFilter SOURCE_FILE_FILTER = new FilenameFilter() { public boolean accept(File dir, String name) { - return name.endsWith(".java") - || name.endsWith(".aj") - || name.endsWith(".lst"); + return FileUtil.hasSourceSuffix(name) || name.endsWith(".lst"); } }; diff --git a/ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java b/ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java index 417e0e795..cea5fe9e1 100644 --- a/ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java +++ b/ajde/src/org/aspectj/ajde/ui/BuildConfigNode.java @@ -18,6 +18,7 @@ import java.io.*; import java.util.*; import org.aspectj.bridge.*; +import org.aspectj.util.FileUtil; /** * @author Mik Kersten @@ -159,9 +160,7 @@ public class BuildConfigNode { } public boolean isValidResource() { - return name.endsWith(".java") - || name.endsWith(".aj") - || name.endsWith(".lst"); + return FileUtil.hasSourceSuffix(name) || name.endsWith(".lst"); } public boolean isActive() { |