Browse Source

Fixed resolving types in statechart specification.

Thomas Kutz 9 years ago
parent
commit
059771c553

+ 1 - 1
plugins/org.yakindu.sct.model.stext/src/org/yakindu/sct/model/stext/scoping/StextImportAwareScopeProvider.java

@@ -42,7 +42,7 @@ public class StextImportAwareScopeProvider extends ImportedNamespaceAwareLocalSc
 		List<ImportScope> importScopes = new ArrayList<ImportScope>();
 		if (context instanceof StateSpecification || context instanceof TransitionSpecification) {
 			importScopes = EcoreUtil2.getAllContentsOfType(getStatechart(context), ImportScope.class);
-		} else if (context instanceof Statechart) {
+		} else {
 			importScopes = EcoreUtil2.getAllContentsOfType(context, ImportScope.class);
 		}
 		for (ImportScope scope : importScopes) {