Skip to content
Snippets Groups Projects
Commit 315be011 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

Merge branch '10-nsd-file-referred-by-dependson-may-not-be-present' into 'master'

Resolve "NSD file referred by DependsOn may not be present"

Closes #10

See merge request RiseClipseGroup/RiseClipseMetamodel_NSD2017!10
parents 60abddac a72ba93e
No related branches found
No related tags found
1 merge request!10Resolve "NSD file referred by DependsOn may not be present"
......@@ -1675,7 +1675,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findCDC( cDCName, console );
}
......@@ -1696,7 +1698,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findPresenceCondition( presenceConditionName, console );
}
......@@ -1719,7 +1723,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findFunctionalConstraint( functionalConstraintAbbreviation, console );
}
......@@ -1740,7 +1746,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findEnumeration( enumerationName, console );
}
......@@ -1761,7 +1769,9 @@ public class NSImpl extends CopyrightedImpl implements NS {
if( found != null ) return found;
}
if( isSetDependsOn() ) {
// Look for in NS referred by DependsOn
// Warning: NS referred by DependsOn may not be loaded
if( isSetDependsOn() && ( getDependsOn().isSetRefersToNS() )) {
getDependsOn().buildExplicitLinks( console );
return getDependsOn().getRefersToNS().findBasicType( basicTypeName, console );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment