Package com.intellij.ide.util

Examples of com.intellij.ide.util.TreeClassChooser$ClassFilter


        extendClassEditor = new ReferenceEditorComboWithBrowseButton(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                PsiClass psiClass = getDefaultClass(project);

                TreeClassChooser chooser = TreeClassChooserFactory.getInstance(project).createInheritanceClassChooser(
                        "Choose Class to extend", WicketSearchScope.classInModuleWithDependenciesAndLibraries(module), psiClass, null);

                chooser.showDialog();
                PsiClass aClass = chooser.getSelected();
                if (aClass != null) {
                    extendClassEditor.setText(aClass.getQualifiedName());
                }
            }
        }, "", project, true, getStoreKey(RECENT_EXTENDCLASS_KEY));
View Full Code Here


    panel.add(box, BorderLayout.CENTER);

    myClassName.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        PsiClass currentClass = getSelectedClass();
        TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createNoInnerClassesScopeChooser(
          UIBundle.message("class.filter.editor.choose.class.title"), GlobalSearchScope.allScope(myProject), null, null);
        if (currentClass != null) {
          PsiFile containingFile = currentClass.getContainingFile();
          if (containingFile != null) {
            PsiDirectory containingDirectory = containingFile.getContainingDirectory();
            if (containingDirectory != null) {
              chooser.selectDirectory(containingDirectory);
            }
          }
        }
        chooser.showDialog();
        PsiClass selectedClass = chooser.getSelectedClass();
        if (selectedClass != null) {
          myClassName.setText(selectedClass.getQualifiedName());
        }
      }
    });
View Full Code Here

      }
    }
  }

  protected void addClassFilter() {
    TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createNoInnerClassesScopeChooser(
      UIBundle.message("class.filter.editor.choose.class.title"), GlobalSearchScope.allScope(myProject), myChooserFilter, null);
    chooser.showDialog();
    PsiClass selectedClass = chooser.getSelectedClass();
    if (selectedClass != null) {
      ClassFilter filter = createFilter(getJvmClassName(selectedClass));
      if(filter != null){
        myTableModel.addRow(filter);
        int row = myTableModel.getRowCount() - 1;
View Full Code Here

    TestPluginScanner scanner = new TestPluginScanner( pluginInclusionPattern, pluginExclusionPattern, filter );
    return scanner.findTestBundles();
  }

  public Collection<Class<?>> findTestClasses(Bundle bundle) {
    ClassFilter filter = new AndClassFilter( new IsJUnit4TestFilter(), new NotClassFilter( new IsSWTBotTestFilter(
        bundle ) ) );
    TestClassScanner scanner = new TestClassScanner( bundle, classInclusionPattern, classExclusionPattern, filter );
    return scanner.findTestClasses();
  }
View Full Code Here

    TestClassScanner scanner = new TestClassScanner( bundle, classInclusionPattern, classExclusionPattern, filter );
    return scanner.findTestClasses();
  }

  public Collection<Class<?>> findNonUIThreadTestClasses(Bundle bundle) {
    ClassFilter filter = new IsSWTBotTestFilter( bundle );
    TestClassScanner scanner = new TestClassScanner( bundle, classInclusionPattern, classExclusionPattern, filter );
    return scanner.findTestClasses();
  }
View Full Code Here

TOP

Related Classes of com.intellij.ide.util.TreeClassChooser$ClassFilter

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.