summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-13 05:20:10 (EDT)
committerEike Stepper2007-10-13 05:20:10 (EDT)
commit8a64da6f6616b385ff4b104e4aae075a142df3ba (patch)
tree6fc58cb0b94f1982ceed1b84dbba9703c92c07b6
parentcd323ea531e87aa2f4459182779106361c660529 (diff)
downloadcdo-8a64da6f6616b385ff4b104e4aae075a142df3ba.zip
cdo-8a64da6f6616b385ff4b104e4aae075a142df3ba.tar.gz
cdo-8a64da6f6616b385ff4b104e4aae075a142df3ba.tar.bz2
[206223] Provide collaborations example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206223
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java10
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/ui/IFacilityPaneCreator.java7
2 files changed, 10 insertions, 7 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 0de91c2..ddae433 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
@@ -123,7 +123,7 @@ public class CollaborationsView extends SessionManagerView
String type = c.getType();
if (collaboration.getFacility(type) == null)
{
- IAction action = new InstallFacilityAction(collaboration, type, c.getImageDescriptor());
+ IAction action = new StartFacilityAction(collaboration, type, c.getImageDescriptor());
manager.add(action);
}
}
@@ -192,16 +192,16 @@ public class CollaborationsView extends SessionManagerView
/**
* @author Eike Stepper
*/
- private final class InstallFacilityAction extends SafeAction
+ private final class StartFacilityAction extends SafeAction
{
private final String type;
private IBuddyCollaboration collaboration;
- private InstallFacilityAction(IBuddyCollaboration collaboration, String type, ImageDescriptor descriptor)
+ private StartFacilityAction(IBuddyCollaboration collaboration, String type, ImageDescriptor descriptor)
{
- super("Install " + StringUtil.cap(type), AS_RADIO_BUTTON);
- setToolTipText("Install " + type + " facility");
+ super("Start " + StringUtil.cap(type), AS_RADIO_BUTTON);
+ setToolTipText("Start a " + type + " facility");
setImageDescriptor(descriptor);
this.collaboration = collaboration;
this.type = type;
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 67892ac..87dfc85 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
@@ -12,6 +12,7 @@ package org.eclipse.net4j.buddies.ui;
import org.eclipse.net4j.buddies.internal.ui.views.FacilityPane;
+import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.widgets.Composite;
/**
@@ -19,7 +20,9 @@ import org.eclipse.swt.widgets.Composite;
*/
public interface IFacilityPaneCreator
{
- public String getFacilityType();
+ public String getType();
- public FacilityPane createFacilityPane(Composite parent, int style);
+ public ImageDescriptor getImageDescriptor();
+
+ public FacilityPane createPane(Composite parent, int style);
}