Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-03-01 20:37:45 +0000
committerJean Michel-Lemieux2004-03-01 20:37:45 +0000
commiteff260473a7c5c9f71ffafd4cf7db79fab593533 (patch)
tree76c8fde865659af522316c37eeef286834df7b92
parent7dc7135f7a7410c68795e76340cc26e5db85ffcb (diff)
downloadeclipse.platform.team-eff260473a7c5c9f71ffafd4cf7db79fab593533.tar.gz
eclipse.platform.team-eff260473a7c5c9f71ffafd4cf7db79fab593533.tar.xz
eclipse.platform.team-eff260473a7c5c9f71ffafd4cf7db79fab593533.zip
Fixed working set not updating properly.
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java
index b74a28f53..5d1a80a49 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java
@@ -61,7 +61,7 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncInf
this.totalChanges = new StatusLineCLabelContribution(TOTALS_ID, TEXT_FIELD_MAX_SIZE);
this.workingSet = new StatusLineCLabelContribution(WORKINGSET_ID, TEXT_FIELD_MAX_SIZE);
this.workingSet.setTooltip(Policy.bind("StatisticsPanel.workingSetTooltip")); //$NON-NLS-1$
- updateWorkingSetText();
+ updateWorkingSetText(participant.getWorkingSet());
this.workingSet.addListener(SWT.MouseDoubleClick, new Listener() {
public void handleEvent(Event event) {
@@ -80,8 +80,7 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncInf
return participant.getSubscriber().getResourceComparator().isThreeWay();
}
- private void updateWorkingSetText() {
- IWorkingSet set = participant.getWorkingSet();
+ private void updateWorkingSetText(IWorkingSet set) {
if (set == null) {
workingSet.setText(Policy.bind("StatisticsPanel.noWorkingSet")); //$NON-NLS-1$
} else {
@@ -114,8 +113,8 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncInf
}
public void propertyChange(PropertyChangeEvent event) {
- if (event.getProperty().equals(SubscriberParticipant.P_SYNCVIEWPAGE_WORKINGSET)) {
- updateWorkingSetText();
+ if (event.getProperty().equals(SubscriberParticipant.P_SYNCVIEWPAGE_WORKINGSET)) {
+ updateWorkingSetText((IWorkingSet)event.getNewValue());
updateCounts();
}
}

Back to the top