Search in sources :

Example 1 with HelpWindow

use of net.sf.mzmine.desktop.impl.helpwindow.HelpWindow in project mzmine2 by mzmine.

the class ParameterSetupDialog method actionPerformed.

/**
 * Implementation for ActionListener interface
 */
@Override
public void actionPerformed(ActionEvent ae) {
    Object src = ae.getSource();
    if (src == btnOK) {
        closeDialog(ExitCode.OK);
    }
    if (src == btnCancel) {
        closeDialog(ExitCode.CANCEL);
    }
    if (src == btnHelp) {
        Platform.runLater(() -> {
            if (helpWindow != null) {
                helpWindow.show();
                helpWindow.toFront();
            } else {
                helpWindow = new HelpWindow(helpURL.toString());
                helpWindow.show();
            }
        });
    }
    if ((src instanceof JCheckBox) || (src instanceof JComboBox)) {
        parametersChanged();
    }
}
Also used : HelpWindow(net.sf.mzmine.desktop.impl.helpwindow.HelpWindow) JCheckBox(javax.swing.JCheckBox) JComboBox(javax.swing.JComboBox)

Example 2 with HelpWindow

use of net.sf.mzmine.desktop.impl.helpwindow.HelpWindow in project mzmine2 by mzmine.

the class MainWindow method showAboutDialog.

public void showAboutDialog() {
    Platform.runLater(() -> {
        final URL aboutPage = getClass().getClassLoader().getResource("aboutpage/AboutMZmine.html");
        HelpWindow aboutWindow = new HelpWindow(aboutPage.toString());
        aboutWindow.show();
    });
}
Also used : HelpWindow(net.sf.mzmine.desktop.impl.helpwindow.HelpWindow) URL(java.net.URL)

Example 3 with HelpWindow

use of net.sf.mzmine.desktop.impl.helpwindow.HelpWindow in project mzmine2 by mzmine.

the class MSMSLibrarySubmissionWindow method actionPerformed.

@Override
public void actionPerformed(ActionEvent e) {
    Object src = e.getSource();
    if (src == helpButton) {
        Platform.runLater(() -> {
            if (helpWindow != null) {
                helpWindow.show();
                helpWindow.toFront();
            } else {
                helpWindow = new HelpWindow(helpURL.toString());
                helpWindow.show();
            }
        });
    }
}
Also used : HelpWindow(net.sf.mzmine.desktop.impl.helpwindow.HelpWindow)

Aggregations

HelpWindow (net.sf.mzmine.desktop.impl.helpwindow.HelpWindow)3 URL (java.net.URL)1 JCheckBox (javax.swing.JCheckBox)1 JComboBox (javax.swing.JComboBox)1