Jalview.isJS() --> Platform.isJS(), DBRefEntry[] --> List<DBRefEntry>
[jalview.git] / src / jalview / io / cache / JvCacheableInputBox.java
index b1b7ac5..cf21c62 100644 (file)
@@ -21,8 +21,8 @@
 package jalview.io.cache;
 
 import jalview.bin.Cache;
-import jalview.bin.Jalview;
 import jalview.util.MessageManager;
+import jalview.util.Platform;
 
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
@@ -92,7 +92,7 @@ public class JvCacheableInputBox<E>
   public JvCacheableInputBox(String newCacheKey)
   {
     super();
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       textField = new JTextField();
       return;
@@ -202,7 +202,7 @@ public class JvCacheableInputBox<E>
    */
   public void updateCache()
   {
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       return;
     }
@@ -278,7 +278,7 @@ public class JvCacheableInputBox<E>
    */
   public void persistCache()
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       appCache.persistCache(cacheKey);
     }
@@ -291,7 +291,7 @@ public class JvCacheableInputBox<E>
    */
   public String getUserInput()
   {
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       return textField.getText().trim();
     }
@@ -301,12 +301,12 @@ public class JvCacheableInputBox<E>
 
   public JComponent getComponent()
   {
-    return Jalview.isJS() ? textField : comboBox;
+    return Platform.isJS() ? textField : comboBox;
   }
 
   public void addActionListener(ActionListener actionListener)
   {
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       textField.addActionListener(actionListener);
     }
@@ -318,7 +318,7 @@ public class JvCacheableInputBox<E>
 
   public void addDocumentListener(DocumentListener listener)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       ((JTextComponent) comboBox.getEditor().getEditorComponent())
               .getDocument().addDocumentListener(listener);
@@ -327,7 +327,7 @@ public class JvCacheableInputBox<E>
 
   public void addFocusListener(FocusListener focusListener)
   {
-    if (Jalview.isJS())
+    if (Platform.isJS())
     {
       textField.addFocusListener(focusListener);
     }
@@ -339,7 +339,7 @@ public class JvCacheableInputBox<E>
 
   public void addKeyListener(KeyListener kl)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       comboBox.getEditor().getEditorComponent().addKeyListener(kl);
     }
@@ -347,7 +347,7 @@ public class JvCacheableInputBox<E>
 
   public void setEditable(boolean b)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       comboBox.setEditable(b);
     }
@@ -355,7 +355,7 @@ public class JvCacheableInputBox<E>
 
   public void setPrototypeDisplayValue(String string)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       comboBox.setPrototypeDisplayValue(string);
     }
@@ -363,7 +363,7 @@ public class JvCacheableInputBox<E>
 
   public void setSelectedItem(String userInput)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       comboBox.setSelectedItem(userInput);
     }
@@ -371,7 +371,7 @@ public class JvCacheableInputBox<E>
 
   public boolean isPopupVisible()
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       return comboBox.isPopupVisible();
     }
@@ -380,7 +380,7 @@ public class JvCacheableInputBox<E>
 
   public void addCaretListener(CaretListener caretListener)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       ((JTextComponent) comboBox.getEditor().getEditorComponent())
               .addCaretListener(caretListener);
@@ -389,7 +389,7 @@ public class JvCacheableInputBox<E>
 
   public void addItem(String item)
   {
-    if (!Jalview.isJS())
+    if (!Platform.isJS())
     {
       comboBox.addItem(item);
     }