Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c50a2fb251
2 changed files with 0 additions and 35 deletions
|
@ -195,14 +195,6 @@ public class UserList {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<Integer, PeerUser> getActiveUsers() {
|
|
||||||
return activeUsers;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Map<Integer, PeerUser> getInactiveUsers() {
|
|
||||||
return inactiveUsers;
|
|
||||||
}
|
|
||||||
|
|
||||||
public interface UserConnectionCallback {
|
public interface UserConnectionCallback {
|
||||||
void onUserConnected(PeerUser user);
|
void onUserConnected(PeerUser user);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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