Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2008-10-20 18:53:26 +0000
committerChris Goldthorpe2008-10-20 18:53:26 +0000
commitbc9b88a2524c8775fbe3da1b8c22f42ee5f321b6 (patch)
treed902b825086474eb51bcf5007b8bb45303586865 /org.eclipse.help.base
parentdc0389f13e9dcec47a14c73ac1905822dd8eade7 (diff)
downloadeclipse.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.java10
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;
}

Back to the top