Search in sources :

Example 1 with HelpDialog

use of com.compomics.util.gui.error_handlers.HelpDialog in project peptide-shaker by compomics.

the class ModificationsPanel method spectrumHelpJButtonActionPerformed.

// GEN-LAST:event_spectrumHelpJButtonMouseExited
/**
 * Open the help dialog.
 *
 * @param evt
 */
private void spectrumHelpJButtonActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_spectrumHelpJButtonActionPerformed
    setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
    int spectrumTabIndex = spectrumTabbedPane.getSelectedIndex();
    if (spectrumTabIndex == 0) {
        new HelpDialog(peptideShakerGUI, getClass().getResource("/helpFiles/ModificationPanel.html"), "#Modification", Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Modification Analysis - Help");
    } else if (spectrumTabIndex == 1) {
        new HelpDialog(peptideShakerGUI, getClass().getResource("/helpFiles/ModificationPanel.html"), "#DeltaScore", Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Modification Analysis - Help");
    } else if (spectrumTabIndex == 2) {
        new HelpDialog(peptideShakerGUI, getClass().getResource("/helpFiles/ModificationPanel.html"), "#Spectrum", Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Modification Analysis - Help");
    }
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
}
Also used : HelpDialog(com.compomics.util.gui.error_handlers.HelpDialog) java.awt(java.awt)

Example 2 with HelpDialog

use of com.compomics.util.gui.error_handlers.HelpDialog in project peptide-shaker by compomics.

the class PeptideShakerGUI method helpMenuItemActionPerformed.

// GEN-LAST:event_mzIonTableRadioButtonMenuItemActionPerformed
/**
 * Opens the wanted Help window.
 *
 * @param evt
 */
private void helpMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
    // GEN-FIRST:event_helpMenuItemActionPerformed
    int selectedTabIndex = allTabsJTabbedPane.getSelectedIndex();
    setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
    if (selectedTabIndex == OVER_VIEW_TAB_INDEX) {
        int spectrumTabIndex = overviewPanel.getSelectedSpectrumTabIndex();
        if (spectrumTabIndex == 0) {
            new HelpDialog(this, getClass().getResource("/helpFiles/IonTable.html"), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Ion Table - Help");
        } else if (spectrumTabIndex == 1) {
            new HelpDialog(this, getClass().getResource("/helpFiles/BubblePlot.html"), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Bubble Plot - Help");
        } else if (spectrumTabIndex == 2) {
            new HelpDialog(this, getClass().getResource("/helpFiles/SpectrumPanel.html"), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Spetrum Panel - Help");
        }
    } else if (selectedTabIndex == SPECTRUM_ID_TAB_INDEX) {
        new HelpDialog(this, getClass().getResource("/helpFiles/SpectrumPanel.html"), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Spectrum Panel - Help");
    } else if (selectedTabIndex == MODIFICATIONS_TAB_INDEX) {
        new HelpDialog(this, getClass().getResource("/helpFiles/PTMPanel.html"), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/help.GIF")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), "Modification Analysis - Help");
    }
    setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
}
Also used : HelpDialog(com.compomics.util.gui.error_handlers.HelpDialog) java.awt(java.awt)

Aggregations

HelpDialog (com.compomics.util.gui.error_handlers.HelpDialog)2 java.awt (java.awt)2