diff options
author | Michael Valenta | 2003-07-03 18:29:14 +0000 |
---|---|---|
committer | Michael Valenta | 2003-07-03 18:29:14 +0000 |
commit | 4ccc0d77779536807c46111c2dcce40f93fd2797 (patch) | |
tree | 59c93edbcb15ae9a51cb04742590f6d2c458185f /bundles/org.eclipse.team.cvs.ui/src | |
parent | 588b38492b203812d63c1f3b7216620ee1ae20c5 (diff) | |
download | eclipse.platform.team-4ccc0d77779536807c46111c2dcce40f93fd2797.tar.gz eclipse.platform.team-4ccc0d77779536807c46111c2dcce40f93fd2797.tar.xz eclipse.platform.team-4ccc0d77779536807c46111c2dcce40f93fd2797.zip |
39109: Show in resource history should focus on current revision
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java | 6 |
1 files changed, 4 insertions, 2 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 791b536c3..2bbb38c2b 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 @@ -550,6 +550,7 @@ public class HistoryView extends ViewPart { historyTableProvider.setFile(remoteFile); tableViewer.setInput(remoteFile); setTitle(Policy.bind("HistoryView.titleWithArgument", remoteFile.getName())); //$NON-NLS-1$ + selectRevision(remoteFile.getRevision()); } catch (TeamException e) { CVSUIPlugin.openError(getViewSite().getShell(), null, null, e); } @@ -575,9 +576,10 @@ public class HistoryView extends ViewPart { historyTableProvider.setFile(remoteFile); tableViewer.setInput(remoteFile); setTitle(Policy.bind("HistoryView.titleWithArgument", remoteFile.getName())); //$NON-NLS-1$ - } catch (CVSException e) { + selectRevision(remoteFile.getRevision()); + } catch (TeamException e) { CVSUIPlugin.openError(getViewSite().getShell(), null, null, e); - } + } } private Action getContextMenuAction(String title, final boolean needsProgressDialog, final IWorkspaceRunnable action) { |