Package org.eclipse.jdt.core.search

Examples of org.eclipse.jdt.core.search.IJavaSearchScope


     
      try {
        IType superType = project.findType("javafx.scene.Parent");
       
        if( superType != null ) {
          IJavaSearchScope searchScope = SearchEngine.createStrictHierarchyScope(project, superType, true, false, null);   
         
          SelectionDialog dialog = JavaUI.createTypeDialog(getShell(), PlatformUI.getWorkbench().getProgressService(), searchScope, IJavaElementSearchConstants.CONSIDER_CLASSES, false, "");
          dialog.setTitle("Find Preloader");
          if (dialog.open() == Window.OK) {
            IType type = (IType) dialog.getResult()[0];
View Full Code Here


    IJavaElement[] elements = new IJavaElement[] { project };

    int constraints = IJavaSearchScope.SOURCES;
    constraints |= IJavaSearchScope.APPLICATION_LIBRARIES;

    IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope( elements, constraints );
    BusyIndicatorRunnableContext context = new BusyIndicatorRunnableContext();

    MainTypeSelectionDialog dialog = new MainTypeSelectionDialog( parent, context, searchScope, 0 );
    dialog.setTitle( "Find class" );
    dialog.setMessage( "Find the class used to launch the application" );
View Full Code Here

    }

    try {
      IType superType = project.findType( "javafx.application.Preloader" );

      IJavaSearchScope searchScope = SearchEngine.createStrictHierarchyScope( project, superType, true, false, null );

      SelectionDialog dialog = JavaUI.createTypeDialog( parent, PlatformUI.getWorkbench().getProgressService(), searchScope,
          IJavaElementSearchConstants.CONSIDER_CLASSES, false, "" );
      dialog.setTitle( "Find Preloader" );
      if ( dialog.open() == Window.OK ) {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.search.IJavaSearchScope

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.