| /** |
| * |
| * Copyright (c) 2011, 2016 - 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: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * |
| * This copyright notice shows up in the generated Java code |
| * |
| */ |
| |
| package org.eclipse.osbp.xtext.topologydsl.scoping; |
| |
| import org.eclipse.emf.ecore.EObject |
| import org.eclipse.emf.ecore.EReference |
| import org.eclipse.xtext.scoping.IScope |
| import org.eclipse.xtext.xbase.annotations.typesystem.XbaseWithAnnotationsBatchScopeProvider |
| |
| public class TopologyDslScopeProvider extends XbaseWithAnnotationsBatchScopeProvider { |
| // @Inject extension DatamartDSLJvmModelInferrer datamartInferrer |
| // @Inject extension EventBrokerDatamartUtils |
| |
| @Override |
| override IScope getScope(EObject context, EReference reference) { |
| // if (reference == DatamartDSLPackage.Literals.CC_EVENT_BROKER_DATA_MART__DATAMART_DEF) { |
| // return getScope_CCTopology_Datamart_DatamartDef(context as CCEventBrokerDataMart) |
| // } else { |
| // var scope = super.getScope(context, reference) |
| // var scopeResults = scope.allElements |
| // var String nix |
| // for (IEObjectDescription objDesc:scopeResults){ |
| // var name = objDesc.name |
| // var keys = objDesc.userDataKeys |
| // nix =name+keys.toString |
| // } |
| return super.getScope(context, reference) |
| // } |
| } |
| |
| |
| } |