com.intellij.psi.impl.ElementBase missing from openapi.jar?

I'm trying to create a custom language and while trying to implement the psi elements, the easiest thing seems to extend the PsiElementBase. The problem is that it extends from ElementBase which cannot be found from the openapi.jar. Can I find it from some other place or am I missing something?

I'm using IDEA 5245 and idea5245-dev.zip

Thanks,
tuomas

0
3 comments

see http://www.jetbrains.com/idea/documentation/idea_5.0.html, Section "Implementing a Parser and PSI":

+
The base classes for the PSI implementation (PsiFileBase, the base implementation of PsiFile, and ASTWrapperPsiElement, the base implementation of PsiElement) are provided by IDEA. However, these classes are coupled to the internal implementation of IDEA and are located in idea.jar. Because of this, every custom language plugin needs to include idea.jar in its classpath. (If the plugin is built as a DevKit project, idea.jar must be added to the list of JARs in the classpath of the IDEA SDK, and not added as a separate module or project library. Otherwise, the plugin will not work correctly.)

+

0

Hello Tuomas,

TH> I'm trying to create a custom language and while trying to implement
TH> the psi elements, the easiest thing seems to extend the
TH> PsiElementBase. The problem is that it extends from ElementBase
TH> which cannot be found from the openapi.jar. Can I find it from some
TH> other place or am I missing something?

It's in idea.jar. Currently all custom language plugins need to include idea.jar
in the IDEA JDK classpath.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Ok,

thanks for the answer.

0

Please sign in to leave a comment.