diff options
author | Chris Goldthorpe | 2007-02-19 22:13:09 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2007-02-19 22:13:09 +0000 |
commit | cfc3ab7f14ef02cc88ee1414473ac3c8f33a8fd2 (patch) | |
tree | f819faf9421f8ac9045c11ff9d4ac051261ef119 /org.eclipse.ui.cheatsheets/src/org | |
parent | 7f9692de0c53ab4fcf92b83b422f45c4edbf420d (diff) | |
download | eclipse.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')
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$ |