summaryrefslogtreecommitdiffstats
path: root/branches/sca-equinox/samples/calculator-rcp/src
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-equinox/samples/calculator-rcp/src')
-rw-r--r--branches/sca-equinox/samples/calculator-rcp/src/main/java/calculator/rcp/Activator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/branches/sca-equinox/samples/calculator-rcp/src/main/java/calculator/rcp/Activator.java b/branches/sca-equinox/samples/calculator-rcp/src/main/java/calculator/rcp/Activator.java
index 6a5d3cc5f4..19d4ed5a04 100644
--- a/branches/sca-equinox/samples/calculator-rcp/src/main/java/calculator/rcp/Activator.java
+++ b/branches/sca-equinox/samples/calculator-rcp/src/main/java/calculator/rcp/Activator.java
@@ -49,7 +49,8 @@ public class Activator extends AbstractUIPlugin {
plugin = this;
launcher = NodeLauncher.newInstance();
- node = launcher.createNode("Calculator.composite", new Contribution("c1", new File("target/classes").toURI().toString()));
+ String location = getClass().getProtectionDomain().getCodeSource().getLocation().toString();
+ node = launcher.createNode("Calculator.composite", new Contribution("c1", location));
node.start();
}