1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

mark string non-externalized

This commit is contained in:
David Inglis 2004-02-27 03:36:52 +00:00
parent 95f42aeb9e
commit 479396734d
12 changed files with 14 additions and 14 deletions

View file

@ -20,7 +20,7 @@ import org.eclipse.cdt.make.core.makefile.IDefaultRule;
public class DefaultRule extends SpecialRule implements IDefaultRule {
public DefaultRule(Directive parent, Command[] cmds) {
super(parent, new Target(".DEFAULT"), new String[0], cmds);
super(parent, new Target(".DEFAULT"), new String[0], cmds); //$NON-NLS-1$
}
}

View file

@ -16,7 +16,7 @@ import org.eclipse.cdt.make.core.makefile.IEmptyLine;
public class EmptyLine extends Directive implements IEmptyLine {
final public static char NL = '\n';
final public static String NL_STRING = "\n";
final public static String NL_STRING = "\n"; //$NON-NLS-1$
public EmptyLine(Directive parent) {
super(parent);

View file

@ -21,7 +21,7 @@ import org.eclipse.cdt.make.core.makefile.IIgnoreRule;
public class IgnoreRule extends SpecialRule implements IIgnoreRule {
public IgnoreRule(Directive parent, String[] reqs) {
super(parent, new Target(".IGNORE"), reqs, new Command[0]);
super(parent, new Target(".IGNORE"), reqs, new Command[0]); //$NON-NLS-1$
}
}

View file

@ -31,7 +31,7 @@ public class InferenceRule extends Rule {
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(getTarget().toString()).append(":\n");
buffer.append(getTarget().toString()).append(":\n"); //$NON-NLS-1$
ICommand[] cmds = getCommands();
for (int i = 0; i < cmds.length; i++) {
buffer.append(cmds[i].toString());

View file

@ -34,7 +34,7 @@ public class MacroDefinition extends Directive implements IMacroDefinition {
}
public void setName(String n) {
name = (n == null) ? "" : n.trim() ;
name = (n == null) ? "" : n.trim() ; //$NON-NLS-1$
}
public StringBuffer getValue() {
@ -46,7 +46,7 @@ public class MacroDefinition extends Directive implements IMacroDefinition {
*/
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(getName()).append(" = ").append(getValue()).append('\n');
buffer.append(getName()).append(" = ").append(getValue()).append('\n'); //$NON-NLS-1$
return buffer.toString();
}

View file

@ -20,6 +20,6 @@ import org.eclipse.cdt.make.core.makefile.IPosixRule;
public class PosixRule extends SpecialRule implements IPosixRule {
public PosixRule(Directive parent) {
super(parent, new Target(".POSIX"), new String[0], new Command[0]);
super(parent, new Target(".POSIX"), new String[0], new Command[0]); //$NON-NLS-1$
}
}

View file

@ -20,7 +20,7 @@ import org.eclipse.cdt.make.core.makefile.IPreciousRule;
public class PreciousRule extends SpecialRule implements IPreciousRule {
public PreciousRule(Directive parent, String[] reqs) {
super(parent, new Target(".PRECIOUS"), reqs, new Command[0]);
super(parent, new Target(".PRECIOUS"), reqs, new Command[0]); //$NON-NLS-1$
}
}

View file

@ -22,7 +22,7 @@ import org.eclipse.cdt.make.core.makefile.ISccsGetRule;
public class SccsGetRule extends SpecialRule implements ISccsGetRule {
public SccsGetRule(Directive parent, Command[] cmds) {
super(parent, new Target(".SCCS_GET"), new String[0], cmds);
super(parent, new Target(".SCCS_GET"), new String[0], cmds); //$NON-NLS-1$
}
}

View file

@ -21,7 +21,7 @@ import org.eclipse.cdt.make.core.makefile.ISilentRule;
public class SilentRule extends SpecialRule implements ISilentRule {
public SilentRule(Directive parent, String[] reqs) {
super(parent, new Target(".SILENT"), reqs, new Command[0]);
super(parent, new Target(".SILENT"), reqs, new Command[0]); //$NON-NLS-1$
}
}

View file

@ -31,7 +31,7 @@ public abstract class SpecialRule extends Rule implements ISpecialRule {
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append(target).append(":");
sb.append(target).append(':');
String[] reqs = getPrerequisites();
for (int i = 0; i < reqs.length; i++) {
sb.append(' ').append(reqs[i]);

View file

@ -21,7 +21,7 @@ import org.eclipse.cdt.make.core.makefile.ISuffixesRule;
public class SuffixesRule extends SpecialRule implements ISuffixesRule {
public SuffixesRule(Directive parent, String[] suffixes) {
super(parent, new Target(".SUFFIXES"), suffixes, new Command[0]);
super(parent, new Target(".SUFFIXES"), suffixes, new Command[0]); //$NON-NLS-1$
}
}

View file

@ -19,11 +19,11 @@ public class Util {
}
public static boolean isCommand(String line) {
return line.length() > 1 && line.startsWith("\t");
return line.length() > 1 && line.startsWith("\t"); //$NON-NLS-1$
}
public static boolean isEscapedLine(String line) {
return (line.endsWith("\\") && !line.endsWith("\\\\"));
return (line.endsWith("\\") && !line.endsWith("\\\\")); //$NON-NLS-1$ //$NON-NLS-2$
}
public static boolean isEmptyLine(String line) {