Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2007-02-19 22:13:09 +0000
committerChris Goldthorpe2007-02-19 22:13:09 +0000
commitcfc3ab7f14ef02cc88ee1414473ac3c8f33a8fd2 (patch)
treef819faf9421f8ac9045c11ff9d4ac051261ef119 /org.eclipse.ui.cheatsheets/src/org
parent7f9692de0c53ab4fcf92b83b422f45c4edbf420d (diff)
downloadeclipse.platform.ua-cfc3ab7f14ef02cc88ee1414473ac3c8f33a8fd2.tar.gz
eclipse.platform.ua-cfc3ab7f14ef02cc88ee1414473ac3c8f33a8fd2.tar.xz
eclipse.platform.ua-cfc3ab7f14ef02cc88ee1414473ac3c8f33a8fd2.zip
Bug 102366 - [Cheatsheet] PII: "param3" attribute in cheatsheet action tag
Diffstat (limited to 'org.eclipse.ui.cheatsheets/src/org')
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/CheatSheetParser.java2
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/IParserTags.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/CheatSheetParser.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/CheatSheetParser.java
index a577d508a..350e91b10 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/CheatSheetParser.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/CheatSheetParser.java
@@ -240,6 +240,8 @@ public class CheatSheetParser implements IStatusContainer {
executable.setWhen(attribute.getNodeValue());
} else if (attributeName.equals(IParserTags.REQUIRED)) {
executable.setRequired(attribute.getNodeValue().equals(TRUE_STRING));
+ } else if (attributeName.equals(IParserTags.TRANSLATE)) {
+ // Translation hint, no semantic effect
} else if (executable.hasParams() && attributeName.startsWith(IParserTags.PARAM)) {
try {
if(params == null) {
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/IParserTags.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/IParserTags.java
index ee5aaafe7..4633774e4 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/IParserTags.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/data/IParserTags.java
@@ -128,6 +128,7 @@ public interface IParserTags {
public static final String ON_COMPLETION = "onCompletion"; //$NON-NLS-1$
public static final String CONTENT_URL = "contentURL"; //$NON-NLS-1$
public static final String REQUIRED = "required"; //$NON-NLS-1$
+ public static final String TRANSLATE = "translate"; //$NON-NLS-1$
// Constants for re-escaping XML characters
public static final String LESS_THAN = "<"; //$NON-NLS-1$

Back to the top