Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-12-01 14:47:36 -0500
committerJean Michel-Lemieux2003-12-01 14:47:36 -0500
commite6c02bc22012db64fdc36f664f8df9569efff42c (patch)
tree8f44ad0bd28ae174dd677d8543b5634cce36d453
parentd569946860b9e5edd8e2de7dbedaf60991b6b7ea (diff)
downloadeclipse.platform.team-e6c02bc22012db64fdc36f664f8df9569efff42c.tar.gz
eclipse.platform.team-e6c02bc22012db64fdc36f664f8df9569efff42c.tar.xz
eclipse.platform.team-e6c02bc22012db64fdc36f664f8df9569efff42c.zip
Bug 47736 Synchronize view leaks 3 ImagesI20031202
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/StatusLineContributionGroup.java15
1 files changed, 11 insertions, 4 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 f9bb7786a..2e1f2fa7d 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
@@ -38,7 +38,11 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncSet
private StatusLineCLabelContribution outgoing;
private StatusLineCLabelContribution conflicting;
private StatusLineCLabelContribution workingSet;
-
+
+ private Image incomingImage = TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_INCOMING).createImage();
+ private Image outgoingImage = TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_OUTGOING).createImage();
+ private Image conflictingImage = TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_CONFLICTING).createImage();
+
private SubscriberInput input;
private TeamSubscriberParticipant participant;
@@ -46,9 +50,9 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncSet
super();
this.participant = participant;
this.input = participant.getInput();
- this.incoming = createStatusLineContribution(INCOMING_ID, TeamSubscriberParticipant.INCOMING_MODE, "0", TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_INCOMING).createImage()); //$NON-NLS-1$
- this.outgoing = createStatusLineContribution(OUTGOING_ID, TeamSubscriberParticipant.OUTGOING_MODE, "0", TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_OUTGOING).createImage()); //$NON-NLS-1$
- this.conflicting = createStatusLineContribution(CONFLICTING_ID, TeamSubscriberParticipant.CONFLICTING_MODE, "0", TeamUIPlugin.getImageDescriptor(ISharedImages.IMG_DLG_SYNC_CONFLICTING).createImage()); //$NON-NLS-1$
+ this.incoming = createStatusLineContribution(INCOMING_ID, TeamSubscriberParticipant.INCOMING_MODE, "0", incomingImage); //$NON-NLS-1$
+ this.outgoing = createStatusLineContribution(OUTGOING_ID, TeamSubscriberParticipant.OUTGOING_MODE, "0", outgoingImage); //$NON-NLS-1$
+ this.conflicting = createStatusLineContribution(CONFLICTING_ID, TeamSubscriberParticipant.CONFLICTING_MODE, "0", conflictingImage); //$NON-NLS-1$
this.workingSet = new StatusLineCLabelContribution(WORKINGSET_ID, 25);
this.workingSet.setTooltip(Policy.bind("StatisticsPanel.workingSetTooltip")); //$NON-NLS-1$
updateWorkingSetText();
@@ -99,6 +103,9 @@ public class StatusLineContributionGroup extends ActionGroup implements ISyncSet
public void dispose() {
input.deregisterListeners(this);
+ incomingImage.dispose();
+ outgoingImage.dispose();
+ conflictingImage.dispose();
}
/*

Back to the top