diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-16 09:39:08 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-16 09:39:08 +0000 |
commit | b8f3002eabcd0e6b7a63ce1b883b75c8fbd44009 (patch) | |
tree | c051b8d7bc08837b5da38d9541b4d79439e63fd4 /sca-java-2.x/trunk/modules/domain-node | |
parent | 5f25a15f1421b7a60c08d3892c786e70f8f04743 (diff) |
Update to populate the installed contributions imports
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1103664 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl2.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl2.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl2.java index b7fcd8a751..e133a3d671 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl2.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl2.java @@ -176,6 +176,18 @@ public class NodeImpl2 { }
}
}
+
+ // Imports
+ if (contribution.getImports() != null) {
+ for (Import imprt : contribution.getImports()) {
+ // TODO: Handle these and others in a more extensible way
+ if (imprt instanceof JavaImport) {
+ ic.getJavaImports().add(((JavaImport)imprt).getPackage());
+ } else if (imprt instanceof NamespaceImport) {
+ ic.getNamespaceImports().add(((NamespaceImport)imprt).getNamespace());
+ }
+ }
+ }
}
}
|