summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-15 05:39:14 (EDT)
committerEike Stepper2007-10-15 05:39:14 (EDT)
commite39dd36e20d6e0c78530f9aae17101b4b2b0c201 (patch)
tree5aa6ff03811563449322f831f568ce97b1111e6f
parent93955039db9f4ef6604c4b6b90b6513469223a7b (diff)
downloadcdo-e39dd36e20d6e0c78530f9aae17101b4b2b0c201.zip
cdo-e39dd36e20d6e0c78530f9aae17101b4b2b0c201.tar.gz
cdo-e39dd36e20d6e0c78530f9aae17101b4b2b0c201.tar.bz2
[206224] Provide chat example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206224
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java20
1 files changed, 14 insertions, 6 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java
index 5b888a2..fddbb3a 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java
@@ -13,6 +13,7 @@ package org.eclipse.net4j.buddies.internal.ui.views;
import org.eclipse.jface.action.CoolBarManager;
import org.eclipse.jface.action.IContributionManager;
import org.eclipse.jface.action.ICoolBarManager;
+import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
@@ -27,6 +28,8 @@ import org.eclipse.swt.widgets.Layout;
*/
public abstract class FacilityPane extends Composite
{
+ // private CoolBar coolBar;
+
private CoolBarManager coolBarManager;
private Label separator;
@@ -38,6 +41,17 @@ public abstract class FacilityPane extends Composite
super(parent, style);
setLayout(new FacilityPaneLayout());
+ // coolBar = new CoolBar(this, SWT.FLAT | SWT.RIGHT | SWT.WRAP);
+ // coolBar.setEnabled(true);
+
+ ToolBarManager toolBarManager = new ToolBarManager(SWT.NONE);
+ fillCoolBar(toolBarManager);
+
+ coolBarManager = new CoolBarManager(SWT.FLAT | SWT.RIGHT | SWT.WRAP);
+ coolBarManager.add(toolBarManager);
+ coolBarManager.createControl(this);
+ coolBarManager.update(true);
+
if (showTopSeperator())
{
separator = new Label(this, SWT.SEPARATOR | SWT.HORIZONTAL);
@@ -45,12 +59,6 @@ public abstract class FacilityPane extends Composite
Composite composite = new Composite(this, SWT.NONE);
control = createUI(composite);
-
- coolBarManager = new CoolBarManager(SWT.FLAT | SWT.RIGHT | SWT.WRAP);
- fillCoolBar(coolBarManager);
- coolBarManager.createControl(this);
- coolBarManager.resetItemOrder();
- coolBarManager.update(true);
}
@Override