Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [chemclipse-dev] Editor title problem

Thank you, Philip. The problem was resolved by adding setFile() in cn.edu.xmu.tidems.control.support.ChromatogramReader_1100.read(File, IProgressMonitor) method:
@Override
public IChromatogramMSD read(final File file, final IProgressMonitor monitor) throws FileNotFoundException, FileIsNotReadableException, FileIsEmptyException, IOException {

IChromatogramMSD chromatogram = null;
final ZipFile zipFile = new ZipFile(file);
try {
if(isValidFileFormat(zipFile)) {
monitor.subTask(IConstants.IMPORT_CHROMATOGRAM);
chromatogram = readFromZipFile(zipFile, file, monitor);
if(chromatogram != null) {
chromatogram.setFile(file);
}
}
} finally {
zipFile.close();
}
//
return chromatogram;
}


Best regards,

Trig

2016-08-26 17:51 GMT+08:00 Philip Wenig <philip.wenig@xxxxxxxxxxxxx>:
When reading the *.tms files, do you set the file?

        chromatogram.setFile(file);

It is needed to resolve the name:

cn.edu.xmu.tidems.control.model.VendorChromatogram
...
    @Override
    public String getName() {

        return extractNameFromFile("ChromatogramTOF");
    }
...


Best,
Philip


Am 25.08.2016 um 18:17 schrieb Trig Chen:
It's strange the titles of openned chromatogram files was the default name ("TideMS") not their file names such as "tideMS20160825231707.tms, tideMS20160825231702.tms" with file extension trimmed. 

But  the DemoChromatogram.ocb file's name is properly show in editor title. What's wrong with my file?


Best regards,

Trig


_______________________________________________
chemclipse-dev mailing list
chemclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/chemclipse-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
chemclipse-dev mailing list
chemclipse-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/chemclipse-dev



Back to the top