[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [e4-dev] Annotations vs Events and when should we extend them ?
|
As for code completion I think we can group them as constants of a central place like
@Blabla(ILifecycleEvents.Menu.AboutToShow) or
@Blabla(ILifecycleEvents.Window.AboutToClose)
rather than plain strings or key=value pairs.
I also see as an advantage that the framework behavior will change depending on what the annotated method will return (close the window or not, show the part or not etc.). I'm not sure how or if we can do this using only event dispatching.
Sopot
On Thu, Nov 8, 2012 at 1:50 PM, Wim Jongman
<wim.jongman@xxxxxxxxx> wrote:
Why not one annotation like @Menu for menu specific stuff
like
@Menu(aboutTohide=true) (or smth else that can be used with code completion)
or something similar that copies the wanted menu API. I don't think that each "method" should have its own annotation.
I would also prefer a specific @LIfecycle(xxx) annotation over @Invoke(xxx) so that it makes sense to developers.
Regards,
Wim
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev