Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2008-06-30 19:46:40 +0000
committeratikhomirov2008-06-30 19:46:40 +0000
commit579b60d9addc8baaefc9996ae89bc008855c5784 (patch)
tree3924238257a494edbddfa283a46d33214aaf0aa2 /plugins
parentbd06cdcd6730c8d21a67394535647b54ebefefc8 (diff)
downloadorg.eclipse.gmf-tooling-579b60d9addc8baaefc9996ae89bc008855c5784.tar.gz
org.eclipse.gmf-tooling-579b60d9addc8baaefc9996ae89bc008855c5784.tar.xz
org.eclipse.gmf-tooling-579b60d9addc8baaefc9996ae89bc008855c5784.zip
[226882] Support links with childMetaFeature not from container
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeLinkModelFacetImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeLinkModelFacetImpl.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeLinkModelFacetImpl.java
index 90749f229..9e635aa18 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeLinkModelFacetImpl.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/gmfgen/impl/TypeLinkModelFacetImpl.java
@@ -155,9 +155,9 @@ public class TypeLinkModelFacetImpl extends TypeModelFacetImpl implements TypeLi
public GenClass getSourceType() {
if (getSourceMetaFeature() != null) {
return getSourceMetaFeature().getTypeGenClass();
- } else if (getContainmentMetaFeature() != null) {
- return getContainmentMetaFeature().getGenClass();
- }
+ } else if (getChildMetaFeature() != null) {
+ return getChildMetaFeature().getGenClass();
+ } // child feature defaults to be equal to containment, so if child == null, no reason to check containment
return null;
}

Back to the top