From: Mateusz Warowny Date: Wed, 15 Jul 2020 16:39:59 +0000 (+0100) Subject: JAL-3690 mark JalviewChangeSupport as deprecated X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bf34fc7848e221f93f1783bba3cd3d122cd53456;p=jalview.git JAL-3690 mark JalviewChangeSupport as deprecated --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index d8e3bbb..63b621e 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -161,6 +161,7 @@ public class Desktop extends jalview.jbgui.GDesktop public static HashMap savingFiles = new HashMap(); + @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) { diff --git a/src/jalview/gui/JalviewChangeSupport.java b/src/jalview/gui/JalviewChangeSupport.java index 784e6c1..21c1af0 100644 --- a/src/jalview/gui/JalviewChangeSupport.java +++ b/src/jalview/gui/JalviewChangeSupport.java @@ -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)