Changeset 4513


Ignore:
Timestamp:
Aug 15, 2013, 6:00:33 PM (10 years ago)
Author:
Fredrik Levander
Message:

Refs #808. Updated converter to display hostname in path to sourcefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugin/src/org/proteios/plugins/MgfToMzDataPlugin.java

    r4511 r4513  
    3333import java.io.InputStreamReader;
    3434import java.io.OutputStream;
     35import java.net.URI;
     36import java.net.URISyntaxException;
    3537import java.text.NumberFormat;
    3638import java.util.ArrayList;
     
    544546     */
    545547    String nameOfFile = infilename;
    546     String pathToFile = new String("");
     548    String pathToFile = "file://"+Application.getHostName()+"//";
     549    try
     550    {
     551      new URI(pathToFile);
     552    }
     553    catch (URISyntaxException e1)
     554    {
     555        pathToFile = "file:////";
     556    }   
    547557    String fileType = new String("MGF");
    548558    String instrumentName = new String("Unknown");
     
    574584    String title = "";
    575585    String rtInSeconds = "0";
    576     float basePeakIntensity = 0;
    577     float totalIntensity = 0;
    578586    String massToChargeRatio = "0";
    579587    String intensity = "0";
     
    596604          title = "";
    597605          rtInSeconds = "0";
    598           basePeakIntensity = 0;
    599           totalIntensity = 0;
    600606          massToChargeRatio = "0";
    601607          intensity = "0";
Note: See TracChangeset for help on using the changeset viewer.