Getting Psi objects without access to DataContext

Hi all,

I'm contemplating writing a Jython script using the JythonPlugin to
perform mass modifications of code (i18n migration). I want to write as
a Jython script because it's going to be a once-off migration and
writing a full-blown reuseable OpenAPI plugin in Java seems like too
much effort.

However, I'm having a hard time finding a way to access the
PsiFile/whatever for a file WITHOUT access to the DataContext object
that one receives from an action event. Is there another way to access
the Psi objects?

Thanks,
Gordon

--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

3 comments


Hope this helps.

Jacques

"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message news:b433cr$5or$1@is.intellij.net...

Hi all,

I'm contemplating writing a Jython script using the JythonPlugin to
perform mass modifications of code (i18n migration). I want to write as
a Jython script because it's going to be a once-off migration and
writing a full-blown reuseable OpenAPI plugin in Java seems like too
much effort.

However, I'm having a hard time finding a way to access the
PsiFile/whatever for a file WITHOUT access to the DataContext object
that one receives from an action event. Is there another way to access
the Psi objects?

Thanks,
Gordon

--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

0

Jacques Morel wrote:

]]>

Hope this helps.


Dude, you rock! It works 100%.

Now if only I could find a Javadoc reference for the Psi classes...

Ciao,
Gordon

--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

0

Yep, I know.
However I'd rather have to figure out the hard way or ask my fellow comrade
in crime ;) than not have it at all.
I wish we had access to more IDEA functionality like this...

If you have a question just drop a line...

Jacques
"Gordon Tyler" <gordon.tyler@sitraka.com> wrote in message
news:b45cp3$rbf$1@is.intellij.net...

Jacques Morel wrote:

>

<snip>

>

Hope this helps.

>

Dude, you rock! It works 100%.

>

Now if only I could find a Javadoc reference for the Psi classes...

>

Ciao,
Gordon

>

--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

>


0

Please sign in to leave a comment.