private boolean isFromXbaseLibrary(final XAbstractFeatureCall it, final EvaluationContext context) { boolean _xblockexpression = false; { final JvmIdentifiableElement feature = this.getFeature(it, context); boolean _switchResult = false; boolean _matched = false; if (feature instanceof JvmMember) { _matched=true; JvmDeclaredType _declaringType = null; if (((JvmMember)feature)!=null) { _declaringType=((JvmMember)feature).getDeclaringType(); } String _packageName = null; if (_declaringType!=null) { _packageName=_declaringType.getPackageName(); } String _string = XImportSectionNamespaceScopeProvider.XBASE_LIB.toString(); _switchResult = Objects.equal(_packageName, _string); } if (!_matched) { _switchResult = false; } _xblockexpression = _switchResult; } return _xblockexpression; }
public void configureIScopeProviderDelegate(Binder binder) { binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class); }
/** {@inheritDoc} */ @Override public void configureIScopeProviderDelegate(final com.google.inject.Binder binder) { binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class); }
@Override public void configureIScopeProviderDelegate(final com.google.inject.Binder binder) { binder.bind(IScopeProvider.class).annotatedWith(Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class); }
public Class<? extends XImportSectionNamespaceScopeProvider> bindXImportSectionNamespaceScopeProvider() { return XRobotImportedNamespaceScopeProvider.class; }