summaryrefslogtreecommitdiffstats
path: root/branches/sca-equinox/samples/calculator-rcp/src
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-25 01:58:01 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-25 01:58:01 +0000
commit3913958f543845da0d74beb09b502a1e8712faf2 (patch)
treea3e010c1039c672cde0673680d16f055b914a175 /branches/sca-equinox/samples/calculator-rcp/src
parent26f26e8141964519d5cf0fecc692bea4ba997a74 (diff)
Determine the location of the SCA contribution from the current class.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@698798 13f79535-47bb-0310-9956-ffa450edef68
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();
}