Package entagged.listing.gui

Examples of entagged.listing.gui.ListingProgressDialog


        "arbitrary");
    Object currentParent = treemodel.getRoot();
    /*
     * Create gui
     */
    final ListingProgressDialog lpd = new ListingProgressDialog(parentFrame);
    lpd.setModal(true);
    lpd.setLocationRelativeTo(null);
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        // Blocks entagged parent frame if given.
        lpd.setVisible(true);
      }

    });
    try {
      handleChildren(lpd, treemodel, currentParent);
      lpd.appendMessage(LangageManager.getProperty("tagrename.prune"));
      pruneStruct.prune();
    } catch (RuntimeException re) {
      lpd.dispose();
      throw re;
    } finally {
      lpd.processingFinished();
      lpd.dispose();
    }
  }
View Full Code Here


    }
    try {
      ListingProcessor lpc = new ListingProcessor(new FileProcessor(
          this.processingResult, renameConfig), renameConfig
          .getSelection());
      ListingProgressDialog lpd = new ListingProgressDialog(
          getParentFrame());
      lpd.setLocationRelativeTo(null);
      lpc.setListingProgressListener(lpd);
      lpd.setModal(false);
      lpd.setVisible(true);
      lpc.start().join();
      lpd.processingFinished();
      lpd.dispose();
      // If an exception has occured during processing
      if (lpc.getLastSeriouseException() != null) {
        // Throw it, this blocks exception catch diplays the error.
        throw lpc.getLastSeriouseException();
      }
      // If not aborted, display results
      if (!lpd.abort()) {
        /*
         * Now some statistics must be refreshed if the directory pattern
         * contains a bitrate.
         * If the bitrate pattern is replaced by its value it may
         * be possible a conflict arises.
View Full Code Here

     *
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == this.execute) {
            final ListingProgressDialog pd = new ListingProgressDialog(
                    mainFrame);
            this.enumerator.getSettings().setProgressListener(pd);
            new Thread(new Runnable() {
                public void run() {
                    if (!execute()) {
                        pd.dispose();
                    }
                }
            }, "Track enum").start();
            pd.setModal(true);
            pd.setVisible(true);
            mainFrame.refreshCurrentTableView();
        }
    }
View Full Code Here

     *
     * @see java.lang.Runnable#run()
     */
    public void run() {
        StatisticsCollector collector = new StatisticsCollector();
        final ListingProgressDialog lpd = new ListingProgressDialog();
    // Center dialog.
    lpd.setLocationRelativeTo(null);
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                lpd.setVisible(true);
            }
        });
        ListingProcessor processor = new ListingProcessor(collector, files);
        processor.setListingProgressListener(lpd);

        try {
            processor.start().join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        lpd.dispose();
        if (!lpd.abort()) {
            JDialog dialog = new JDialog(dialogParent, LangageManager
                    .getProperty("statistic.statistic"));
            JTabbedPane tab = new JTabbedPane();
            SummaryPanel panel = new SummaryPanel();
            panel.getValidFileCountLabel().setText(
View Full Code Here

TOP

Related Classes of entagged.listing.gui.ListingProgressDialog

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.