summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 04:19:07 (EDT)
committerEike Stepper2007-10-11 04:19:07 (EDT)
commit217c3570194277e87f46b9073fd2c00ed6b80f53 (patch)
treec11b9f81ddefdc359d3e26084948ac49c4af6949
parentfdf9ed446555cbbbddda314a156535188c504a94 (diff)
downloadcdo-217c3570194277e87f46b9073fd2c00ed6b80f53.zip
cdo-217c3570194277e87f46b9073fd2c00ed6b80f53.tar.gz
cdo-217c3570194277e87f46b9073fd2c00ed6b80f53.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/CollaborationsView.java11
-rw-r--r--plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java3
2 files changed, 11 insertions, 3 deletions
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 07010cf..e4aa063 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
@@ -14,6 +14,8 @@ import org.eclipse.net4j.util.container.ContainerUtil;
import org.eclipse.net4j.util.container.IContainer;
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;
@@ -51,6 +53,15 @@ public class CollaborationsView extends SessionManagerView
}
@Override
+ protected void fillLocalToolBar(IToolBarManager manager)
+ {
+ // manager.add(new AvailableAction());
+ // manager.add(new AwayAction());
+ manager.add(new Separator());
+ super.fillLocalToolBar(manager);
+ }
+
+ @Override
protected IContainer<?> getContainer()
{
return getSession() != null ? getSession().getSelf() : ContainerUtil.emptyContainer();
diff --git a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java
index 1014b5b..9c5f6ab 100644
--- a/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java
+++ b/plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java
@@ -209,21 +209,18 @@ public abstract class ContainerView extends ViewPart implements ISetSelectionTar
protected void fillLocalPullDown(IMenuManager manager)
{
- manager.add(new Separator());
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
manager.add(refreshAction);
}
protected void fillLocalToolBar(IToolBarManager manager)
{
- manager.add(new Separator());
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
protected void fillContextMenu(IMenuManager manager, ITreeSelection selection)
{
itemProvider.fillContextMenu(manager, selection);
- manager.add(new Separator());
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}