Package net.sf.jmp3renamer.util

Examples of net.sf.jmp3renamer.util.MyFile


        String regex = (String) tUserRegex.getEditor().getItem();
        List<DataSet> datasets = new LinkedList<DataSet>();
        List<MyFile> files = FileManager.getInstance().getFiles();

        for (int i = 0; i < files.size(); i++) {
            MyFile file = files.get(i);
            String oldname = file.getName();
            DataSet dataset = MagicCookieBaker.evaluateCookie(regex, oldname);
            if (dataset != null) {
                datasets.add(dataset);
            }
        }
View Full Code Here


        Main.getGUI().setCursor(new Cursor(Cursor.WAIT_CURSOR));
        List<DataSet> datasets = new LinkedList<DataSet>();
        List<MyFile> files = FileManager.getInstance().getFiles();
        int size = files.size();
        for(int i=0; i<files.size(); i++) {
            MyFile file = (MyFile)files.get(i);
            DataSet dataset = FileManager.getInstance().getMetaData(file);
            if(dataset != null) {
                dataset.setRegex(Main.getProperty("filename"));
                datasets.add(dataset);
            }
View Full Code Here

    if(FileTag.getProperty("analyzeNewFiles").equals("true")) {
      if(action == RowObserver.REMOVEALL) {
        DataManager.getInstance().setDatasets(new LinkedList<DataSet>());
      } else if(action == RowObserver.INSERT) {
        Main.getGUI().setCursor(new Cursor(Cursor.WAIT_CURSOR));
        MyFile file = (MyFile)o;
              DataSet dataset = FileManager.getInstance().getMetaData(file);
              if(dataset != null) {
                  dataset.setRegex(Main.getProperty("filename"));
                  DataManager.getInstance().addRow(dataset);
              }
View Full Code Here

            progress.setValue(0);
            status.setVisible(true);
            int total = table.getRowCount();
            for (int i = 0; i < table.getRowCount(); i++) {
                final int row = i;
                MyFile file = (MyFile) model.getValueAt(i, 0);
                String configPrefix = toolFactory.getConfigPrefix(file);
                String path = Replaygain.getProperty(configPrefix + ".path");
                String params = Replaygain.getProperty(configPrefix + ".params");
                table.setValueAt(I18N.translate("processing"), i, 1);
                status.setText(I18N.translate("processing") + " " + file.toString());
                try {
                    // start the *gain tool
                    Runtime rt = Runtime.getRuntime();
                    String[] arguments = { path, params, file.getAbsolutePath() };
                    process = rt.exec(arguments);

                    // read from stdout and stderr and show results in gui
                    ProcessOutputReader por = toolFactory.createOutputReader(file, process, new ProgressCallback() {
                        @Override
View Full Code Here

TOP

Related Classes of net.sf.jmp3renamer.util.MyFile

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.