summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-11-09 11:49:51 (EST)
committerEike Stepper2007-11-09 11:49:51 (EST)
commita17a603d3d76a537749e5be3d40092c75f616ed2 (patch)
tree14ade0192c1c0b6ca0c7d486111440b9eecbb4d3
parentcb27450c5193b06170b67036ebeca7dd86bf9f74 (diff)
downloadcdo-a17a603d3d76a537749e5be3d40092c75f616ed2.zip
cdo-a17a603d3d76a537749e5be3d40092c75f616ed2.tar.gz
cdo-a17a603d3d76a537749e5be3d40092c75f616ed2.tar.bz2
[209346] Provide Fileshare example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=209346
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/FacilityPane.java12
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java4
2 files changed, 12 insertions, 4 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 53741eb..be6c3fc 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
@@ -35,13 +35,16 @@ public abstract class FacilityPane extends Composite implements IListener
{
private IFacility facility;
+ private CollaborationsPane collaborationsPane;
+
private CoolBarManager coolBarManager;
private Control control;
- public FacilityPane(Composite parent, int style)
+ public FacilityPane(CollaborationsPane collaborationsPane, int style)
{
- super(parent, style);
+ super(collaborationsPane, style);
+ this.collaborationsPane = collaborationsPane;
setLayout(new FacilityPaneLayout());
ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT | SWT.RIGHT | SWT.WRAP);
@@ -79,6 +82,11 @@ public abstract class FacilityPane extends Composite implements IListener
facility.addListener(this);
}
+ public CollaborationsPane getCollaborationsPane()
+ {
+ return collaborationsPane;
+ }
+
public ICoolBarManager getCoolBarManager()
{
return coolBarManager;
diff --git a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java
index 87dfc85..2072296 100644
--- a/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java
+++ b/plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java
@@ -10,10 +10,10 @@
**************************************************************************/
package org.eclipse.net4j.buddies.ui;
+import org.eclipse.net4j.buddies.internal.ui.views.CollaborationsPane;
import org.eclipse.net4j.buddies.internal.ui.views.FacilityPane;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.widgets.Composite;
/**
* @author Eike Stepper
@@ -24,5 +24,5 @@ public interface IFacilityPaneCreator
public ImageDescriptor getImageDescriptor();
- public FacilityPane createPane(Composite parent, int style);
+ public FacilityPane createPane(CollaborationsPane collaborationsPane, int style);
}