Package: EmfParsleyDslImportedNamespaceScopeProvider

EmfParsleyDslImportedNamespaceScopeProvider

nameinstructionbranchcomplexitylinemethod
EmfParsleyDslImportedNamespaceScopeProvider()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getImplicitImports(boolean)
M: 0 C: 32
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Lorenzo Bettini - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.emf.parsley.dsl.scoping;
12:
13: import java.util.ArrayList;
14: import java.util.List;
15:
16: import org.eclipse.xtext.naming.QualifiedName;
17: import org.eclipse.xtext.scoping.impl.ImportNormalizer;
18: import org.eclipse.xtext.xbase.scoping.XImportSectionNamespaceScopeProvider;
19:
20: /**
21: * @author Lorenzo Bettini
22: *
23: */
24: public class EmfParsleyDslImportedNamespaceScopeProvider extends
25:         XImportSectionNamespaceScopeProvider {
26:
27:         @Override
28:         protected List<ImportNormalizer> getImplicitImports(boolean ignoreCase) {
29:                 List<ImportNormalizer> implicitImports = new ArrayList<ImportNormalizer>(super.getImplicitImports(ignoreCase));
30:                 implicitImports.add(new ImportNormalizer(QualifiedName.create("org","eclipse","swt"), true, ignoreCase));
31:                 return implicitImports;
32:         }
33: }