Package com.compomics.util.pride.prideobjects

Examples of com.compomics.util.pride.prideobjects.Instrument


     * @param evt
     */
    private void editInstrumentJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editInstrumentJButtonActionPerformed
        // get the selected instrument details
        String selectedInstrument = (String) instrumentJComboBox.getSelectedItem();
        Instrument tempInstrument = prideObjectsFactory.getInstruments().get(selectedInstrument);
        if (tempInstrument == null) {
            tempInstrument = new Instrument("New instrument", null, null, null);
        }

        new NewInstrumentDialog(this, true, tempInstrument);
    }//GEN-LAST:event_editInstrumentJButtonActionPerformed
View Full Code Here


                String selectedProtocol = (String) protocolJComboBox.getSelectedItem();
                Protocol protocol = prideObjectsFactory.getProtocols().get(selectedProtocol);

                // get the selected instrument details
                String selectedInstrument = (String) instrumentJComboBox.getSelectedItem();
                Instrument instrument = prideObjectsFactory.getInstruments().get(selectedInstrument);

                // save the inserted pride details with the project
                peptideShakerGUI.getProjectDetails().setPrideExperimentTitle(titleJTextField.getText());
                peptideShakerGUI.getProjectDetails().setPrideExperimentLabel(labelJTextField.getText());
                peptideShakerGUI.getProjectDetails().setPrideExperimentProjectTitle(projectJTextField.getText());
View Full Code Here

        String tempDetector = instrumentDetectorJTextField.getText();
        String termDetector = tempDetector.substring(0, tempDetector.lastIndexOf("[") - 1);
        String accessionDetector = tempDetector.substring(tempDetector.lastIndexOf("[") + 1, tempDetector.lastIndexOf("]"));
        String ontologyDetector = ProjectExportDialog.getOntologyFromCvTerm(accessionDetector);

        prideExportDialog.setInstrument(new Instrument(nameJTextField.getText(),
                new CvTerm(ontologySource, accessionSource, termSource, null),
                new CvTerm(ontologyDetector, accessionDetector, termDetector, null),
                cvTerms));
        dispose();
    }//GEN-LAST:event_okJButtonActionPerformed
View Full Code Here

     *
     * @param evt
     */
    private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteButtonActionPerformed
        dispose();
        prideExportDialog.deleteInstrument(new Instrument(nameJTextField.getText(), null, null, new ArrayList<CvTerm>()));
    }//GEN-LAST:event_deleteButtonActionPerformed
View Full Code Here

TOP

Related Classes of com.compomics.util.pride.prideobjects.Instrument

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.