summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 08:18:38 (EDT)
committerEike Stepper2007-10-11 08:18:38 (EDT)
commit69c598120dbab63adb5974e1bafe8e4ac2cc6d75 (patch)
tree9a16cf9da1ab1518db72ef3f7acb03f27b6136a0
parent1a5630f6f9a5e87401bfa870ce69c6ba5ebceda6 (diff)
downloadcdo-69c598120dbab63adb5974e1bafe8e4ac2cc6d75.zip
cdo-69c598120dbab63adb5974e1bafe8e4ac2cc6d75.tar.gz
cdo-69c598120dbab63adb5974e1bafe8e4ac2cc6d75.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/CollaborationsPane.java3
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java16
2 files changed, 9 insertions, 10 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
index 52b5c0c..277ca18 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsPane.java
@@ -254,7 +254,8 @@ public class CollaborationsPane extends Composite implements IListener
private ActivateFacilityAction(String type)
{
- super(StringUtil.cap(type), "Activate " + type + " facility");
+ super(StringUtil.cap(type), AS_RADIO_BUTTON);
+ setToolTipText("Activate " + type + " facility");
setImageDescriptor(SharedIcons.getDescriptor(SharedIcons.OBJ_COLLABORATION));
this.type = type;
}
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java
index 2fcd5b3..035ec94 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java
@@ -15,11 +15,11 @@ import org.eclipse.net4j.util.container.IContainer;
import org.eclipse.net4j.util.event.IEvent;
import org.eclipse.net4j.util.ui.widgets.SashComposite;
-import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IActionBars;
public class CollaborationsView extends SessionManagerView
{
@@ -37,7 +37,7 @@ public class CollaborationsView extends SessionManagerView
@Override
protected Control createControl(Composite parent)
{
- return sashComposite = new SashComposite(parent, SWT.NONE, 10, 30)
+ sashComposite = new SashComposite(parent, SWT.NONE, 10, 30)
{
@Override
protected Control createControl1(Composite parent)
@@ -51,14 +51,12 @@ public class CollaborationsView extends SessionManagerView
return new CollaborationsPane(parent, CollaborationsView.this);
}
};
- }
- @Override
- protected void fillLocalToolBar(IToolBarManager manager)
- {
- getCollaborationsPane().fillLocalToolBar(manager);
- manager.add(new Separator());
- super.fillLocalToolBar(manager);
+ IActionBars bars = getViewSite().getActionBars();
+ bars.getMenuManager().add(new Separator());
+ bars.getToolBarManager().add(new Separator());
+ getCollaborationsPane().fillActionBars(bars);
+ return sashComposite;
}
@Override