Editor feature to manage a class' interfaces?
On my personal project, I'm starting to use tons of interfaces and I got to thinking how nice it'd be to know which of my class' members serve which of its interfaces. For instance, my class might implement 5 different interfaces, 开发者_运维问答but I only want to see the members that play a role in 1 of those.
I am not an Actionscript Expert and may tell complete nonsense, but from my Java experience most often gui classes implement hundreds of Listeners and Callbacks and many books teach to implement all these interfaces in your gui class. I prefer to implement these aspects in inner classes, so I can immediately see the methods called by that listener and methods do not get mixed up. Sorry that I cannot provide specific ActionScipt samples.
Flash Builder 4 has these purplish triangles in the left margin that will highlight interface implementations for you, but not filtered on any specific interface. You will get a tooltip on hover showing you the interface. Probably not good enough for your needs though.
Perhaps you might want to take a look at Code Canvas.
精彩评论