Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [chemclipse-dev] How to avoid an openned file reopening in new Edit Part?

Trig,

you need to set the file when parsing the chromatogram from the given file:

    chromatogram.setFile(file);


Best,
Philip

Am 26.08.2016 um 09:42 schrieb Trig Chen:
When I open my acquired TideMS chromatogram file(*.tms) in edior, the getFile() of ChromatogramMSD return null.
But for the DemoChromatogram.ocb file, it return the correct file path.
What's the problem?

Best regards,

Trig

2016-08-26 0:04 GMT+08:00 Trig Chen <trigchen@xxxxxxxxx>:
Currently, no matter a chromatogram file has openned in one Editor Part, reopen it will always create a new Edit Part. How to avoid that?

I acquired a TOF spectrum and wrote to a file and then openned it in Editor, now I want to cyclicly acquire data in the same file and display in same Editor, how can I update the Editor with new data?

My code for  cyclic acquisition as follow:

final boolean success = usbDevice.acquireMassSpectrum(saveFile);
if(success) {
ChromatogramSupport.getInstanceEditorSupport().openEditor(saveFile, modelService, application, partService);
}

while(chkCyclicScan.getSelection() && usbDevice.acquireMassSpectrum(saveFile)) {
ChromatogramSupport.getInstanceEditorSupport().openEditor(saveFile, modelService, application, partService);
}


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
~~~~~~~~~~~~~~~~~~~~~~~~

Back to the top