Package org.cishell.app.service.filesaver

Examples of org.cishell.app.service.filesaver.FileSaveException


      throws FileSaveException {
    final Converter[] converters =
      this.conversionManager.findConverters(outDatum, targetMimeType);

      if (converters.length == 0) {
        throw new FileSaveException("No appropriate converters.");
      } else if (converters.length == 1) {
      // Only one possible choice in how to save data.  Do it.
      Converter onlyConverter = converters[0];

      return onlyConverter;
    } else {
      final Shell parentShell = PlatformUI.getWorkbench().getWorkbenchWindows()[0].getShell();

        if (parentShell.isDisposed()) {
          throw new FileSaveException(
              "Can't create dialog window -- graphical environment not available.");
        }
   
        return showDataFormatChooser(outDatum, converters, parentShell);
    }
View Full Code Here


        }
      });
 
      return chosenConverter[0];
    } catch (Exception e) {
      throw new FileSaveException(e.getMessage(), e);
    }
  }
View Full Code Here

        }
      });

      return resultFile[0];
    } catch (Throwable e) {
      throw new FileSaveException(e.getMessage(), e);
    }
  }
View Full Code Here

        sourceFile.getAbsolutePath() +
        "\" to the file \"" +
        targetFile.getAbsolutePath() +
        "\".";
     
      throw new FileSaveException(exceptionMessage, ioException); // TODO Just throw IOException
    }
  }
View Full Code Here

TOP

Related Classes of org.cishell.app.service.filesaver.FileSaveException

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.