Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-09-22 15:14:49 +0000
committerJean Michel-Lemieux2004-09-22 15:14:49 +0000
commite237550fc4c21db1b1997da938b060d28387c0a3 (patch)
treecdfd70a868e4bffe98c42c3dd7708fb3e431d946
parentccb7b157f1cdbe2b10713462a11edb6f079fa55b (diff)
downloadeclipse.platform.team-e237550fc4c21db1b1997da938b060d28387c0a3.tar.gz
eclipse.platform.team-e237550fc4c21db1b1997da938b060d28387c0a3.tar.xz
eclipse.platform.team-e237550fc4c21db1b1997da938b060d28387c0a3.zip
Don't prompt for saving dirty editors when manipulating commit sets
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelProvider.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelProvider.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelProvider.java
index 421ca1fa1..4a5319f3e 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelProvider.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelProvider.java
@@ -12,7 +12,6 @@ package org.eclipse.team.internal.ccvs.ui.subscriber;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
-
import org.eclipse.compare.structuremergeviewer.DiffNode;
import org.eclipse.compare.structuremergeviewer.IDiffElement;
import org.eclipse.core.resources.IFile;
@@ -136,6 +135,13 @@ public class ChangeLogModelProvider extends CompositeModelProvider implements IC
super(Policy.bind("ChangeLogModelProvider.0"), configuration); //$NON-NLS-1$
}
+ /* (non-Javadoc)
+ * @see org.eclipse.team.ui.synchronize.SynchronizeModelAction#needsToSaveDirtyEditors()
+ */
+ protected boolean needsToSaveDirtyEditors() {
+ return false;
+ }
+
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.SynchronizeModelAction#getSyncInfoFilter()
*/
@@ -247,6 +253,10 @@ public class ChangeLogModelProvider extends CompositeModelProvider implements IC
return OUTGOING_FILE_FILTER;
}
+ protected boolean needsToSaveDirtyEditors() {
+ return false;
+ }
+
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.SynchronizeModelAction#getSubscriberOperation(org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration, org.eclipse.compare.structuremergeviewer.IDiffElement[])
*/
@@ -290,7 +300,7 @@ public class ChangeLogModelProvider extends CompositeModelProvider implements IC
new SyncInfoDirectionFilter(new int[] { SyncInfo.INCOMING, SyncInfo.CONFLICTING })
});
}
-
+
/* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.SynchronizeModelAction#updateSelection(org.eclipse.jface.viewers.IStructuredSelection)
*/

Back to the top