[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [e4-dev] Parameter Injection
|
Hi Kai,
I have no answer to your direct question but everything part of the
context is subject to get injected using @in.
IIRC a new value is always injected when the value in the context
changes but my informations are a bit out dated.
Tom
Toedter, Kai schrieb:
> All,
>
> the current cvs breaks both Boris' photo demo and my contacts demo. Before I start filing bugs I would like to understand the strategy behind parameter injection.
>
> Simple Example: Until yesterday, I could specify a Handler (that was bound to a command using the workbench model) like this:
>
> public class ExitHandler {
> public void execute(IWorkbench workbench) {
> workbench.close();
> }
> }
>
> Today, I get the exception:
> java.lang.RuntimeException: could not find satisfiable method execute in class class org.eclipse.e4.demo.contacts.handlers.ExitHandler
>
> The question is: Which interfaces are candidates to be injected today and in the future?
> Another question: When are we using explicit annotations like @in and when is the injection done automatically?
>
> Of course my dynamic theme switcher does not work anymore since it also uses the above signature...
>
> Best regards,
>
> Kai
> ---
>
> Kai Tödter
>
> Siemens AG
> Corporate Technology
> Architecture
> CT SE 2
> Otto-Hahn-Ring 6
> 81739 Munich, Germany
> Phone: +49 89 636-41064
> Fax: +49 89 636-45450
> mailto: kai.toedter@xxxxxxxxxxx
> Internet: www.siemens.com/corporate-technology
>
> Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard Cromme; Managing Board: Peter Loescher, Chairman, President and Chief Executive Officer; Heinrich Hiesinger, Joe Kaeser, Rudi Lamprecht, Eduardo Montes, Juergen Radomski, Erich R. Reinhardt, Hermann Requardt, Uriel J. Sharef, Peter Y. Solmssen, Klaus Wucherer; Registered offices: Berlin and Munich; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322
>
>
> _______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/e4-dev