JAL-3690 mark JalviewChangeSupport as deprecated
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 15 Jul 2020 16:39:59 +0000 (17:39 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 15 Jul 2020 16:39:59 +0000 (17:39 +0100)
src/jalview/gui/Desktop.java
src/jalview/gui/JalviewChangeSupport.java

index d8e3bbb..63b621e 100644 (file)
@@ -161,6 +161,7 @@ public class Desktop extends jalview.jbgui.GDesktop
 
   public static HashMap<String, FileWriter> savingFiles = new HashMap<String, FileWriter>();
 
+  @SuppressWarnings("deprecation")
   private JalviewChangeSupport changeSupport = new JalviewChangeSupport();
 
   /**
@@ -174,6 +175,7 @@ public class Desktop extends jalview.jbgui.GDesktop
    * @param listener
    * @see jalview.gui.JalviewChangeSupport#addJalviewPropertyChangeListener(java.beans.PropertyChangeListener)
    */
+  @Deprecated
   public void addJalviewPropertyChangeListener(
           PropertyChangeListener listener)
   {
@@ -186,6 +188,7 @@ public class Desktop extends jalview.jbgui.GDesktop
    * @see jalview.gui.JalviewChangeSupport#addJalviewPropertyChangeListener(java.lang.String,
    *      java.beans.PropertyChangeListener)
    */
+  @Deprecated
   public void addJalviewPropertyChangeListener(String propertyName,
           PropertyChangeListener listener)
   {
@@ -198,6 +201,7 @@ public class Desktop extends jalview.jbgui.GDesktop
    * @see jalview.gui.JalviewChangeSupport#removeJalviewPropertyChangeListener(java.lang.String,
    *      java.beans.PropertyChangeListener)
    */
+  @Deprecated
   public void removeJalviewPropertyChangeListener(String propertyName,
           PropertyChangeListener listener)
   {
index 784e6c1..21c1af0 100644 (file)
@@ -23,6 +23,7 @@ package jalview.gui;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 
+@Deprecated
 public class JalviewChangeSupport implements PropertyChangeListener
 {
   public void propertyChange(PropertyChangeEvent evt)