/**
   * Queries the user for the resource types that are to be exported and returns these types as an
   * array.
   *
   * @return the resource types selected for export (element type: <code>String</code>), or <code>
   *     null</code> if the user canceled the selection
   */
  protected Object[] queryResourceTypesToExport() {

    TypeFilteringDialog dialog =
        new TypeFilteringDialog(getContainer().getShell(), getTypesToExport());

    dialog.open();

    return dialog.getResult();
  }
 protected Object[] queryFileTypes() {
   TypeFilteringDialog dialog = new TypeFilteringDialog(getShell(), fAcceptedFileTypes);
   dialog.open();
   return dialog.getResult();
 }