Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-11-30 21:13:31 +0000
committerMichael Valenta2006-11-30 21:13:31 +0000
commitd6337c3945f4d88753676942dfa1b44ef44b606f (patch)
treeade6a2d4cd3cb26449f7f97988a7de8d914da7ed /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java
parent5d67a7ff1d70a134a64e44d7b15300a0f6b29dbd (diff)
downloadeclipse.platform.team-d6337c3945f4d88753676942dfa1b44ef44b606f.tar.gz
eclipse.platform.team-d6337c3945f4d88753676942dfa1b44ef44b606f.tar.xz
eclipse.platform.team-d6337c3945f4d88753676942dfa1b44ef44b606f.zip
Bug 163112 Show history brings two history views to the front
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java
index eee9fc56c..3fea8940f 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ShowResourceInHistoryAction.java
@@ -20,8 +20,8 @@ import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
import org.eclipse.team.internal.ccvs.ui.CVSUIMessages;
import org.eclipse.team.internal.ccvs.ui.ICVSUIConstants;
-import org.eclipse.team.internal.ui.history.GenericHistoryView;
-import org.eclipse.team.ui.history.IHistoryView;
+import org.eclipse.team.internal.ui.TeamUIPlugin;
+import org.eclipse.team.ui.TeamUI;
public class ShowResourceInHistoryAction extends WorkspaceAction {
/*
@@ -32,10 +32,7 @@ public class ShowResourceInHistoryAction extends WorkspaceAction {
public void run(IProgressMonitor monitor) throws InvocationTargetException {
IResource[] resources = getSelectedResources();
if (resources.length != 1) return;
- GenericHistoryView view = (GenericHistoryView)showView(IHistoryView.VIEW_ID);
- if (view != null) {
- view.itemDropped(resources[0],true);
- }
+ TeamUI.showHistoryFor(TeamUIPlugin.getActivePage(), resources[0]);
}
}, false /* cancelable */, PROGRESS_BUSYCURSOR);
}

Back to the top