Loading de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/scoping/TTCN3GlobalScopeProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class TTCN3GlobalScopeProvider extends AbstractGlobalScopeProvider { if (TTCN3StatisticsProvider.getInstance().isParsingCompleted() && staticScope.containsKey(resource)) { return staticScope.get(resource); } else { if (!imports.isEmpty()) { if (!importsString.isEmpty()) { for (Resource r : resource.getResourceSet().getResources()) { ISelectable descriptions = getAllDescriptions(r); IEObjectDescription module = descriptions.getExportedObjectsByType(TTCN3Package.eINSTANCE.getTTCN3Module()).iterator() Loading Loading @@ -156,7 +156,7 @@ public class TTCN3GlobalScopeProvider extends AbstractGlobalScopeProvider { } if (reference == null) return null; return IScope.NULLSCOPE; IScope scope = MultimapBasedScope.createScope(IScope.NULLSCOPE, objects, isIgnoreCase(reference)); if (TTCN3StatisticsProvider.getInstance().isParsingCompleted()) { Loading de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/CodeStyleValidator.xtend +4 −0 Original line number Diff line number Diff line Loading @@ -1041,6 +1041,10 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { @Check def checkNoUnusedImports(TTCN3Module module) { if (!activeProfile.checkNoUnusedImports) { return } val TTCN3GlobalScopeProvider scopeProvider = globalScopeProvider as TTCN3GlobalScopeProvider if (scopeProvider == null) { return } Loading Loading
de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/scoping/TTCN3GlobalScopeProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ public class TTCN3GlobalScopeProvider extends AbstractGlobalScopeProvider { if (TTCN3StatisticsProvider.getInstance().isParsingCompleted() && staticScope.containsKey(resource)) { return staticScope.get(resource); } else { if (!imports.isEmpty()) { if (!importsString.isEmpty()) { for (Resource r : resource.getResourceSet().getResources()) { ISelectable descriptions = getAllDescriptions(r); IEObjectDescription module = descriptions.getExportedObjectsByType(TTCN3Package.eINSTANCE.getTTCN3Module()).iterator() Loading Loading @@ -156,7 +156,7 @@ public class TTCN3GlobalScopeProvider extends AbstractGlobalScopeProvider { } if (reference == null) return null; return IScope.NULLSCOPE; IScope scope = MultimapBasedScope.createScope(IScope.NULLSCOPE, objects, isIgnoreCase(reference)); if (TTCN3StatisticsProvider.getInstance().isParsingCompleted()) { Loading
de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/CodeStyleValidator.xtend +4 −0 Original line number Diff line number Diff line Loading @@ -1041,6 +1041,10 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { @Check def checkNoUnusedImports(TTCN3Module module) { if (!activeProfile.checkNoUnusedImports) { return } val TTCN3GlobalScopeProvider scopeProvider = globalScopeProvider as TTCN3GlobalScopeProvider if (scopeProvider == null) { return } Loading