diff options
author | Dani Megert | 2012-09-07 10:01:43 +0000 |
---|---|---|
committer | Dani Megert | 2012-09-07 10:01:43 +0000 |
commit | a8124db84b5c192d1dfc2b52bcdaa4b9bde5bf4a (patch) | |
tree | d2074c0852f9be8311c55a46d932012e0449524b | |
parent | aea59eb88747b76eb5105090d99025d582e3d80e (diff) | |
download | eclipse.platform.team-a8124db84b5c192d1dfc2b52bcdaa4b9bde5bf4a.tar.gz eclipse.platform.team-a8124db84b5c192d1dfc2b52bcdaa4b9bde5bf4a.tar.xz eclipse.platform.team-a8124db84b5c192d1dfc2b52bcdaa4b9bde5bf4a.zip |
Don't destroy selection when getting focusv20120907-100143I20121002-0800I20120925-0800I20120920-1300I20120919-2000I20120919-0800I20120919-0330I20120918-2200I20120918-2000I20120918-0800I20120917-2000I20120917-0800I20120916-2000I20120911-1000integration
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java index 1a2109575..29be3085b 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java @@ -458,7 +458,7 @@ public class GenericHistoryView extends PageBookView implements IHistoryView, IP } public void setFocus() { - if (isLinkingEnabled()) { + if (isLinkingEnabled() && lastSelectedElement != null) { showLastSelectedElement(); } getCurrentPage().setFocus(); @@ -505,6 +505,7 @@ public class GenericHistoryView extends PageBookView implements IHistoryView, IP } public IHistoryPage showHistoryPageFor(Object object, boolean refresh, boolean force, IHistoryPageSource pageSource) { + lastSelectedElement= null; if (Policy.DEBUG_HISTORY) { String time = new SimpleDateFormat("m:ss.SSS").format(new Date(System.currentTimeMillis())); //$NON-NLS-1$ System.out.println(time + ": GenericHistoryView#showHistoryPageFor, the object to show is: " + object); //$NON-NLS-1$ |