summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 02:57:09 (EDT)
committerEike Stepper2007-10-11 02:57:09 (EDT)
commit7b96ead59f27ac0f816c6d3bdaf1ee9f4e70ed48 (patch)
tree97a14211f48fb646bedcda6a0120ff0e1ad9a674
parent6c8f6dcd8276ad2f2fc983f6d792d9f215db6a94 (diff)
downloadcdo-7b96ead59f27ac0f816c6d3bdaf1ee9f4e70ed48.zip
cdo-7b96ead59f27ac0f816c6d3bdaf1ee9f4e70ed48.tar.gz
cdo-7b96ead59f27ac0f816c6d3bdaf1ee9f4e70ed48.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/actions/StateAction.java1
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/BuddiesView.java25
2 files changed, 5 insertions, 21 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/actions/StateAction.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/actions/StateAction.java
index ca73aab..2c375d7 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/actions/StateAction.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/actions/StateAction.java
@@ -134,6 +134,7 @@ public class StateAction extends SafeAction
@Override
public void run()
{
+
}
protected void addActionToMenu(Menu parent, Action action)
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 05d1d20..5a630a7 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
@@ -14,11 +14,7 @@ import org.eclipse.net4j.buddies.IBuddySession;
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.internal.ui.actions.StateAction.DropDownAction;
import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.buddies.protocol.IBuddyStateChangedEvent;
import org.eclipse.net4j.buddies.ui.IBuddiesManager;
@@ -48,13 +44,7 @@ public class BuddiesView extends ContainerView implements IListener
private FlashAction flashAction = new FlashAction();
- private StateAction availableAction = new AvailableAction();
-
- private StateAction lonesomeAction = new LonesomeAction();
-
- private StateAction awayAction = new AwayAction();
-
- private StateAction doNotDisturbAction = new DoNotDisturbAction();
+ private DropDownAction dropDownAction = new DropDownAction();
public BuddiesView()
{
@@ -125,10 +115,7 @@ public class BuddiesView extends ContainerView implements IListener
@Override
protected void fillLocalToolBar(IToolBarManager manager)
{
- manager.add(availableAction);
- manager.add(lonesomeAction);
- manager.add(awayAction);
- manager.add(doNotDisturbAction);
+ manager.add(dropDownAction);
super.fillLocalToolBar(manager);
}
@@ -170,10 +157,6 @@ public class BuddiesView extends ContainerView implements IListener
connectAction.setEnabled(session == null);
disconnectAction.setEnabled(session != null);
flashAction.setEnabled(session != null && !IBuddiesManager.INSTANCE.isFlashing());
-
- availableAction.updateState();
- lonesomeAction.updateState();
- awayAction.updateState();
- doNotDisturbAction.updateState();
+ dropDownAction.updateState();
}
} \ No newline at end of file