Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Oberhuber2015-08-20 16:44:15 +0000
committerMartin Oberhuber2015-08-20 16:44:15 +0000
commit309d10fd5963843714696112b8925c9e7796511c (patch)
tree753098b4c38d8802bcc4e005a7e6a710ccee4983 /target_explorer
parent1c6bd1396e529492d84fd40ea4a9292a894e3c1b (diff)
downloadorg.eclipse.tcf-309d10fd5963843714696112b8925c9e7796511c.tar.gz
org.eclipse.tcf-309d10fd5963843714696112b8925c9e7796511c.tar.xz
org.eclipse.tcf-309d10fd5963843714696112b8925c9e7796511c.zip
Target Explorer: Bug 475513 - Add Platform to valueaddBinding enablement
Add the org.eclipse.core.runtime.Platform variable to the evaluationContext used for valueaddBinding enablement expressions, such that extenders can use that variable for their expressions. This is necessary for expressions that test for isBundleInstalled. Change-Id: If90c6ceb237774c535e5de729bc466b62f29ee24 Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/va/internal/BindingExtensionPointManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/va/internal/BindingExtensionPointManager.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/va/internal/BindingExtensionPointManager.java
index 2259bd01c..a5c154243 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/va/internal/BindingExtensionPointManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/va/internal/BindingExtensionPointManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2014 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2012, 2015 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -116,6 +116,7 @@ public class BindingExtensionPointManager extends AbstractExtensionPointManager<
// Set the default variable to the peer.
EvaluationContext evalContext = new EvaluationContext(null, peer);
evalContext.addVariable("peer", peer); //$NON-NLS-1$
+ evalContext.addVariable("org.eclipse.core.runtime.Platform", Platform.class); //$NON-NLS-1$
// Allow plugin activation
evalContext.setAllowPluginActivation(true);
// Evaluate the expression

Back to the top