How to find MXML/ActionScript classes in plugin

Hello
I'm developing simple plugin, which uses line markers and jumps to Flex classes.
I have problem how to find class element for action script/flex classes, than i can set as targets in line marker.

Unfortunatelly PsiShortNamesCache does not contain flex/action script classes.
Is there any way to find flex/action script classes (is should be, intellij idea ide finds them in Navigate to class (Ctrl+N) ).

Regards
Michal Sztandera

1 comment
Comment actions Permalink

Unfortunately Flex related API is not open source and you'll have to ask us each time when you need to find any Flex specific class/method name. First of all you have to add all JAR files from [IDE installation]/plugins/JavaScriptLanguage/lib/ and from [IDE installation]/plugins/flex/lib/ to the Plugin SDK classpath.
Your method is:
com.intellij.javascript.flex.resolve.ActionScriptClassResolver#findClassByQNameStatic("foo.bar.SomeClassFQN", contextPsiElement)

contextPsiElement is used to calculate search scope, so usually it should be from the same module where you search for class or from dependent module.

0

Please sign in to leave a comment.