IntelliJ Community . PluginDevelopmentHowTo00003

 
PluginDevelopmentHowTo00003 

HOME INDEX SEARCH CHANGES GO  

PluginDevelopmentHowTo00003

Problem description

How to access a class associated source, and not the decompiled one?

Problem resolution

   PsiClass     psiClass        =   PsiManager.getInstance(i_project).findClass("java.lang.String");
   PsiClass     psiSourceClass  =   psiClass.getNavigationElement();  // <--- here
   PsiFile      psiFile         =   psiSourceClass.getContainingFile();
   VirtualFile  file            =   psiFile.getVirtualFile();



Related Topics: PluginDevelopmentHowTo, PluginDocumentation, ProjectPluginTemplate, OpenAPI, IntellijPluginDocumentation, IntellijPluginDocumentation, PluginDeployment, IdeasForPlugins

-- AlainRavet - 18 Jan 2005

PluginDevelopmentHowToForm
HowToQuestion: How to access the a class associated source, and not the decompiled one?
OpenAPI: PSI
HowToStatus?: choice-yes.gif

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.