From 06c8d268f04bf184f57b995be91bcb099b2e8dab Mon Sep 17 00:00:00 2001
From: Vincent Aravantinos <aravantinos@fortiss.org>
Date: Thu, 14 Jul 2016 14:17:01 +0000
Subject: [PATCH] adapts KISS interface to the change refs 2553

---
 ...tionUIServiceIntrospectionDetailsItem.java | 29 ++++++++++++++-----
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/introspection/items/ConstraintVerificationUIServiceIntrospectionDetailsItem.java b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/introspection/items/ConstraintVerificationUIServiceIntrospectionDetailsItem.java
index c6fba7ed7..57aa2e253 100644
--- a/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/introspection/items/ConstraintVerificationUIServiceIntrospectionDetailsItem.java
+++ b/org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/internal/introspection/items/ConstraintVerificationUIServiceIntrospectionDetailsItem.java
@@ -17,12 +17,12 @@ $Id$
 +--------------------------------------------------------------------------*/
 package org.fortiss.tooling.kernel.ui.internal.introspection.items;
 
-import java.util.List;
+import static java.util.Collections.unmodifiableSet;
+
+import java.util.Collection;
 import java.util.Map;
 
 import org.fortiss.tooling.kernel.introspection.IIntrospectionDetailsItem;
-import org.fortiss.tooling.kernel.introspection.items.EObjectAwareIntrospectionDetailsItemBase;
-import org.fortiss.tooling.kernel.model.constraints.IConstraint;
 import org.fortiss.tooling.kernel.ui.extension.IConstraintVerifierUI;
 import org.fortiss.tooling.kernel.ui.service.IConstraintVerificationUIService;
 
@@ -32,14 +32,27 @@ import org.fortiss.tooling.kernel.ui.service.IConstraintVerificationUIService;
  * @author hoelzl
  * @author $Author$
  * @version $Rev$
- * @ConQAT.Rating YELLOW Hash: 2C1421E2DD2D991E6BCA5F0936309CF6
+ * @ConQAT.Rating YELLOW Hash: 084584C0687A698FDB75F67E9C2ADA9A
  */
-public final class ConstraintVerificationUIServiceIntrospectionDetailsItem extends
-		EObjectAwareIntrospectionDetailsItemBase<IConstraintVerifierUI<IConstraint>> {
+public final class ConstraintVerificationUIServiceIntrospectionDetailsItem implements
+		IIntrospectionDetailsItem {
+
+	/** Read-only copy of the services handler list. */
+	protected final Map<String, IConstraintVerifierUI> handlerMap;
 
 	/** Constructor. */
 	public ConstraintVerificationUIServiceIntrospectionDetailsItem(
-			Map<Class<?>, List<IConstraintVerifierUI<IConstraint>>> handlerMap) {
-		super(handlerMap);
+			Map<String, IConstraintVerifierUI> handlerMap) {
+		this.handlerMap = handlerMap;
+	}
+
+	/** Returns the first registration classes. */
+	public Collection<String> getHandlerKeyClasses() {
+		return unmodifiableSet(handlerMap.keySet());
+	}
+
+	/** Returns the handler list for the given registration class. */
+	public IConstraintVerifierUI getHandler(String regClass) {
+		return handlerMap.get(regClass);
 	}
 }
-- 
GitLab