IU-90.94 - Flex - Custom metadata completion?

Hi,

we are developing a ActionScript/Flex framework were we use custom metadata. I was wondering if there is a way to get code completion and hinting on that custom metadata and its attributes.

I was thinking that perhaps there was some xsd file that we could update in the Flex plugin. Can anyone enlighten me on this?

If this is not possible, I'm sure this would be a great addition to the IDE.

regards,
Christophe

4 comments
Comment actions Permalink

Currently it is not possible, please file youtrack ticket

Christophe Herreman wrote:

Hi,

we are developing a ActionScript/Flex framework were we use custom metadata. I was wondering if there is a way to get code completion and hinting on that custom metadata and its attributes.

I was thinking that perhaps there was some xsd file that we could update in the Flex plugin. Can anyone enlighten me on this?

If this is not possible, I'm sure this would be a great addition to the IDE.

regards,
Christophe

---
Original message URL: http://www.jetbrains.net/devnet/message/5247546#5247546



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Can you give some examples?

-tt

0
Comment actions Permalink

Sure.

For instance, we have Autowired metadata that we can use to annotate properties in classes and MXML components.

[Autowired(required="false")]
public var myProperty:MyClass;

And we also have [Required] and [Component(lazyInit="true", scope="prototype|singleton")] for instance.

This nasty thing is that the compiler does not know of this metadata and hence there is no code completion available. You need to know the available options by hard or you need to consult the documentation.

I'm not sure how this could be best accomplished. Perhaps we could compile extra information into the framework SWC or provide an XSD that users can import into the IDEA settings for instance.

regards,
Christophe

0
Comment actions Permalink

I see, it's possible to retrieve such metadata through (ugly xml) API
describeType().

Perhaps initial support could consist of xml file with definitions
somewhere in ~/IntelliJIDEA90/config/plugins.

By default it would be populated with default Flex, FlexUnit, and other
metadata tags that IDEA recognizes.
That would also fix http://youtrack.jetbrains.net/issue/IDEA-24778

It would be possible to manually extend this xml file.

Later on some explicit UI could be provided, as well as intentions to
automatically add an unrecognized metadata tag to this configuration.

Comments/opinions?

-tt

0

Please sign in to leave a comment.