summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 15:10:51 (EDT)
committerEike Stepper2007-10-11 15:10:51 (EDT)
commit8ec802571afd9d6d394ff4f77eadc3e555c27266 (patch)
tree47a7325e45b6897aaa7e88221eb5a1d935ab0d4f
parentf3c4ef6c57cedef17d5f343461c7e53cde97af66 (diff)
downloadcdo-8ec802571afd9d6d394ff4f77eadc3e555c27266.zip
cdo-8ec802571afd9d6d394ff4f77eadc3e555c27266.tar.gz
cdo-8ec802571afd9d6d394ff4f77eadc3e555c27266.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.java5
-rw-r--r--plugins/org.eclipse.net4j.buddies.ui/src/org/eclipse/net4j/buddies/internal/ui/views/CollaborationsView.java10
2 files changed, 12 insertions, 3 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 787756e..1580c48 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
@@ -311,11 +311,10 @@ public class CollaborationsPane extends Composite implements IListener
else
{
String type = action.getType();
- boolean installed = activeCollaboration.getFacility(type) != null;
- action.setEnabled(!installed);
+ action.setEnabled(activeCollaboration.getFacility(type) != null);
IFacility activeFacility = activeFacilities.get(activeCollaboration);
- action.setChecked(ObjectUtil.equals(activeFacility.getType(), type));
+ action.setChecked(activeFacility != null && ObjectUtil.equals(activeFacility.getType(), type));
}
}
}
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 06a02fe..a910c83 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
@@ -118,6 +118,16 @@ public class CollaborationsView extends SessionManagerView
}
@Override
+ protected void doubleClicked(Object object)
+ {
+ if (object instanceof IBuddyCollaboration)
+ {
+ IBuddyCollaboration collaboration = (IBuddyCollaboration)object;
+ getCollaborationsPane().setActiveCollaboration(collaboration);
+ }
+ }
+
+ @Override
protected IContainer<?> getContainer()
{
return getSession() != null ? getSession().getSelf() : ContainerUtil.emptyContainer();