This Question is Answered

2 "helpful" answers available (2 pts)
4 Replies Last post: Jun 25, 2013 9:54 PM by Vaughan Rouesnel  
Rasheed Abdul-Aziz Newbie 3 posts since
Mar 26, 2010
Currently Being Moderated

Mar 26, 2010 1:15 AM

JSClass and other Psi-likes.

Hi guys.

I'm writing a plugin for Robotlegs users allowing them to navigate to related RL classes.

 

Because this is actionscript code, the PsiFile for my Action is filled with elements like: JSClass, JSReferenceList, JSReferenceExpression etc.

 

With the openapi, i don't have access to these classes, but more suprising, JSClass instanceof PsiClass is false..

All the nice helper tools like psiClass.getInterfaces and the PsiTreeUtil seem to fail me at every turn.

 

Am I doing something fundamentally wrong, or is what I'm trying to do outside the scope of the devkit (because JS-ECMA support is a part of Ultimate?)

 

Any help would be appreciated.

Dmitry Jemerov Master 12,522 posts since
Aug 19, 2002
Currently Being Moderated
Mar 26, 2010 1:05 PM in response to: Rasheed Abdul-Aziz
Re: JSClass and other Psi-likes.

Hello Rasheed,

 

The JavaScript PSI is indeed completely distinct from the Java PSI and does

not implement the same interfaces. You can add the JavaScript plugin to the

dependencies of your plugin and write code that works with the JavaScript

PSI, but at the moment we don't provide any OpenAPI interfaces or documentation

for the JavaScript PSI.

 

Hi guys. I'm writing a plugin for http://www.robotlegs.org/ users

allowing them to navigate to related RL classes.

 

Because this is actionscript code, the PsiFile for my Action is filled

with elements like: JSClass, JSReferenceList, JSReferenceExpression

etc.

 

With the openapi, i don't have access to these classes, but more

suprising, JSClass instanceof PsiClass is false.. All the nice helper

tools like psiClass.getInterfaces and the PsiTreeUtil seem to fail me

at every turn.

 

Am I doing something fundamentally wrong, or is what I'm trying to do

outside the scope of the devkit (because JS-ECMA support is a part of

Ultimate?)

 

Any help would be appreciated.

 

---

Original message URL:

http://www.jetbrains.net/devnet/message/5259515#5259515

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

 

 

 

Vaughan Rouesnel Newbie 4 posts since
Jun 25, 2013
Currently Being Moderated
Jun 25, 2013 9:54 PM in response to: Rasheed Abdul-Aziz
Re: JSClass and other Psi-likes.

For anyone passing through - for details on working with the JS psi tree see here:

 

http://devnet.jetbrains.com/message/5490721#5490721

More Like This

  • Retrieving data ...