Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335756

Summary: AbstractDeclarativeScopeProvider.NAMED_DELEGATE not used consistently
Product: [Modeling] TMF Reporter: yirco <netswengineer>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: sven.efftinge
Version: 1.0.1Flags: sven.efftinge: indigo+
Target Milestone: M5   
Hardware: All   
OS: All   
Whiteboard:

Description yirco CLA 2011-01-29 05:31:52 EST
Hello,

class org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider defines:

public final static String NAMED_DELEGATE = "org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegate";

But generated module e.g.
public abstract class AbstractMyDslRuntimeModule extends DefaultRuntimeModule {

uses a raw string

	// contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
	public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
		binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named("org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegate")).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
	}
Comment 1 Sven Efftinge CLA 2011-01-29 13:39:44 EST
Thanks. This has already been fixed in the current development stream.
Comment 2 yirco CLA 2011-01-30 02:04:35 EST
(In reply to comment #1)
> Thanks. This has already been fixed in the current development stream.

OK, no problem.
Comment 3 Karsten Thoms CLA 2017-09-19 17:53:24 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:04:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0