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")),
"PeptideShaker - 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")),
"PeptideShaker - 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")),
"PeptideShaker - 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")),
"PeptideShaker - 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")),
"PeptideShaker - Help");
}