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();
}
Aggregations