summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 04:11:59 (EDT)
committerEike Stepper2007-10-11 04:11:59 (EDT)
commitfdf9ed446555cbbbddda314a156535188c504a94 (patch)
tree2e83e8f29b8a0d8103ff65492dd34b2b4dd9ad1e
parent0fd9442436a57fec5fc17e22afe4daf14d2e19e0 (diff)
downloadcdo-fdf9ed446555cbbbddda314a156535188c504a94.zip
cdo-fdf9ed446555cbbbddda314a156535188c504a94.tar.gz
cdo-fdf9ed446555cbbbddda314a156535188c504a94.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.java11
-rw-r--r--plugins/org.eclipse.net4j.util.ui/src/org/eclipse/net4j/util/ui/views/ContainerView.java3
2 files changed, 13 insertions, 1 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 d0ea9e1..c4335d8 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
@@ -22,9 +22,12 @@ import org.eclipse.swt.widgets.List;
*/
public class CollaborationsPane extends Composite
{
- public CollaborationsPane(CollaborationsView collaborationsView, Composite parent)
+ private CollaborationsView viewPart;
+
+ public CollaborationsPane(CollaborationsView viewPart, Composite parent)
{
super(parent, SWT.NONE);
+ this.viewPart = viewPart;
setLayout(UIUtil.createGridLayout(1));
List list = new List(this, SWT.NONE);
@@ -34,4 +37,10 @@ public class CollaborationsPane extends Composite
list.add(facilityType);
}
}
+
+ public CollaborationsView getViewPart()
+ {
+ return viewPart;
+ }
+
}
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 9c5f6ab..1014b5b 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,18 +209,21 @@ 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));
}