From eff260473a7c5c9f71ffafd4cf7db79fab593533 Mon Sep 17 00:00:00 2001 From: Jean Michel-Lemieux Date: Mon, 1 Mar 2004 20:37:45 +0000 Subject: Fixed working set not updating properly. --- .../ui/synchronize/actions/StatusLineContributionGroup.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bundles/org.eclipse.team.ui/src') 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(); } } -- cgit v1.2.3