Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java
index 2c8736cac..354a0b7c4 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithTagAction.java
@@ -40,8 +40,8 @@ public class CompareWithTagAction extends WorkspaceTraversalAction {
@Override
public void execute(IAction action) throws InvocationTargetException, InterruptedException {
-
- // First, determine the tag to compare with
+
+ // First, determine the tag to compare with
IResource[] resources = getSelectedResources();
CVSTag tag = promptForTag(resources);
if (tag == null)
@@ -57,7 +57,7 @@ public class CompareWithTagAction extends WorkspaceTraversalAction {
}
}
- // Create a subscriber that can cover all projects involved
+ // Create a subscriber that can cover all projects involved
if (isShowModelSync()) {
final CVSCompareSubscriber compareSubscriber = new CVSCompareSubscriber(getProjects(resources), tag);
ResourceMapping[] mappings = getCVSResourceMappings();
@@ -80,12 +80,12 @@ public class CompareWithTagAction extends WorkspaceTraversalAction {
participant.run(getTargetPart());
} else {
CVSCompareSubscriber compareSubscriber = new CVSCompareSubscriber(getProjects(resources), tag);
- ResourceMapping[] resourceMappings = getCVSResourceMappings();
+ ResourceMapping[] resourceMappings = getCVSResourceMappings();
if (isLogicalModel(resourceMappings)) {
- compareSubscriber = new CVSCompareSubscriber(getProjects(resources), tag);
- resources = getResourcesToCompare(compareSubscriber);
- compareSubscriber.dispose();
- }
+ compareSubscriber = new CVSCompareSubscriber(getProjects(resources), tag);
+ resources = getResourcesToCompare(compareSubscriber);
+ compareSubscriber.dispose();
+ }
// create a subscriber specifically for the resources for display to the user
compareSubscriber = new CVSCompareSubscriber(resources, tag);
try {
@@ -104,11 +104,11 @@ public class CompareWithTagAction extends WorkspaceTraversalAction {
}
}
- private boolean isShowModelSync() {
+ private boolean isShowModelSync() {
return CVSUIPlugin.getPlugin().getPreferenceStore().getBoolean(ICVSUIConstants.PREF_ENABLE_MODEL_SYNC);
}
-
- protected CVSTag promptForTag(IResource[] resources) {
+
+ protected CVSTag promptForTag(IResource[] resources) {
CVSTag tag = TagSelectionDialog.getTagToCompareWith(getShell(), TagSource.create(resources), TagSelectionDialog.INCLUDE_ALL_TAGS);
return tag;
}
@@ -116,5 +116,5 @@ public class CompareWithTagAction extends WorkspaceTraversalAction {
@Override
protected boolean isEnabledForNonExistantResources() {
return true;
- }
+ }
}

Back to the top