blob: 23352dd45d8013e525ae7e6b3db5f70e833ccb2f [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.dsl.entity.xtext.scope;
import java.util.List;
import org.eclipse.xtext.naming.IQualifiedNameConverter;
import org.eclipse.xtext.scoping.impl.ImportNormalizer;
import org.eclipse.osbp.dsl.common.xtext.scope.CommonImportedNamespaceAwareLocalScopeProvider;
import com.google.inject.Inject;
public class EntityImportedNamespaceAwareLocalScopeProvider extends
CommonImportedNamespaceAwareLocalScopeProvider {
@Inject
private IQualifiedNameConverter qualifiedNameConverter;
@Override
protected List<ImportNormalizer> getImplicitImports(boolean ignoreCase) {
List<ImportNormalizer> temp = super.getImplicitImports(ignoreCase);
temp.add(new ImportNormalizer(qualifiedNameConverter
.toQualifiedName("java.beans"), true, ignoreCase));
temp.add(new ImportNormalizer(qualifiedNameConverter
.toQualifiedName("org.eclipse.osbp.dsl.common.datatypes"), true,
ignoreCase));
return temp;
}
}