context dependent title for when called from desktop or alignment window menu
authorjprocter <Jim Procter>
Thu, 8 Dec 2005 16:45:04 +0000 (16:45 +0000)
committerjprocter <Jim Procter>
Thu, 8 Dec 2005 16:45:04 +0000 (16:45 +0000)
src/jalview/gui/SequenceFetcher.java

index e7d03fe..aa494f5 100755 (executable)
@@ -58,9 +58,11 @@ public class SequenceFetcher
     frame = new JInternalFrame();\r
     frame.setContentPane(this);\r
     if(System.getProperty("os.name").startsWith("Mac"))\r
-      Desktop.addInternalFrame(frame, "Sequence Fetcher (WSDBfetch@EBI)", 400, 140);\r
+      Desktop.addInternalFrame(frame, ((af==null) ?\r
+                                       "New " : "Additional ")+"Sequence Fetcher (WSDBfetch@EBI)", 400, 140);\r
     else\r
-      Desktop.addInternalFrame(frame, "Sequence Fetcher (WSDBfetch@EBI)", 400, 125);\r
+      Desktop.addInternalFrame(frame, ((af==null) ?\r
+                                       "New " : "Additional ")+"Sequence Fetcher (WSDBfetch@EBI)", 400, 125);\r
   }\r
 \r
   private void jbInit()\r