Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2004-03-19 10:54:35 +0000
committerteicher2004-03-19 10:54:35 +0000
commit65521bea885d1c65038b5af8a668901bf5689260 (patch)
treee60ae2712f21cecbb048e6f4be8abdb70996622a /org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples
parentbdd27baa5d8fb1131d78af19891af5a722dfa5aa (diff)
downloadeclipse.platform.text-65521bea885d1c65038b5af8a668901bf5689260.tar.gz
eclipse.platform.text-65521bea885d1c65038b5af8a668901bf5689260.tar.xz
eclipse.platform.text-65521bea885d1c65038b5af8a668901bf5689260.zip
removed NLS warnings
Diffstat (limited to 'org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples')
-rw-r--r--org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/TagRule.java2
-rw-r--r--org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLPartitionScanner.java8
-rw-r--r--org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLScanner.java2
-rw-r--r--org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLTagScanner.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/TagRule.java b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/TagRule.java
index bb6ebda4e..a824a7e76 100644
--- a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/TagRule.java
+++ b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/TagRule.java
@@ -5,7 +5,7 @@ import org.eclipse.jface.text.rules.*;
public class TagRule extends MultiLineRule {
public TagRule(IToken token) {
- super("<", ">", token);
+ super("<", ">", token); //$NON-NLS-1$//$NON-NLS-2$
}
protected boolean sequenceDetected(
ICharacterScanner scanner,
diff --git a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLPartitionScanner.java b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLPartitionScanner.java
index bba474860..8d975ba42 100644
--- a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLPartitionScanner.java
+++ b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLPartitionScanner.java
@@ -3,9 +3,9 @@ package org.eclipse.ui.examples.templateeditor.editors;
import org.eclipse.jface.text.rules.*;
public class XMLPartitionScanner extends RuleBasedPartitionScanner {
- public final static String XML_DEFAULT = "__xml_default";
- public final static String XML_COMMENT = "__xml_comment";
- public final static String XML_TAG = "__xml_tag";
+ public final static String XML_DEFAULT = "__xml_default"; //$NON-NLS-1$
+ public final static String XML_COMMENT = "__xml_comment"; //$NON-NLS-1$
+ public final static String XML_TAG = "__xml_tag"; //$NON-NLS-1$
public XMLPartitionScanner() {
@@ -14,7 +14,7 @@ public class XMLPartitionScanner extends RuleBasedPartitionScanner {
IPredicateRule[] rules = new IPredicateRule[2];
- rules[0] = new MultiLineRule("<!--", "-->", xmlComment);
+ rules[0] = new MultiLineRule("<!--", "-->", xmlComment); //$NON-NLS-1$//$NON-NLS-2$
rules[1] = new TagRule(tag);
setPredicateRules(rules);
diff --git a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLScanner.java b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLScanner.java
index 947552d01..12251602b 100644
--- a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLScanner.java
+++ b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLScanner.java
@@ -13,7 +13,7 @@ public class XMLScanner extends RuleBasedScanner {
IRule[] rules = new IRule[2];
//Add rule for processing instructions
- rules[0] = new SingleLineRule("<?", "?>", procInstr);
+ rules[0] = new SingleLineRule("<?", "?>", procInstr); //$NON-NLS-1$//$NON-NLS-2$
// Add generic whitespace rule.
rules[1] = new WhitespaceRule(new XMLWhitespaceDetector());
diff --git a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLTagScanner.java b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLTagScanner.java
index 13ab267f1..eecd7fe07 100644
--- a/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLTagScanner.java
+++ b/org.eclipse.ui.examples.javaeditor/Template Editor Example/org/eclipse/ui/examples/templateeditor/editors/XMLTagScanner.java
@@ -13,9 +13,9 @@ public class XMLTagScanner extends RuleBasedScanner {
IRule[] rules = new IRule[3];
// Add rule for double quotes
- rules[0] = new SingleLineRule("\"", "\"", string, '\\');
+ rules[0] = new SingleLineRule("\"", "\"", string, '\\'); //$NON-NLS-1$//$NON-NLS-2$
// Add a rule for single quotes
- rules[1] = new SingleLineRule("'", "'", string, '\\');
+ rules[1] = new SingleLineRule("'", "'", string, '\\'); //$NON-NLS-1$//$NON-NLS-2$
// Add generic whitespace rule.
rules[2] = new WhitespaceRule(new XMLWhitespaceDetector());

Back to the top