+ loadState.setText(MessageManager.getString("action.load_project"));
+ loadState.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ loadState_actionPerformed(true);
+ }
+ });
+ JMenuItem loadAsJaxb = new JMenuItem("Load Project as JAXB");
+ loadAsJaxb.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ loadState_actionPerformed(false);
+ }
+ });
+ inputMenu.setText(MessageManager.getString("label.input_alignment"));
+ vamsasStart
+ .setText(MessageManager.getString("label.new_vamsas_session"));
+ vamsasStart.setVisible(false);
+ vamsasStart.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ vamsasStart_actionPerformed(e);
+ }
+ });
+ vamsasImport.setText(
+ MessageManager.getString("action.load_vamsas_session"));
+ vamsasImport.setVisible(false);
+ vamsasImport.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ vamsasImport_actionPerformed(e);
+ }
+ });
+ vamsasSave.setText(
+ MessageManager.getString("action.save_vamsas_session"));
+ vamsasSave.setVisible(false);
+ vamsasSave.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ vamsasSave_actionPerformed(e);
+ }
+ });
+ inputSequence
+ .setText(MessageManager.getString("action.fetch_sequences"));
+ inputSequence.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ inputSequence_actionPerformed(e);
+ }
+ });
+ vamsasStop
+ .setText(MessageManager.getString("label.stop_vamsas_session"));
+ vamsasStop.setVisible(false);
+ vamsasStop.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ vamsasStop_actionPerformed(e);
+ }
+ });
+ closeAll.setText(MessageManager.getString("action.close_all"));
+ closeAll.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ closeAll_actionPerformed(e);
+ }
+ });
+ raiseRelated.setText(
+ MessageManager.getString("action.raise_associated_windows"));
+ raiseRelated.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ raiseRelated_actionPerformed(e);
+ }
+ });
+ minimizeAssociated.setText(
+ MessageManager.getString("action.minimize_associated_windows"));
+ minimizeAssociated.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ minimizeAssociated_actionPerformed(e);
+ }
+ });
+ garbageCollect
+ .setText(MessageManager.getString("label.collect_garbage"));
+ garbageCollect.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ garbageCollect_actionPerformed(e);
+ }
+ });
+ showMemusage
+ .setText(MessageManager.getString("label.show_memory_usage"));
+ showMemusage.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ showMemusage_actionPerformed(e);
+ }
+ });
+ showConsole
+ .setText(MessageManager.getString("label.show_java_console"));
+ showConsole.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ showConsole_actionPerformed(e);
+ }
+ });
+ showNews.setText(MessageManager.getString("label.show_jalview_news"));
+ showNews.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ showNews_actionPerformed(e);
+ }
+ });
+ groovyShell = new JMenuItem();
+ groovyShell.setText(MessageManager.getString("label.groovy_console"));
+ groovyShell.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ groovyShell_actionPerformed();
+ }
+ });
+ experimentalFeatures = new JCheckBoxMenuItem();
+ experimentalFeatures
+ .setText(MessageManager.getString("label.show_experimental"));
+ experimentalFeatures.setToolTipText(
+ MessageManager.getString("label.show_experimental_tip"));
+ experimentalFeatures.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ showExperimental_actionPerformed(experimentalFeatures.isSelected());
+ }
+ });
+
+ snapShotWindow.setText(MessageManager.getString("label.take_snapshot"));
+ snapShotWindow.addActionListener(new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ snapShotWindow_actionPerformed(e);
+ }
+ });
+
+ desktopMenubar.add(FileMenu);
+ desktopMenubar.add(toolsMenu);
+ VamsasMenu.setVisible(false);
+ desktopMenubar.add(VamsasMenu);
+ desktopMenubar.add(HelpMenu);
+ desktopMenubar.add(windowMenu);
+ FileMenu.add(inputMenu);
+ FileMenu.add(inputSequence);
+ FileMenu.addSeparator();
+ FileMenu.add(saveAsJaxb);
+ FileMenu.add(loadAsJaxb);
+ if (!Jalview.isJS())
+ {
+ FileMenu.add(saveState);
+ FileMenu.add(loadState);
+ }