Metadata generation

Hello!
How can I automatically generate metatags in AS3 class for Events?

[Event(name="captionClick", type="menu.events.MenuEvent")]

0

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.

0

Though now you already have code completion for words 'Event', 'name', 'type' and for event class qualified name.

0
Avatar
Permanently deleted user

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.

0

Looks reasonable. Anyway YouTrack request would guarantee that your ideas are not forgotten.

0
Avatar
Permanently deleted user

Thank you!

0

请先登录再写评论。