protected JMenu hmmerMenu = new JMenu();
- protected JMenu hmmAlign = new JMenu();
-
- protected JMenuItem hmmAlignRun = new JMenuItem();
-
- protected JMenuItem hmmAlignSettings = new JMenuItem();
-
- protected JMenu hmmSearch = new JMenu();
-
- protected JMenuItem hmmSearchRun = new JMenuItem();
-
- protected JMenuItem hmmSearchSettings = new JMenuItem();
-
- protected JMenuItem addDatabase = new JMenuItem();
-
- protected JMenu hmmBuild = new JMenu();
-
- protected JMenuItem hmmBuildRun = new JMenuItem();
-
- protected JMenuItem hmmBuildSettings = new JMenuItem();
-
protected JMenuItem webServiceNoServices;
protected JCheckBoxMenuItem viewBoxesMenuItem = new JCheckBoxMenuItem();
private void jbInit() throws Exception
{
initColourMenu();
- initHMMERMenu();
JMenuItem saveAs = new JMenuItem(
MessageManager.getString("action.save_as"));
JMenu calculateMenu = new JMenu(
MessageManager.getString("action.calculate"));
webService.setText(MessageManager.getString("action.web_service"));
- hmmerMenu.setText(MessageManager.getString("action.hmmer"));
- hmmerMenu.setEnabled(HmmerCommand.isHmmerAvailable());
- hmmerMenu.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmerMenu_actionPerformed(e);
- }
- });
- hmmerMenu.add(hmmBuild);
- hmmerMenu.add(hmmAlign);
- hmmerMenu.add(hmmSearch);
+
+ initHMMERMenu();
JMenuItem selectAllSequenceMenuItem = new JMenuItem(
MessageManager.getString("action.select_all"));
selectHighlightedColumns_actionPerformed(actionEvent);
}
};
- hmmBuildRun.setText(MessageManager.formatMessage(
- "label.action_with_default_settings", "hmmbuild"));
- hmmBuildRun.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmBuild_actionPerformed(true);
- }
- });
- hmmBuildSettings.setText(
- MessageManager.getString("label.edit_settings_and_run"));
- hmmBuildSettings.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmBuild_actionPerformed(false);
- }
- });
- hmmAlignRun.setText(MessageManager.formatMessage(
- "label.action_with_default_settings", "hmmalign"));
- hmmAlignRun.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmAlign_actionPerformed(true);
- }
- });
- hmmAlignSettings.setText(
- MessageManager.getString("label.edit_settings_and_run"));
- hmmAlignSettings.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmAlign_actionPerformed(false);
- }
- });
- hmmSearchRun.setText(MessageManager.formatMessage(
- "label.action_with_default_settings", "hmmsearch"));
- hmmSearchRun.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmSearch_actionPerformed(true);
- }
- });
- hmmSearchSettings.setText(
- MessageManager.getString("label.edit_settings_and_run"));
- hmmSearchSettings.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- hmmSearch_actionPerformed(false);
- }
- });
- addDatabase.setText(MessageManager.getString("label.add_database"));
- addDatabase.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- try
- {
- addDatabase_actionPerformed();
- } catch (IOException e1)
- {
- e1.printStackTrace();
- }
- }
- });
selectHighlighted.addActionListener(al);
JMenu tooltipSettingsMenu = new JMenu(
MessageManager.getString("label.sequence_id_tooltip"));
// selectMenu.add(listenToViewSelections);
}
- public void hmmerMenu_actionPerformed(ActionEvent e)
- {
-
- }
-
/**
- * Constructs the entries on the HMMER menu (does not add them to the menu).
+ * Constructs the entries on the HMMER menu
*/
protected void initHMMERMenu()
{
- hmmAlign = new JMenu(MessageManager.getString("label.hmmalign"));
- hmmAlignSettings = new JMenuItem(
- MessageManager.getString("label.edit_settings_and_run"));
- hmmAlignRun = new JMenuItem(MessageManager.formatMessage(
- "label.action_with_default_settings", "hmmalign"));
- hmmAlign.add(hmmAlignSettings);
- hmmAlign.add(hmmAlignRun);
- hmmBuild = new JMenu(MessageManager.getString("label.hmmbuild"));
- hmmBuildSettings = new JMenuItem(
+ /*
+ * hmmbuild
+ */
+ JMenu hmmBuild = new JMenu(MessageManager.getString("label.hmmbuild"));
+ JMenuItem hmmBuildSettings = new JMenuItem(
MessageManager.getString("label.edit_settings_and_run"));
- hmmBuildRun = new JMenuItem(MessageManager.formatMessage(
+ hmmBuildSettings.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmBuild_actionPerformed(false);
+ }
+ });
+ JMenuItem hmmBuildRun = new JMenuItem(MessageManager.formatMessage(
"label.action_with_default_settings", "hmmbuild"));
- hmmBuild.add(hmmBuildSettings);
+ hmmBuildRun.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmBuild_actionPerformed(true);
+ }
+ });
hmmBuild.add(hmmBuildRun);
- hmmSearch = new JMenu(MessageManager.getString("label.hmmsearch"));
- hmmSearchSettings = new JMenuItem(
+ hmmBuild.add(hmmBuildSettings);
+
+ /*
+ * hmmalign
+ */
+ JMenu hmmAlign = new JMenu(MessageManager.getString("label.hmmalign"));
+ JMenuItem hmmAlignRun = new JMenuItem(MessageManager.formatMessage(
+ "label.action_with_default_settings", "hmmalign"));
+ hmmAlignRun.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmAlign_actionPerformed(true);
+ }
+ });
+ JMenuItem hmmAlignSettings = new JMenuItem(
+ MessageManager.getString("label.edit_settings_and_run"));
+ hmmAlignSettings.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmAlign_actionPerformed(false);
+ }
+ });
+ hmmAlign.add(hmmAlignRun);
+ hmmAlign.add(hmmAlignSettings);
+
+ /*
+ * hmmsearch
+ */
+ JMenu hmmSearch = new JMenu(
+ MessageManager.getString("label.hmmsearch"));
+ JMenuItem hmmSearchSettings = new JMenuItem(
MessageManager.getString("label.edit_settings_and_run"));
- hmmSearchRun = new JMenuItem(MessageManager.formatMessage(
+ hmmSearchSettings.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmSearch_actionPerformed(false);
+ }
+ });
+ JMenuItem hmmSearchRun = new JMenuItem(MessageManager.formatMessage(
"label.action_with_default_settings", "hmmsearch"));
- addDatabase = new JMenuItem(
+ hmmSearchRun.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ hmmSearch_actionPerformed(true);
+ }
+ });
+ JMenuItem addDatabase = new JMenuItem(
MessageManager.getString("label.add_database"));
+ addDatabase.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ try
+ {
+ addDatabase_actionPerformed();
+ } catch (IOException e1)
+ {
+ e1.printStackTrace();
+ }
+ }
+ });
hmmSearch.add(hmmSearchSettings);
hmmSearch.add(hmmSearchRun);
hmmSearch.add(addDatabase);
+
+ /*
+ * top level menu
+ */
+ hmmerMenu.setText(MessageManager.getString("action.hmmer"));
+ hmmerMenu.setEnabled(HmmerCommand.isHmmerAvailable());
+ hmmerMenu.add(hmmBuild);
+ hmmerMenu.add(hmmAlign);
+ hmmerMenu.add(hmmSearch);
+
}
protected void loadVcf_actionPerformed()