diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java index a2f04af3dbdd43bc603c0b11a7755933badccf16..80896163253a640110905b5f14d95a1e0377a4fd 100644 --- a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanBusHandler.java @@ -17,21 +17,25 @@ $Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.CanBus; import org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator; +import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; /** - * {@link ModelElementHandlerBase} for {@link CanBus}. + * {@link IModelElementHandler} for {@link CanBus}. * * @author eder * @author $Author: hoelzl $ * @version $Rev: 18709 $ * @ConQAT.Rating RED Hash: */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class CanBusHandler extends ModelElementHandlerBase<CanBus> { - /** {@inheritDoc} */ @Override public String getName(CanBus element) { @@ -45,4 +49,9 @@ public class CanBusHandler extends ModelElementHandlerBase<CanBus> { return AF3PlatformRaspberryUIActivator.getImageDescriptor("icons/can-logo.jpeg"); } + /** {@inheritDoc} */ + @Override + public List<EObject> getConnectors(CanBus element) { + return (List)element.getConnectors(); + } } diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java index 008d6854c8b495d8aa68c3829ea81e07628a31c4..d3a100a40ed6980ee21563323a7dc7383a520c47 100644 --- a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/CanConnectorHandler.java @@ -21,9 +21,11 @@ import static org.fortiss.af3.platform.ui.AF3PlatformUIActivator.getImageDescrip import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.CanConnector; +import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; /** + * {@link IModelElementHandler} for {@link CanConnector}. * * @author eder * @author $Author: hoelzl $ @@ -31,7 +33,6 @@ import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; * @ConQAT.Rating RED Hash: */ public class CanConnectorHandler extends ModelElementHandlerBase<CanConnector> { - /** {@inheritDoc} */ @Override public ImageDescriptor getIconImageDescriptor() { @@ -44,5 +45,4 @@ public class CanConnectorHandler extends ModelElementHandlerBase<CanConnector> { String name = element.getName(); return name != null ? name : "CanConnector"; } - } diff --git a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java index 1c6fe05bba31d8ada6b53780e824377f5ba08296..f924ed2e1a4fd9c175a05c16464d37c8b170ad03 100644 --- a/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java +++ b/org.fortiss.af3.platform.raspberry.ui/trunk/src/org/fortiss/af3/platform/raspberry/ui/handler/RaspberryPiHandler.java @@ -17,21 +17,25 @@ $Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $ +--------------------------------------------------------------------------*/ package org.fortiss.af3.platform.raspberry.ui.handler; +import java.util.List; + +import org.eclipse.emf.ecore.EObject; import org.eclipse.jface.resource.ImageDescriptor; import org.fortiss.af3.platform.raspberry.model.RaspberryPi; import org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator; +import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler; import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase; /** - * {@link ModelElementHandlerBase} for {@link RaspberryPi}. + * {@link IModelElementHandler} for {@link RaspberryPi}. * * @author eder * @author $Author: hoelzl $ * @version $Rev: 18709 $ * @ConQAT.Rating RED Hash: */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class RaspberryPiHandler extends ModelElementHandlerBase<RaspberryPi> { - /** {@inheritDoc} */ @Override public String getName(RaspberryPi element) { @@ -45,4 +49,9 @@ public class RaspberryPiHandler extends ModelElementHandlerBase<RaspberryPi> { return AF3PlatformRaspberryUIActivator.getImageDescriptor("icons/raspberry-pi-logo.png"); } + /** {@inheritDoc} */ + @Override + public List<EObject> getConnectors(RaspberryPi element) { + return (List)element.getConnectors(); + } }