
org.jnario.spec.scoping.SpecBatchScopeProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jnario.standalone Show documentation
Show all versions of org.jnario.standalone Show documentation
The required libraries to execute Jnario specifications without Eclipse.
The newest version!
package org.jnario.spec.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;
import org.jnario.spec.spec.SpecPackage;
import com.google.inject.Inject;
public class SpecBatchScopeProvider extends XbaseWithAnnotationsBatchScopeProvider {
@Inject SpecScopeProvider delegate;
@Override
public IScope getScope(EObject context, EReference reference) {
if(reference == SpecPackage.Literals.EXAMPLE_GROUP__TARGET_OPERATION){
return delegate.getScope(context, reference);
}
return super.getScope(context, reference);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy