Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-06 19:16:22 +0000
committerMichael Valenta2005-05-06 19:16:22 +0000
commit9df793292ee948e54f949e7891c9e26c45e28686 (patch)
treedcab24b3d954883472f3558db5c63bd5adc9747c
parent4247afbe87ab4f0a7274987ed5b020b02706eee5 (diff)
downloadeclipse.platform.team-9df793292ee948e54f949e7891c9e26c45e28686.tar.gz
eclipse.platform.team-9df793292ee948e54f949e7891c9e26c45e28686.tar.xz
eclipse.platform.team-9df793292ee948e54f949e7891c9e26c45e28686.zip
Bug 93962 Synchronize view should persist settings agressively
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeView.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeView.java
index fadeca662..94d6761f8 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeView.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/SynchronizeView.java
@@ -205,14 +205,21 @@ public class SynchronizeView extends PageBookView implements ISynchronizeView, I
fPinAction.dispose();
// Remember the last active participant
if(activeParticipantRef != null) {
- IDialogSettings section = getDialogSettings();
- section.put(KEY_LAST_ACTIVE_PARTICIPANT_ID, activeParticipantRef.getId());
- section.put(KEY_LAST_ACTIVE_PARTICIPANT_SECONDARY_ID, activeParticipantRef.getSecondaryId());
+ rememberCurrentParticipant();
}
fParticipantToPart = null;
fPartToParticipant = null;
}
+ /**
+ *
+ */
+ private void rememberCurrentParticipant() {
+ IDialogSettings section = getDialogSettings();
+ section.put(KEY_LAST_ACTIVE_PARTICIPANT_ID, activeParticipantRef.getId());
+ section.put(KEY_LAST_ACTIVE_PARTICIPANT_SECONDARY_ID, activeParticipantRef.getSecondaryId());
+ }
+
/* (non-Javadoc)
* @see org.eclipse.ui.part.PageBookView#createDefaultPage(org.eclipse.ui.part.PageBook)
*/
@@ -330,6 +337,7 @@ public class SynchronizeView extends PageBookView implements ISynchronizeView, I
if (part != null) {
partActivated(part);
fPageDropDown.update();
+ rememberCurrentParticipant();
}
}

Back to the top