I'm afraid there's no such kind of code generation. How would you like it to be implemented? Plese share your thoughts here or as a feature request in our issue tracker.
I see this feature like this: 1. Type "dispatchEvent(new Event(Event.CHANGE));"; 2. Then press Alt+Enter and IDEA generates metatag "[Event(name="change", type="flash.events.Event")]". http://puu.sh/1f979 > http://puu.sh/1f96P
And another situation: 1. Create listener for some internal dispatcher (to redispatch the event) like this: "innerElement.addEventListener(Event.COMPLETE, this.dispatchEvent")"; So we want to generate it automatically. 2. Generate metatag as in the previous situation.
I'm afraid there's no such kind of code generation. How would you like it to be implemented? Plese share your thoughts here or as a feature request in our issue tracker.
Though now you already have code completion for words 'Event', 'name', 'type' and for event class qualified name.
I see this feature like this:
1. Type "dispatchEvent(new Event(Event.CHANGE));";
2. Then press Alt+Enter and IDEA generates metatag "[Event(name="change", type="flash.events.Event")]".
http://puu.sh/1f979 > http://puu.sh/1f96P
And another situation:
1. Create listener for some internal dispatcher (to redispatch the event) like this: "innerElement.addEventListener(Event.COMPLETE, this.dispatchEvent")";
So we want to generate it automatically.
2. Generate metatag as in the previous situation.
Looks reasonable. Anyway YouTrack request would guarantee that your ideas are not forgotten.
Thank you!