remove unused class
This commit is contained in:
parent
a11428569a
commit
a854333c01
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
package fr.insa.clavardator.util;
|
|
||||||
|
|
||||||
import java.beans.PropertyChangeListener;
|
|
||||||
import java.beans.PropertyChangeSupport;
|
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public class ErrorHandler {
|
|
||||||
private ErrorHandler() {}
|
|
||||||
|
|
||||||
// Make this class observable
|
|
||||||
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
|
|
||||||
public void addObserver(PropertyChangeListener listener) { pcs.addPropertyChangeListener(listener); }
|
|
||||||
public void removeObserver(PropertyChangeListener listener) { pcs.removePropertyChangeListener(listener); }
|
|
||||||
|
|
||||||
private static ErrorHandler instance;
|
|
||||||
|
|
||||||
public static ErrorHandler getInstance() {
|
|
||||||
if (instance == null)
|
|
||||||
instance = new ErrorHandler();
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void notifyError(Exception exception) {
|
|
||||||
pcs.firePropertyChange("exception", null, exception);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue