Skip to content
Snippets Groups Projects
Commit 896a3a85 authored by tjc's avatar tjc
Browse files

limit NCBI search to one selected feature

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8769 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 05ba8dc8
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/RunMenu.java,v 1.11 2008-09-11 10:26:30 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/RunMenu.java,v 1.12 2008-09-11 10:51:53 tjc Exp $
**/
package uk.ac.sanger.artemis.components;
......@@ -38,13 +38,14 @@ import java.awt.event.*;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
/**
* A JMenu of external commands/functions.
*
* @author Kim Rutherford
* @version $Id: RunMenu.java,v 1.11 2008-09-11 10:26:30 tjc Exp $
* @version $Id: RunMenu.java,v 1.12 2008-09-11 10:51:53 tjc Exp $
**/
public class RunMenu extends SelectionMenu
......@@ -126,6 +127,14 @@ public class RunMenu extends SelectionMenu
public void actionPerformed(ActionEvent arg0)
{
final FeatureVector features = selection.getAllFeatures();
if(features.size() != 1)
{
JOptionPane.showMessageDialog(RunMenu.this,
"Selected a single feature to send to NCBI for searching.",
"NCBI Search", JOptionPane.INFORMATION_MESSAGE);
return;
}
final String residues;
if(program.getType() == ExternalProgram.AA_PROGRAM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment