Package com.intellij.ide.util

Examples of com.intellij.ide.util.TreeJavaClassChooserDialog


    Project project = _editorContext.getProject();
    GlobalSearchScope searchScope = GlobalSearchScope.moduleWithDependenciesScope(_editorContext.getModule());
    // show a class selector for descendants of BundleActivator
    PsiClass psiClass = JavaPsiFacade.getInstance(project)
      .findClass("org.osgi.framework.BundleActivator", GlobalSearchScope.allScope(project));
    TreeJavaClassChooserDialog dialog =
      new TreeJavaClassChooserDialog(OsmorcBundle.message("facet.editor.select.bundle.activator"),
                                     project, searchScope, new TreeJavaClassChooserDialog.InheritanceJavaClassFilterImpl(
        psiClass, false, true,
        null), null);
    dialog.showDialog();
    PsiClass clazz = dialog.getSelected();
    if (clazz != null) {
      _bundleActivator.setText(clazz.getQualifiedName());
    }
  }
View Full Code Here

TOP

Related Classes of com.intellij.ide.util.TreeJavaClassChooserDialog

Copyright © 2018 www.massapicom. 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.