Package net.sf.jpluck.conversion

Examples of net.sf.jpluck.conversion.Conversion


            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) {
            }

            conversionFrame = new ConversionFrame(conversion, "JPluck");
            WindowUtil.center(conversionFrame);
            conversionFrame.show();

            ConduitListener conduitListener = new ConduitListener(conversion);
            conversion.addConversionListener(conduitListener);
            ConduitConversation conversation = new ConduitConversation();
            conversation.startListening(conduitListener);

            Thread thread = new Thread(conversion);
            thread.start();
View Full Code Here


        System.out.println("No documents are due.");
        System.exit(0);
      }

      Document[] documents = (Document[]) documentList.toArray(new Document[documentList.size()]);
      Conversion conversion = new Conversion(documents, destination);
      conversion.run();
     
      System.exit(0);
    } catch (FileNotFoundException e) {
      System.err.println("ERROR: " + e.getClass().getName() + ": " + e.getMessage());
      System.exit(ExitCodes.ERROR_FILE_NOT_FOUND);
View Full Code Here

  public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel("com.jgoodies.plaf.plastic.PlasticXPLookAndFeel");
    AutoUpdateFrame dlg = new AutoUpdateFrame();
    JXL jxl = new JXL(new File(args[0]));
    Conversion conversion = new Conversion(jxl.getDocuments());
    conversion.addConversionListener(dlg);
    WindowUtil.center(dlg);
    dlg.show();
    dlg.runConversion(conversion);

    //System.exit(0);
View Full Code Here

        if (ClientConfiguration.getDefault().isAutoUpdateEnabled()) {
            JPluckX.getInstance().stopAutoUpdate();
        }

        Conversion conversion = new Conversion(documents);
        ConversionDialog conversionDialog = new ConversionDialog(parent, conversion);
        conversionDialog.setLocationRelativeTo(parent);
        ConversionPane conversionPane = conversionDialog.getConversionPane();
        conversion.addConversionListener(conversionDialog);
        conversion.addConversionListener(conversionPane);
        conversion.addSpiderListener(conversionPane);
        conversion.addRecordListener(conversionPane);
        conversion.setWindow(conversionDialog);
        conversionDialog.show();
        conversionDialog.dispose();
        conversion.removeRecordListener(conversionPane);
        conversion.removeSpiderListener(conversionPane);
        conversion.removeConversionListener(conversionPane);
        conversion.removeConversionListener(conversionDialog);

        if (ClientConfiguration.getDefault().isAutoUpdateEnabled()) {
            JPluckX.getInstance().startAutoUpdate();
        }
    }
View Full Code Here

                    // TODO: Log exceptions
                }
            }
            if (documentList.size() > 0) {
                Document[] documents = (Document[]) documentList.toArray(new Document[documentList.size()]);
                autoUpdateConversion = new Conversion(documents);
                autoUpdateFrame.runConversion(autoUpdateConversion);
                autoUpdateConversion = null;
            }
        }
View Full Code Here

      for (Iterator it = fileList.iterator(); it.hasNext();) {
        File file = (File) it.next();
        try {
          JXL jxl = new JXL(file);
          Document[] documents = jxl.getDocumentsToConvert();
          conversion = new Conversion(documents);
          conversion.addConversionListener(new ConversionAdapter() {
              public void conversionFinished() {
                conversion = null;
              }
            });
View Full Code Here

TOP

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

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.