Package com.intellij.psi

Examples of com.intellij.psi.PsiManager.findClass()


    final String lineString = fileAndLine.substring(colonIndex + 1);
    try{
      final int lineNumber = Integer.parseInt(lineString);
      final PsiManager manager = PsiManager.getInstance(myProject);
      PsiClass aClass = manager.findClass(className, GlobalSearchScope.allScope(myProject));
      if (aClass == null) return null;
      final PsiFile file = (PsiFile) aClass.getContainingFile().getNavigationElement();
      if (file == null) return null;

      /*
 
View Full Code Here


    final PsiManager psiManager = PsiManager.getInstance(myProject);
    String classQName = myClassName.getText();
    if ("".equals(classQName)) {
      return null;
    }
    return psiManager.findClass(classQName, GlobalSearchScope.allScope(myProject));
  }

  public JComponent getPreferredFocusedComponent() {
    return myClassName.getTextField();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.