Commit ff368432 authored by Daniel Honsel's avatar Daniel Honsel
Browse files

fixed minor bugs

parent 1c787c39
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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()
@@ -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()) {
+4 −0
Original line number Diff line number Diff line
@@ -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 }