diff options
author | Olivier Thomann | 2005-04-11 15:37:37 +0000 |
---|---|---|
committer | Olivier Thomann | 2005-04-11 15:37:37 +0000 |
commit | 663ec6c2eb68be77ac5a9531885836701530934d (patch) | |
tree | 214243367b9bc6b9662561a3f7d368f24a54f9b5 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | |
parent | 699f26e934e59aeb24a73287942d4b68645611a6 (diff) | |
download | eclipse.jdt.core-663ec6c2eb68be77ac5a9531885836701530934d.tar.gz eclipse.jdt.core-663ec6c2eb68be77ac5a9531885836701530934d.tar.xz eclipse.jdt.core-663ec6c2eb68be77ac5a9531885836701530934d.zip |
HEAD - Fix for 89096
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java index 8bfc4da1c5..f98e28cc7a 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java @@ -37,6 +37,7 @@ import org.eclipse.jdt.internal.compiler.parser.diagnose.DiagnoseParser; import org.eclipse.jdt.internal.compiler.problem.AbortCompilation; import org.eclipse.jdt.internal.compiler.problem.ProblemReporter; import org.eclipse.jdt.internal.compiler.problem.ProblemSeverities; +import org.eclipse.jdt.internal.compiler.util.Messages; import org.eclipse.jdt.internal.compiler.util.Util; public class Parser implements ParserBasicInformation, TerminalTokens, CompilerModifiers, OperatorIds, TypeIds { @@ -429,7 +430,7 @@ public final static void buildFilesFromLPG(String dataFilename, String dataFilen try { contents = Util.getFileCharContent(new File(dataFilename), null); } catch (IOException ex) { - System.out.println(Util.bind("parser.incorrectPath")); //$NON-NLS-1$ + System.out.println(Messages.parser_incorrectPath); return; } java.util.StringTokenizer st = @@ -470,7 +471,7 @@ public final static void buildFilesFromLPG(String dataFilename, String dataFilen try { contents = Util.getFileCharContent(new File(dataFilename2), null); } catch (IOException ex) { - System.out.println(Util.bind("parser.incorrectPath")); //$NON-NLS-1$ + System.out.println(Messages.parser_incorrectPath); return; } st = new java.util.StringTokenizer(new String(contents), "\t\n\r=#"); //$NON-NLS-1$ @@ -483,7 +484,7 @@ public final static void buildFilesFromLPG(String dataFilename, String dataFilen buildFileForCompliance(prefix + (++i) + ".rsc", newRhs.length, tokens);//$NON-NLS-1$ buildFileForReadableName(READABLE_NAMES_FILE+".properties", newLhs, newNonTerminalIndex, newName, tokens);//$NON-NLS-1$ - System.out.println(Util.bind("parser.moveFiles")); //$NON-NLS-1$ + System.out.println(Messages.parser_moveFiles); } public static int in_symbol(int state) { return in_symb[original_state(state)]; @@ -541,7 +542,7 @@ protected static byte[] readByteTable(String filename) throws java.io.IOExceptio InputStream stream = Parser.class.getResourceAsStream(filename); if (stream == null) { - throw new java.io.IOException(Util.bind("parser.missingFile", filename)); //$NON-NLS-1$ + throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename)); } byte[] bytes = null; try { @@ -602,7 +603,7 @@ protected static char[] readTable(String filename) throws java.io.IOException { InputStream stream = Parser.class.getResourceAsStream(filename); if (stream == null) { - throw new java.io.IOException(Util.bind("parser.missingFile", filename)); //$NON-NLS-1$ + throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename)); } byte[] bytes = null; try { @@ -619,7 +620,7 @@ protected static char[] readTable(String filename) throws java.io.IOException { //minimal integrity check (even size expected) int length = bytes.length; if (length % 2 != 0) - throw new java.io.IOException(Util.bind("parser.corruptedFile", filename)); //$NON-NLS-1$ + throw new java.io.IOException(Messages.bind(Messages.parser_corruptedFile, filename)); // convert bytes into chars char[] chars = new char[length / 2]; @@ -639,7 +640,7 @@ protected static long[] readLongTable(String filename) throws java.io.IOExceptio InputStream stream = Parser.class.getResourceAsStream(filename); if (stream == null) { - throw new java.io.IOException(Util.bind("parser.missingFile", filename)); //$NON-NLS-1$ + throw new java.io.IOException(Messages.bind(Messages.parser_missingFile, filename)); } byte[] bytes = null; try { @@ -656,7 +657,7 @@ protected static long[] readLongTable(String filename) throws java.io.IOExceptio //minimal integrity check (even size expected) int length = bytes.length; if (length % 8 != 0) - throw new java.io.IOException(Util.bind("parser.corruptedFile", filename)); //$NON-NLS-1$ + throw new java.io.IOException(Messages.bind(Messages.parser_corruptedFile, filename)); // convert bytes into longs long[] longs = new long[length / 8]; @@ -7543,14 +7544,14 @@ protected CompilationUnitDeclaration endParse(int act) { if (this.currentElement != null){ this.currentElement.topElement().updateParseTree(); if (VERBOSE_RECOVERY){ - System.out.print(Util.bind("parser.syntaxRecovery")); //$NON-NLS-1$ + System.out.print(Messages.parser_syntaxRecovery); System.out.println("--------------------------"); //$NON-NLS-1$ System.out.println(this.compilationUnit); System.out.println("----------------------------------"); //$NON-NLS-1$ } } else { if (this.diet & VERBOSE_RECOVERY){ - System.out.print(Util.bind("parser.regularParse")); //$NON-NLS-1$ + System.out.print(Messages.parser_regularParse); System.out.println("--------------------------"); //$NON-NLS-1$ System.out.println(this.compilationUnit); System.out.println("----------------------------------"); //$NON-NLS-1$ |