Package net.sf.jpluck.conversion

Examples of net.sf.jpluck.conversion.Destination


    private void initValues() {
        ClientConfiguration conf = ClientConfiguration.getDefault();
        compressionCombo.setSelectedIndex(conf.getCompression());
        multiImageCheck.setSelected(conf.isUseMultiImage());

        Destination dest = conf.getDestination();
        if (dest != null) {
            hotsyncRadio.setSelected(dest.isHotsync());
            directoryRadio.setSelected(!dest.isHotsync());
            dest = conf.getHotSyncDestination();
            if (dest != null) {
                userCombo.setSelectedItem(dest.getUser());
                memoryCardCheck.setSelected(dest.isMemoryCard());
            }
            dest = conf.getDirectoryDestination();
            if (dest != null) {
                directoryText.setText(dest.getDirectory().getAbsolutePath());
            }
        }

        String backupDirectory = conf.getBackupDirectory();
        if (backupDirectory != null) {
View Full Code Here


            Document[] documents = (Document[]) documentList.toArray(new Document[documentList.size()]);
            if (documents.length == 0) {
                System.exit(ExitCodes.OK);
            }

            Destination destination = Destination.createForDirectory(new File(cl.getOptionValue("destination")));
            Conversion conversion = new Conversion(documents, destination);
            try {
                UIManager.setLookAndFeel(conf.getLookAndFeel());
                conf.applyPlasticTheme();
            } catch (Exception e) {
View Full Code Here

      logUtil.setUseParentHandler(false);

      String[] args = cl.getArgs();
      JXL jxl = null;

      Destination destination = ClientConfiguration.getDefault().getDestination();
      if (cl.hasOption("destination")) {
        File dir = new File(cl.getOptionValue("destination"));
        if (!dir.exists()) {
          System.err.println("ERROR: destination directory " + dir.getAbsolutePath() + " \"does not exist\".");
          System.exit(-1);
View Full Code Here

    public Preferences getPreferences() {
        return prefs;
    }

    public boolean checkDestination() {
        Destination destination = ClientConfiguration.getDefault().getDestination();
        if (destination == null) {
            int result = JOptionPane.showConfirmDialog(activeListFrame,
                                                       "You have not yet configured a destination for the Plucker documents.\n" +
                                                       "The destination must be configured before documents can be converted.\n\n" +
                                                       "Do you want to configure the destination now?",
View Full Code Here

TOP

Related Classes of net.sf.jpluck.conversion.Destination

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.