Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2012-09-07 10:01:43 +0000
committerDani Megert2012-09-07 10:01:43 +0000
commita8124db84b5c192d1dfc2b52bcdaa4b9bde5bf4a (patch)
treed2074c0852f9be8311c55a46d932012e0449524b
parentaea59eb88747b76eb5105090d99025d582e3d80e (diff)
downloadeclipse.platform.team-integration.tar.gz
eclipse.platform.team-integration.tar.xz
eclipse.platform.team-integration.zip
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java3
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$

Back to the top