Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.SelectionDialog.open()


      SelectionDialog dialog = JavaUI.createTypeDialog(getConfigEditor().getSite().getShell(), PlatformUI
          .getWorkbench().getProgressService(), null, scope, false, filter);
      dialog.setTitle(Messages.getString("AbstractNamespaceDetailsPart.TYPE_SELECTION_DIALOG_TITLE")); //$NON-NLS-1$

      if (dialog.open() == Window.OK) {
        IType type = (IType) dialog.getResult()[0];
        String newValue = type.getFullyQualifiedName('$');
        editAttribute(attr, newValue);
      }
    }
View Full Code Here


          SelectionDialog dialog = JavaUI.createTypeDialog(getShell(), PlatformUI.getWorkbench()
              .getProgressService(), null, scope, false, filter);
          dialog.setTitle(Messages.getString("NewBeanWizardPage.SELECT_TYPE_DIALOG_TITLE")); //$NON-NLS-1$

          if (dialog.open() == Window.OK) {
            IType type = (IType) dialog.getResult()[0];
            String newValue = type.getFullyQualifiedName('$');
            classText.setText(newValue);
            updateAttribute(BeansSchemaConstants.ATTR_CLASS, newValue);
          }
View Full Code Here

    }
  }

  private void handleJavaConfigButtonPressed() {
    SelectionDialog dialog = createFilteredTypesDialog();
    if (dialog != null && dialog.open() == Window.OK) {
      Object[] selection = dialog.getResult();
      if (selection != null && selection.length > 0) {
        for (Object element : selection) {
          String config = null;
          if (element instanceof IType) {
View Full Code Here

        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];
            return type;
         
        }
      } catch (JavaModelException e) {
View Full Code Here

        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];
            return type;
         
        }
      } catch (JavaModelException e) {
View Full Code Here

      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 ) {
        IType type = (IType) dialog.getResult()[0];
        return type.getFullyQualifiedName( '$' );
      }
    }
    catch ( JavaModelException e ) {
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.