Search in sources :

Example 1 with FileNameComponent

use of net.sf.mzmine.parameters.parametertypes.filenames.FileNameComponent in project mzmine2 by mzmine.

the class GnpsGcSubmitParameters method showSetupDialog.

@Override
public ExitCode showSetupDialog(Window parent, boolean valueCheckRequired) {
    ParameterSetupDialog dialog = new ParameterSetupDialog(parent, valueCheckRequired, this);
    // add button to create Kovats file
    FileNameComponent pn = (FileNameComponent) ((OptionalParameterComponent) dialog.getComponentForParameter(KOVATS_FILE)).getEmbeddedComponent();
    JButton btn = new JButton("Create");
    pn.add(btn);
    btn.addActionListener(e -> openKovatsDialog(pn));
    dialog.updateMinimumSize();
    dialog.setVisible(true);
    return dialog.getExitCode();
}
Also used : FileNameComponent(net.sf.mzmine.parameters.parametertypes.filenames.FileNameComponent) JButton(javax.swing.JButton) ParameterSetupDialog(net.sf.mzmine.parameters.dialogs.ParameterSetupDialog)

Aggregations

JButton (javax.swing.JButton)1 ParameterSetupDialog (net.sf.mzmine.parameters.dialogs.ParameterSetupDialog)1 FileNameComponent (net.sf.mzmine.parameters.parametertypes.filenames.FileNameComponent)1