Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-24 15:31:13 +0000
committerMichael Valenta2005-05-24 15:31:13 +0000
commit52c7d621f3d138e9e59dedf868741635b9727475 (patch)
tree91acd97737fa12d79111606fb7b1b63012b346ac
parente31c42d8324160bb59f3f3049c79f2c1618da4b2 (diff)
downloadeclipse.platform.team-52c7d621f3d138e9e59dedf868741635b9727475.tar.gz
eclipse.platform.team-52c7d621f3d138e9e59dedf868741635b9727475.tar.xz
eclipse.platform.team-52c7d621f3d138e9e59dedf868741635b9727475.zip
Bug 96016 "Tag with existing" works after the second try only
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java27
1 files changed, 19 insertions, 8 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
index 5890f96c8..dbf3e0098 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
@@ -42,7 +42,7 @@ import org.eclipse.team.internal.ccvs.core.client.Command;
import org.eclipse.team.internal.ccvs.core.client.Update;
import org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot;
import org.eclipse.team.internal.ccvs.ui.actions.*;
-import org.eclipse.team.internal.ccvs.ui.operations.UpdateOperation;
+import org.eclipse.team.internal.ccvs.ui.operations.*;
import org.eclipse.team.internal.ui.Utils;
import org.eclipse.team.ui.synchronize.SyncInfoCompareInput;
import org.eclipse.ui.*;
@@ -281,18 +281,29 @@ public class HistoryView extends ViewPart {
}
return resources;
}
+ /*
+ * Override the creation of the tag operation in order to support
+ * the refresh of the view after the tag operation completes
+ */
+ protected ITagOperation createTagOperation() {
+ return new TagInRepositoryOperation(getTargetPart(), getSelectedRemoteResources()) {
+ public void execute(IProgressMonitor monitor) throws CVSException, InterruptedException {
+ super.execute(monitor);
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ if( ! wasCancelled()) {
+ refresh();
+ }
+ }
+ });
+ };
+ };
+ }
};
tagWithExistingAction = getContextMenuAction(CVSUIMessages.HistoryView_tagWithExistingAction, false /* no progress */, new IWorkspaceRunnable() { //$NON-NLS-1$
public void run(IProgressMonitor monitor) throws CoreException {
tagActionDelegate.selectionChanged(tagWithExistingAction, tableViewer.getSelection());
tagActionDelegate.run(tagWithExistingAction);
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- if( ! ((MoveRemoteTagAction)tagActionDelegate).wasCancelled()) {
- refresh();
- }
- }
- });
}
});
WorkbenchHelp.setHelp(getRevisionAction, IHelpContextIds.TAG_WITH_EXISTING_ACTION);

Back to the top