ActionScript Plugin Help

I've written a Plugin for refactoring Java files, and I'd like to expand my plugin to handle ActionScript files as well.

In my Java Plugin I use JavaSpecific Classes such as:
PsiJavaFile
JavaPsiFacade.getInstance(project).findClasses(
JavaChangeSignatureHandler (override this)
JavaChangeSignatureDialog (override this)

And probably some others I'm forgetting to mention.

My question is, what can I use in place of these to handle ActionScript (.as) files? I've searched but have come up empty handed.

Thanks!

10 comments

Unfortunately ActionScript support is not open source.

0

Oh, that's too bad. So this is not possible at all, or do you just need a certain license to use it?

And I guess if it's not possible the only way would be to parse ActionScript myself?

0

I'm afraid it is not possible at all.

0

Ok, thank you for the information. Is the same true for JavaScript support?

0

It is interesting that the JS plugin is closed sourced; Am I right in saying that these plugins used to be open source however?

For instance a JS plugin example was previously available http://www.jetbrains.com/idea/pluginsamples/5.0/javascript/com/intellij/lang/javascript/JSElementTypes.java.html and the JS API was previously mentioned in the language development documentation, and then subsequently deleted?

Presumably this means that the TypeScript support was not implemented via extensions, but developed within the context of the existing JS plugin? Otherwise Zack would be able to make use of those extension points in someway perhaps?

0

Initial JavaScript support was open-sourced, it was 9 years ago.
You are right, TypeScript support is strongly tied to JavaScript.

0

Ah, that's interesting! Thanks for the clarification :)
it's definitely a shame that a bunch of the plugins have become closed source, but that's understandable.

0

Note that some of these plugins (including Javascript) do have OpenAPIs, so you could theoretically work with them to some degree. See the openapi jar inside the plugin directory in your IntelliJ install. However with no documentation or examples it's not very realistic IMO.

0

Yep, without docs and source code openapi jars are not really useful.

0

Please sign in to leave a comment.