Bug 551853 - Customizing the error overlay icon of the tree master view
via template model does not work

Added support to customize the icon via template.

Change-Id: I284cc3e7c626e3a106b29c90cff57c87855bbe65
Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
diff --git a/bundles/org.eclipse.emf.ecp.view.treemasterdetail.ui.swt/src/org/eclipse/emf/ecp/view/spi/treemasterdetail/ui/swt/TreeMasterDetailSWTRenderer.java b/bundles/org.eclipse.emf.ecp.view.treemasterdetail.ui.swt/src/org/eclipse/emf/ecp/view/spi/treemasterdetail/ui/swt/TreeMasterDetailSWTRenderer.java
index 3b3bb3e..e1ef08a 100644
--- a/bundles/org.eclipse.emf.ecp.view.treemasterdetail.ui.swt/src/org/eclipse/emf/ecp/view/spi/treemasterdetail/ui/swt/TreeMasterDetailSWTRenderer.java
+++ b/bundles/org.eclipse.emf.ecp.view.treemasterdetail.ui.swt/src/org/eclipse/emf/ecp/view/spi/treemasterdetail/ui/swt/TreeMasterDetailSWTRenderer.java
@@ -1200,8 +1200,8 @@
 					}
 				}
 			}
-			final ImageDescriptor overlay = SWTValidationHelper.INSTANCE
-				.getValidationOverlayDescriptor(highestSeverity);
+			final ImageDescriptor overlay = SWTValidationHelper.INSTANCE.getValidationOverlayDescriptor(highestSeverity,
+				getVElement(), getViewModelContext());
 			if (overlay == null) {
 				return image;
 			}