Package org.jampa.gui.runnables

Examples of org.jampa.gui.runnables.TagUpdater


              ckModifyGenre.getSelection() ||
              ckModifyYear.getSelection() ||
              ckModifyComment.getSelection();
   
    if (isModified) {         
      TagUpdater tagUpdater = new TagUpdater(_itemList,
          ckModifyTrackNumber.getSelection(), teTrackNumber.getText(),
          ckModifyTitle.getSelection(), teTitle.getText(),
          ckModifyArtist.getSelection(), cbArtist.getText(),
          ckModifyAlbum.getSelection(), cbAlbum.getText(),
          ckModifyGenre.getSelection(), cbGenre.getText(),
          ckModifyYear.getSelection(), teYear.getText(),
          ckModifyComment.getSelection(), teComment.getText());
      ProgressMonitorDialog dialog = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
     
      try {
        dialog.run(true, true, tagUpdater);
      } catch (InvocationTargetException e) {
        Log.getInstance(MetaDataDialog.class).error(e.getMessage());
      } catch (InterruptedException e) {
        Log.getInstance(MetaDataDialog.class).error(e.getMessage());     
      }

      Controller.getInstance().getHSQLController().doCommitDatabase();

      if (tagUpdater.getProblemsList().size() > 0) {
        Log.getInstance(MetaDataDialog.class).warn("Unable to update some files tags: " + tagUpdater.getProblemsList().size()); //$NON-NLS-1$
        TagUpdateProblemDialog problemDialog = new TagUpdateProblemDialog(Display.getDefault().getActiveShell(),
                                tagUpdater.getProblemsList());
        problemDialog.open();
      }
     
      // Rebuild Library, and notify Library change.
      Controller.getInstance().notifyMetadataChange();
View Full Code Here

TOP

Related Classes of org.jampa.gui.runnables.TagUpdater

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.