Formatting
[jalview.git] / src / jalview / jbgui / GSequenceLink.java
index 2c688ce..19740fa 100755 (executable)
@@ -1,29 +1,26 @@
 /*\r
-* Jalview - A Sequence Alignment Editor and Viewer\r
-* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
-*\r
-* This program is free software; you can redistribute it and/or\r
-* modify it under the terms of the GNU General Public License\r
-* as published by the Free Software Foundation; either version 2\r
-* of the License, or (at your option) any later version.\r
-*\r
-* This program is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* You should have received a copy of the GNU General Public License\r
-* along with this program; if not, write to the Free Software\r
-* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
-*/\r
+ * Jalview - A Sequence Alignment Editor and Viewer\r
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+ */\r
 package jalview.jbgui;\r
 \r
 import java.awt.*;\r
-import javax.swing.JTextField;\r
-import javax.swing.JLabel;\r
+import java.awt.event.*;\r
 import javax.swing.*;\r
-import java.awt.event.KeyAdapter;\r
-import java.awt.event.KeyEvent;\r
 \r
 public class GSequenceLink\r
     extends Panel\r
@@ -109,18 +106,17 @@ public class GSequenceLink
 \r
   public boolean checkValid()\r
   {\r
-    if(urlTB.getText().indexOf("$SEQUENCE_ID$")==-1)\r
+    if (urlTB.getText().indexOf("$SEQUENCE_ID$") == -1)\r
     {\r
       JOptionPane.showInternalMessageDialog(jalview.gui.Desktop.desktop,\r
                                             "Sequence URL must contain $SEQUENCE_ID$",\r
-           "URL not valid", JOptionPane.WARNING_MESSAGE);\r
+                                            "URL not valid",\r
+                                            JOptionPane.WARNING_MESSAGE);\r
       return false;\r
     }\r
     return true;\r
   }\r
 \r
-\r
-\r
   JTextField nameTB = new JTextField();\r
   JTextField urlTB = new JTextField();\r
   JLabel jLabel1 = new JLabel();\r
@@ -130,19 +126,18 @@ public class GSequenceLink
   GridBagLayout gridBagLayout1 = new GridBagLayout();\r
   public void nameTB_keyTyped(KeyEvent e)\r
   {\r
-    if(e.getKeyChar()=='|')\r
-     {\r
-       e.consume();\r
-     }\r
+    if (e.getKeyChar() == '|')\r
+    {\r
+      e.consume();\r
+    }\r
   }\r
 \r
   public void urlTB_keyTyped(KeyEvent e)\r
   {\r
-    if (e.getKeyChar() == '|' || e.getKeyChar()==' ')\r
+    if (e.getKeyChar() == '|' || e.getKeyChar() == ' ')\r
     {\r
       e.consume();\r
     }\r
 \r
   }\r
 }\r
-\r