Examples of SelectTypesDialog


Examples of org.apache.uima.ruta.utils.ui.SelectTypesDialog

      Display display = Display.getDefault();
      Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
      shell.setText("Included types");
     
      SelectTypesDialog dialog = new SelectTypesDialog(shell, types, composite.getSelectedTypes());
      shell.open();
      while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
          display.sleep();
      }
      List<String> selectedTypes = dialog.getSelectedTypes();
      composite.setSelectedTypes(selectedTypes);
     
    } catch (InvalidXMLException e) {
      RutaAddonsPlugin.error(e);
      return Status.CANCEL_STATUS;
View Full Code Here

Examples of org.apache.uima.ruta.utils.ui.SelectTypesDialog

    }

    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select excluded types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getExcludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
    activePage.setExcludedTypes(selectedTypes);
    return Status.OK_STATUS;
  }
View Full Code Here

Examples of org.apache.uima.ruta.utils.ui.SelectTypesDialog

      RutaAddonsPlugin.error(e);
    }
    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select included types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getIncludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
    activePage.setIncludedTypes(selectedTypes);
    return Status.OK_STATUS;
  }
View Full Code Here

Examples of org.apache.uima.ruta.utils.ui.SelectTypesDialog

      RutaAddonsPlugin.error(e);
    }
    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select included types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getIncludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
    activePage.setIncludedTypes(selectedTypes);
    return Status.OK_STATUS;
  }
View Full Code Here

Examples of org.apache.uima.ruta.utils.ui.SelectTypesDialog

    }

    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select excluded types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getExcludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
    activePage.setExcludedTypes(selectedTypes);
    return Status.OK_STATUS;
  }
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.