summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 02:34:36 (EDT)
committerEike Stepper2007-10-11 02:34:36 (EDT)
commit33916423dcc4944857821599de6fbef1dfa7a9f4 (patch)
treed30249abc06b2767a6f4aea0528d9dcbb875715f
parenta092037c944b894b40a32878a343a44531f9423a (diff)
downloadcdo-33916423dcc4944857821599de6fbef1dfa7a9f4.zip
cdo-33916423dcc4944857821599de6fbef1dfa7a9f4.tar.gz
cdo-33916423dcc4944857821599de6fbef1dfa7a9f4.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
index 94ba5da..67bb526 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java
@@ -11,11 +11,14 @@
package org.eclipse.net4j.buddies.internal.ui.views;
import org.eclipse.net4j.buddies.IBuddySession;
-import org.eclipse.net4j.buddies.internal.ui.SharedIcons;
import org.eclipse.net4j.buddies.internal.ui.actions.ConnectAction;
import org.eclipse.net4j.buddies.internal.ui.actions.DisconnectAction;
import org.eclipse.net4j.buddies.internal.ui.actions.FlashAction;
import org.eclipse.net4j.buddies.internal.ui.actions.StateAction;
+import org.eclipse.net4j.buddies.internal.ui.actions.StateAction.AvailableAction;
+import org.eclipse.net4j.buddies.internal.ui.actions.StateAction.AwayAction;
+import org.eclipse.net4j.buddies.internal.ui.actions.StateAction.DoNotDisturbAction;
+import org.eclipse.net4j.buddies.internal.ui.actions.StateAction.LonesomeAction;
import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.buddies.protocol.IBuddyStateChangedEvent;
import org.eclipse.net4j.buddies.protocol.IBuddy.State;
@@ -46,14 +49,13 @@ public class BuddiesView extends ContainerView implements IListener
private FlashAction flashAction = new FlashAction();
- private StateAction availableAction = new StateAction("Available", State.AVAILABLE, SharedIcons.OBJ_BUDDY);
+ private StateAction availableAction = new AvailableAction();
- private StateAction lonesomeAction = new StateAction("Lonesome", State.LONESOME, SharedIcons.OBJ_BUDDY_LONESOME);
+ private StateAction lonesomeAction = new LonesomeAction();
- private StateAction awayAction = new StateAction("Away", State.AWAY, SharedIcons.OBJ_BUDDY_AWAY);
+ private StateAction awayAction = new AwayAction();
- private StateAction doNotDisturbAction = new StateAction("Do Not Disturb", State.DO_NOT_DISTURB,
- SharedIcons.OBJ_BUDDY_DO_NOT_DISTURB);
+ private StateAction doNotDisturbAction = new DoNotDisturbAction();
public BuddiesView()
{