diff options
author | Chris Goldthorpe | 2008-10-20 18:53:26 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2008-10-20 18:53:26 +0000 |
commit | bc9b88a2524c8775fbe3da1b8c22f42ee5f321b6 (patch) | |
tree | d902b825086474eb51bcf5007b8bb45303586865 /org.eclipse.help.base | |
parent | dc0389f13e9dcec47a14c73ac1905822dd8eade7 (diff) | |
download | eclipse.platform.ua-bc9b88a2524c8775fbe3da1b8c22f42ee5f321b6.tar.gz eclipse.platform.ua-bc9b88a2524c8775fbe3da1b8c22f42ee5f321b6.tar.xz eclipse.platform.ua-bc9b88a2524c8775fbe3da1b8c22f42ee5f321b6.zip |
Fix API Warnings
Diffstat (limited to 'org.eclipse.help.base')
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpEvaluationContext.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpEvaluationContext.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpEvaluationContext.java index ed8dfd628..b107abe60 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpEvaluationContext.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/HelpEvaluationContext.java @@ -28,14 +28,8 @@ public final class HelpEvaluationContext { */ public static EvaluationContext getContext() { if (context == null) { - context = new EvaluationContext(null, Platform.class) { - public Object getVariable(String name) { - if (VARIABLE_PLATFORM.equals(name)) { - return Platform.class; - } - return null; - } - }; + context = new EvaluationContext(null, Platform.class); + context.addVariable(VARIABLE_PLATFORM, Platform.class); } return context; } |