Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Jongman2018-05-31 21:46:06 +0000
committerLars Vogel2018-06-01 07:37:37 +0000
commit5f27cfac56c91fea26086a4407deebb9026e758f (patch)
treef0a7815a39d08e4346731c6346ca98ae0b08e085 /org.eclipse.tips.core
parent111beba2e64ca82a171a007df7804a82ba10849d (diff)
downloadeclipse.platform.ua-5f27cfac56c91fea26086a4407deebb9026e758f.tar.gz
eclipse.platform.ua-5f27cfac56c91fea26086a4407deebb9026e758f.tar.xz
eclipse.platform.ua-5f27cfac56c91fea26086a4407deebb9026e758f.zip
Bug 535391 - [Tips] Do not open tips on startup if there are no new tipsI20180601-0915I20180601-0900
* Tip Dialog is not shown on startup if there or no new tips * Improved logging/tracing * Load check method had a timing problem Change-Id: Ic7df5eb0649f73857b7c42c6b36f3f7210f8af4d Signed-off-by: Wim Jongman <wim.jongman@remainsoftware.com>
Diffstat (limited to 'org.eclipse.tips.core')
-rw-r--r--org.eclipse.tips.core/src/org/eclipse/tips/core/ITipManager.java8
-rw-r--r--org.eclipse.tips.core/src/org/eclipse/tips/core/internal/TipManager.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.tips.core/src/org/eclipse/tips/core/ITipManager.java b/org.eclipse.tips.core/src/org/eclipse/tips/core/ITipManager.java
index 16007f3fc..8e2e64983 100644
--- a/org.eclipse.tips.core/src/org/eclipse/tips/core/ITipManager.java
+++ b/org.eclipse.tips.core/src/org/eclipse/tips/core/ITipManager.java
@@ -84,10 +84,10 @@ public interface ITipManager {
public boolean isOpen();
/**
- * Indicates if this manager has providers with tips (based on the read or
- * unread requirement). Be aware that subsequent calls to this method may return
- * different results based on the async nature of loading providers.
- *
+ * Indicates if this manager has providers with unread tips. Be aware that
+ * subsequent calls to this method may return different results based on the
+ * async nature of loading providers.
+ *
* @return true if this {@link TipManager} has providers with tips.
* @see TipProvider#getTips()
*/
diff --git a/org.eclipse.tips.core/src/org/eclipse/tips/core/internal/TipManager.java b/org.eclipse.tips.core/src/org/eclipse/tips/core/internal/TipManager.java
index f8bb83f7e..f466dd330 100644
--- a/org.eclipse.tips.core/src/org/eclipse/tips/core/internal/TipManager.java
+++ b/org.eclipse.tips.core/src/org/eclipse/tips/core/internal/TipManager.java
@@ -275,7 +275,7 @@ public abstract class TipManager implements ITipManager {
@Override
public boolean hasContent() {
for (TipProvider provider : getProviders()) {
- if (provider.isReady() && !provider.getTips().isEmpty()) {
+ if (provider.isReady() && !provider.getTips(tip -> !isRead(tip)).isEmpty()) {
return true;
}
}

Back to the top