Examples of removeFile()


Examples of net.sf.mzmine.project.MZmineProject.removeFile()

        final MZmineProject project = MZmineCore.getCurrentProject();
        project.addFile(correctedDataFile);

        // Remove the original data file if requested
        if (removeOriginal) {
          project.removeFile(origDataFile);
        }

        // Set task status to FINISHED
        setStatus(TaskStatus.FINISHED);
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject.removeFile()

      final MZmineProject project = MZmineCore.getCurrentProject();
      project.addFile(correctedDataFile);

      // Remove the original data file if requested
      if (removeOriginal)
        project.removeFile(dataFile);
    } catch (IOException e) {
      logger.log(Level.SEVERE,
          "Retention correction initialization error", e);
      setStatus(TaskStatus.ERROR);
      errorMessage = e.getMessage();
View Full Code Here

Examples of net.sf.mzmine.project.MZmineProject.removeFile()

        final MZmineProject project = MZmineCore.getCurrentProject();
        project.addFile(filteredDataFile);

        // Remove the original data file if requested
        if (removeOriginal)
          project.removeFile(dataFile);

        setStatus(TaskStatus.FINISHED);
        logger.info("Finished spectrum filter " + dataFile.getName());
      }
    } catch (IOException e) {
View Full Code Here

Examples of net.sf.rej.files.FileSet.removeFile()

    if (oldClassName != null) {
      String newFileName = getNewFileName(ic.getFilename(), oldClassName, cf.getFullClassName());
      Undoable u = new RenameFileAction(ic.getProject(), ic.getFilename(), newFileName, ic.getCf());
      if (this.batchMode) {
        FileSet fs = ic.getProject().getFileSet();
        fs.removeFile(ic.getFilename());
        fs.addFile(newFileName);
      } else {
        SystemFacade.getInstance().performProjectAction(u);
      }
      ic.setFilename(newFileName);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.IFileListBoxModel.removeFile()

        {
          int idx = _extraClassPathList.getSelectedIndex();
          if (idx > 0)
          {
            IFileListBoxModel model = _extraClassPathList.getTypedModel();
            File file = model.removeFile(idx);
            --idx;
            model.insertFileAt(file, idx);
            _extraClassPathList.setSelectedIndex(idx);
          }
        }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.IFileListBoxModel.removeFile()

        {
          int idx = _extraClassPathList.getSelectedIndex();
          IFileListBoxModel model = _extraClassPathList.getTypedModel();
          if (idx > -1 && idx < (model.getSize() - 1))
          {
            File file = model.removeFile(idx);
            ++idx;
            model.insertFileAt(file, idx);
            _extraClassPathList.setSelectedIndex(idx);
          }
        }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.gui.IFileListBoxModel.removeFile()

      {
        int idx = _extraClassPathList.getSelectedIndex();
        if (idx != -1)
        {
          IFileListBoxModel model = _extraClassPathList.getTypedModel();
          model.removeFile(idx);
          final int size = model.getSize();
          if (idx < size)
          {
            _extraClassPathList.setSelectedIndex(idx);
          }
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.controller.ChukwaAgentController.removeFile()

      File tmpOutput = TempFileUtil.makeBinary(2000);

      cli.addFile("unknown", tmpOutput.getAbsolutePath());
      System.out.println("have " + agent.adaptorCount() + " running adaptors");
      cli.removeFile("unknown", tmpOutput.getAbsolutePath());

      tmpOutput.delete();
      assertFalse(failed);
      System.out.println("done");
      agent.shutdown();
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.controller.ChukwaAgentController.removeFile()

      fos.flush();
      fos.close();
     
      cli.addFile("unknown", tmpOutput.getAbsolutePath());
      assertEquals(1, agent.adaptorCount());
      cli.removeFile("unknown", tmpOutput.getAbsolutePath());
      assertEquals(0, agent.adaptorCount());
      org.apache.hadoop.chukwa.Chunk readIn = readInData.readOutChunk(randomData.length, 5000);
      byte[] readInBytes = readIn.getData();
      if(readInBytes.length != randomData.length)
      {
View Full Code Here

Examples of org.apache.hadoop.chukwa.datacollection.controller.ChukwaAgentController.removeFile()

     
      File tmpOutput = TempFileUtil.makeBinary(2000);
     
      cli.addFile("unknown", tmpOutput.getAbsolutePath());
      System.out.println("have " + agent.adaptorCount() + " running adaptors");
      cli.removeFile("unknown", tmpOutput.getAbsolutePath());
   
     
      tmpOutput.delete();
      assertFalse(failed);
      System.out.println("done");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.