|Re: Configuring Scope Provider Error Handler [message #759810 is a reply to message #759778]
||Wed, 30 November 2011 07:43
| Sebastian Zarnekow
Registered: July 2009
did you try to bind the error handler as a class instead of the type?
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 30.11.11 01:45, schrieb Mirko Raner:
> Hi all,
> we're trying to debug some tricky scope provider issues and we just
> noticed that a number of exceptions get silently swallowed because
> AbstractDeclarativeScopeProvider by default uses a NullErrorHandler. So,
> we're trying to bind to the following injection point in ADSP:
> private PolymorphicDispatcher.ErrorHandler<IScope> errorHandler = new
> Our configure method looks like this, but it's not working (it does get
> executed, though):
> toInstance(new PolymorphicDispatcher.DefaultErrorHandler<IScope>());
> When we break in the debugger in our custom scope provider it still
> shows a NullErrorHandler as the error handler, so apparently the binding
> didn't take. We configure the binding in the runtime module that goes
> with our scope provider, but maybe that's too late?
> Any idea what we're doing wrong here?
Powered by FUDForum
. Page generated in 0.02675 seconds