Refactoring of presence using latest Smack.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7192 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-02-19 20:50:11 +00:00
committed by derek
parent 6b68be17c3
commit 80e8915d0b
19 changed files with 238 additions and 460 deletions

View File

@ -20,6 +20,7 @@ import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.spark.SparkManager;
import org.jivesoftware.spark.Workspace;
import org.jivesoftware.spark.PresenceManager;
import org.jivesoftware.spark.ui.PresenceListener;
import org.jivesoftware.spark.ui.status.StatusBar;
import org.jivesoftware.spark.ui.status.StatusItem;
@ -166,7 +167,7 @@ public final class Notifications implements ActionListener, MainWindowListener {
}
// Get Status Text
if (presence != null) {
if (presence.isAvailable()) {
String status = presence.getStatus();
trayIcon.setToolTip("Spark Client\n" + status);
}