Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Goubet2013-06-24 03:30:03 -0400
committerGerrit Code Review @ Eclipse.org2013-06-24 04:04:18 -0400
commit1f415093b247995fd0d474227dd6420f3ac0ff9a (patch)
tree6e975de357090f188d6e66cea73110feb4791354
parent738c3a03988748beee5d7aae013dfff82522193f (diff)
downloadorg.eclipse.emf.compare-1f415093b247995fd0d474227dd6420f3ac0ff9a.tar.gz
org.eclipse.emf.compare-1f415093b247995fd0d474227dd6420f3ac0ff9a.tar.xz
org.eclipse.emf.compare-1f415093b247995fd0d474227dd6420f3ac0ff9a.zip
Do not log warning when there are not potential coherence issues
-rw-r--r--plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/logical/ProjectModelResolver.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/logical/ProjectModelResolver.java b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/logical/ProjectModelResolver.java
index a0f88fd8e..38ee7e6d4 100644
--- a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/logical/ProjectModelResolver.java
+++ b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/logical/ProjectModelResolver.java
@@ -198,10 +198,12 @@ public class ProjectModelResolver extends LogicalModelResolver {
}
}
- final String message = EMFCompareIDEUIMessages.getString("ModelResolver.coherenceWarning"); //$NON-NLS-1$
- final String details = Iterables.toString(coherenceThreats);
- EMFCompareIDEUIPlugin.getDefault().getLog().log(
- new Status(IStatus.WARNING, EMFCompareIDEUIPlugin.PLUGIN_ID, message + '\n' + details));
+ if (!coherenceThreats.isEmpty()) {
+ final String message = EMFCompareIDEUIMessages.getString("ModelResolver.coherenceWarning"); //$NON-NLS-1$
+ final String details = Iterables.toString(coherenceThreats);
+ EMFCompareIDEUIPlugin.getDefault().getLog().log(
+ new Status(IStatus.WARNING, EMFCompareIDEUIPlugin.PLUGIN_ID, message + '\n' + details));
+ }
}
/**

Back to the top