Commit ed35a9ff authored by Simon Barner's avatar Simon Barner

Provide FX icon by adapting to updated ModelElementHandlerBase interface

Issue-Ref: 3939
Issue-Url: https://af3-developer.fortiss.org/issues/3939Signed-off-by: Simon Barner's avatarSimon Barner <barner@fortiss.org>
parent 2ddd373f
BrickletHandler.java b6cde359fada87574eb13c36f25156d9462666fd GREEN
CameraInputHandler.java 67475aca10a7a6667cb2f6c060dfa4a0586f441a GREEN
CanBusHandler.java 8e6d767ed74a05fd40fe775890d28cf42c8c261a GREEN
CanConnectorHandler.java 569e9dd0ebd79ba9e71662c3a262c397e849d1e3 GREEN
ConsoleOutputHandler.java b0d1619021f53b8e0cd3889e274680765d6ce4b2 GREEN
ControlCenterDownstreamInputHandler.java baf54e50519afa93082490a0c96c6ced27b563f4 GREEN
ControlCenterUpstreamOutputHandler.java 163d378db0d5323104818578751e8de338613a81 GREEN
GamepadReceiverHandler.java 3b9b89e4dfbc4e27c9d2bfdc6eb90829f1473d93 GREEN
MotorControlInputHandler.java 198071db6a97e0742916d4f8bcd64cfcc2223187 GREEN
MotorControlOutputHandler.java bb944bce67761d2e89c5865a75d652dc790a7da3 GREEN
PWMActuatorHandler.java a1b0d87122b846b97b73007926eb940e949aea0d GREEN
RaspberryPiHandler.java d503b2bd802ff3ff4ced8391e83fb39452546d86 GREEN
RumblepadReceiverHandler.java 699bb9f21d32201e829f7e8ab07634e7bbca834f GREEN
V2VInputHandler.java 2ec71691162b5bdf57a52352e29da125e1e8cde9 GREEN
V2VOuputHandler.java 6abaecef646fc535d47a32f52350b1c0c4e2558f GREEN
BrickletHandler.java 7ab15d386267566598318cb8e0ef6ef6fe7f396f YELLOW
CameraInputHandler.java 9e2a9af5c50fd1479b1b6d1cc035ef013e90170c YELLOW
CanBusHandler.java 53e77684e286dc391037d11697c3a9c1ec1d630b YELLOW
CanConnectorHandler.java 70b38ae6101c4ca7287cf53b023f591f5270f0ab YELLOW
ConsoleOutputHandler.java cbd2aff4648b90cd3c02f24627ce93ae2b3cfcaf YELLOW
ControlCenterDownstreamInputHandler.java 787c2b0004b00dd72bd9f5236a3a9c75a0ceb53b YELLOW
ControlCenterUpstreamOutputHandler.java 2297194a767d4ea699bd9daa1e7b84dba3f6ad22 YELLOW
GamepadReceiverHandler.java 4f9b092e1eff13308abb1cc722e3f05f4ad5114d YELLOW
MotorControlInputHandler.java a0e486765b66a1aa2f986ed345550fce7b5e20f1 YELLOW
MotorControlOutputHandler.java 12aaed81f400acd87074a279ba5a3061b0bb6abb YELLOW
PWMActuatorHandler.java 3d393e244cc6847fe110abc78d57d8e4a8348bf7 YELLOW
RaspberryPiHandler.java ca52c65189230efaa147421f2240028ee814b036 YELLOW
RumblepadReceiverHandler.java 58d5a478d524fc0a4d380955c51543041465e258 YELLOW
V2VInputHandler.java 20e2710779a639f66d3d4a58e0002510f5f05872 YELLOW
V2VOuputHandler.java 9e7acead6b9ea2c1bc771123b1f0df606c7ce950 YELLOW
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -27,7 +26,13 @@ public class BrickletHandler extends NamedCommentedModelElementHandlerBase<UIDUn
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -27,7 +26,13 @@ public class CameraInputHandler extends NamedCommentedModelElementHandlerBase<UI
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,12 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
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.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -37,8 +36,14 @@ public class CanBusHandler extends ModelElementHandlerBase<CanBus> {
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/can-logo.jpeg");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(CanBus element) {
return "icons/can-logo.jpeg";
}
/** {@inheritDoc} */
......
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.ui.AF3PlatformUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
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;
......@@ -34,7 +33,13 @@ public class CanConnectorHandler extends ModelElementHandlerBase<CanConnector> {
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(CanConnector element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.ConsoleOutput;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class ConsoleOutputHandler extends NamedCommentedModelElementHandlerBase<
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.controlcenter.ControlCenterDownstreamInput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -29,7 +28,13 @@ public class ControlCenterDownstreamInputHandler
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.controlcenter.ControlCenterUpstreamOutput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -29,7 +28,13 @@ public class ControlCenterUpstreamOutputHandler
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.gamepad.GamepadReceiverBase;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class GamepadReceiverHandler extends NamedCommentedModelElementHandlerBas
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.motorcontrol.MotorControlInput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class MotorControlInputHandler extends NamedCommentedModelElementHandlerB
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.motorcontrol.MotorControlOutput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class MotorControlOutputHandler extends NamedCommentedModelElementHandler
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.ActuatorPWM;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class PWMActuatorHandler extends NamedCommentedModelElementHandlerBase<UI
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,12 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
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.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -37,8 +36,14 @@ public class RaspberryPiHandler extends ModelElementHandlerBase<RaspberryPi> {
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/raspberry-pi-logo.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(RaspberryPi element) {
return "icons/raspberry-pi-logo.png";
}
/** {@inheritDoc} */
......
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.rumblepad.RumblepadReceiverBase;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -28,7 +27,13 @@ public class RumblepadReceiverHandler extends NamedCommentedModelElementHandlerB
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/gamepad.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/gamepad.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VInput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -32,7 +31,13 @@ public class V2VInputHandler extends NamedCommentedModelElementHandlerBase<UIDUn
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.handler;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VOuput;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -32,7 +31,13 @@ public class V2VOuputHandler extends NamedCommentedModelElementHandlerBase<UIDUn
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
LightRunnerElementsHandler.java 6d7d65aeec9f75bcc35632d3d8af9b5b2c813ec6 GREEN
LightRunnerElementsHandler.java 8ddd992a38f839268cb99df7949a4275ecb00b4e YELLOW
LightRunnerProtoypeProvider.java 105cf1de751c39921650c1e9a9e4307dc63d542f GREEN
ProtoypeProvider.java 32fafd4113a5b23b1de8857eec17fe3ec11a27b3 GREEN
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.ui.prototype;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.getImageDescriptor;
import static org.fortiss.af3.platform.raspberry.ui.AF3PlatformRaspberryUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.platform.raspberry.model.brick.UIDUnit;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -27,7 +26,13 @@ public class LightRunnerElementsHandler extends NamedCommentedModelElementHandle
/** {@inheritDoc} */
@Override
public final ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/unknown.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(UIDUnit element) {
return "icons/unknown.png";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment