gfcm in Java ; Finnish close to finished

This commit is contained in:
aarne
2005-06-30 22:09:36 +00:00
parent 33fbd1358c
commit 3377aaabdd
16 changed files with 168 additions and 122 deletions

View File

@@ -20,7 +20,7 @@ import javax.swing.filechooser.*;
public class GrammarFilter extends FileFilter {
// Accept all directories and all gf, gfm files.
// Accept all directories and all gf, gfcm files.
public boolean accept(File f) {
if (f.isDirectory()) {
return true;
@@ -29,7 +29,7 @@ public class GrammarFilter extends FileFilter {
String extension = Utils.getExtension(f);
if (extension != null) {
if (extension.equals(Utils.gf) ||
extension.equals(Utils.gfm)) {
extension.equals(Utils.gfcm)) {
return true;
} else {
return false;
@@ -41,6 +41,6 @@ public class GrammarFilter extends FileFilter {
// The description of this filter
public String getDescription() {
return "Just Grammars (*.gf, *.gfm)";
return "Just Grammars (*.gf, *.gfcm)";
}
}

View File

@@ -30,7 +30,7 @@ public class Utils {
}
public static final String gf = "gf";
public static final String gfm = "gfm";
public static final String gfcm = "gfcm";
/*
* Get the extension of a file.