summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-11 15:20:30 (EDT)
committerEike Stepper2007-10-11 15:20:30 (EDT)
commitb7716052b137cda7b49ddc53b4addaef67884400 (patch)
tree6cc86736729b65a7d674c62cde79f0ff3e498b41
parentaf057e2061b0c561d57387034f69c9301fd856d9 (diff)
downloadcdo-b7716052b137cda7b49ddc53b4addaef67884400.zip
cdo-b7716052b137cda7b49ddc53b4addaef67884400.tar.gz
cdo-b7716052b137cda7b49ddc53b4addaef67884400.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.java12
1 files changed, 7 insertions, 5 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 4e9dbbf..3c851a9 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
@@ -121,6 +121,8 @@ public class CollaborationsPane extends Composite implements IListener
IFacility facility = activeFacilities.get(collaboration);
setActiveFacility(collaboration, facility);
}
+
+ updateState();
}
public void setActiveFacility(IBuddyCollaboration collaboration, IFacility facility)
@@ -131,6 +133,8 @@ public class CollaborationsPane extends Composite implements IListener
FacilityPane facilityPane = facilityPanes.get(facility);
setActiveFacilityPane(facilityPane);
}
+
+ updateState();
}
protected void setActiveFacilityPane(FacilityPane newPane)
@@ -150,6 +154,8 @@ public class CollaborationsPane extends Composite implements IListener
newPane.showed(oldPane);
}
}
+
+ updateState();
}
public void fillActionBars(IActionBars bars)
@@ -215,13 +221,11 @@ public class CollaborationsPane extends Composite implements IListener
}
collaboration.addListener(this);
- updateState();
}
protected void collaborationRemoved(IBuddyCollaboration collaboration)
{
collaboration.removeListener(this);
- updateState();
}
protected void facilityInstalled(final IFacility facility, boolean fromRemote)
@@ -260,8 +264,6 @@ public class CollaborationsPane extends Composite implements IListener
setActiveCollaboration(collaboration);
setActiveFacility(collaboration, facility);
}
-
- updateState();
}
protected FacilityPane addFacilityPane(IFacility facility)
@@ -297,7 +299,7 @@ public class CollaborationsPane extends Composite implements IListener
throw new IllegalStateException("No facility pane creator for type " + type);
}
- protected void updateState()
+ public void updateState()
{
for (ActivateFacilityAction action : activateFacilityActions)
{