Commit db2bc652 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 2776914b
AllocationTableCollectionHandler.java d670d09ac29b35de7cdb12a9391f1c202b8dabe5 GREEN
ManyToOneAllocationEntryHandler.java 0f2b8ecaf7761b672d380b31558b3ca4a86eadce GREEN
OneToManyAllocationEntryHandler.java b8271e7603d4af63e0897b689f06ff9d2f2de28d GREEN
OneToOneAllocationEntryHandler.java 27a868c2b2cc528a119961990bb574ef35c4df51 GREEN
AllocationTableCollectionHandler.java b3467fde3d308511c1695a07f5f39c5375ca24f5 YELLOW
ManyToOneAllocationEntryHandler.java 80f3713b188482913f06a25f7c9e35836474d969 YELLOW
OneToManyAllocationEntryHandler.java 8eebc2529152bea2399b936486fceec125d07e94 YELLOW
OneToOneAllocationEntryHandler.java 6d9ae6bd5512374ed721fbe327de6c65cb6e7a94 YELLOW
......@@ -16,13 +16,12 @@
package org.fortiss.af3.allocation.ui.handler;
import static java.util.stream.Collectors.toList;
import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.getImageDescriptor;
import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.PLUGIN_ID;
import java.util.List;
import java.util.function.Predicate;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.allocation.IAllocationService;
import org.fortiss.af3.allocation.model.AllocationTable;
import org.fortiss.af3.allocation.model.AllocationTableCollection;
......@@ -39,8 +38,14 @@ public class AllocationTableCollectionHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/allocationtablecollection.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(AllocationTableCollection element) {
return "icons/allocationtablecollection.png";
}
/** {@inheritDoc} */
......
......@@ -16,11 +16,11 @@
package org.fortiss.af3.allocation.ui.handler;
import static java.util.stream.Collectors.joining;
import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.PLUGIN_ID;
import static org.fortiss.af3.allocation.utils.AllocationModelElementFactory.RIGHT_ARROW;
import java.util.Collection;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.allocation.model.ManyToOneAllocationEntry;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -50,7 +50,13 @@ public class ManyToOneAllocationEntryHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(ManyToOneAllocationEntry element) {
return null;
}
}
......@@ -16,11 +16,11 @@
package org.fortiss.af3.allocation.ui.handler;
import static java.util.stream.Collectors.joining;
import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.PLUGIN_ID;
import static org.fortiss.af3.allocation.utils.AllocationModelElementFactory.RIGHT_ARROW;
import java.util.Collection;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.allocation.model.OneToManyAllocationEntry;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -49,7 +49,13 @@ public class OneToManyAllocationEntryHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(OneToManyAllocationEntry element) {
return null;
}
}
......@@ -15,9 +15,9 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.allocation.ui.handler;
import static org.fortiss.af3.allocation.ui.AF3AllocationUIActivator.PLUGIN_ID;
import static org.fortiss.af3.allocation.utils.AllocationModelElementFactory.RIGHT_ARROW;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.allocation.model.OneToOneAllocationEntry;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -42,7 +42,13 @@ public class OneToOneAllocationEntryHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(OneToOneAllocationEntry element) {
return null;
}
}
ChannelHandler.java e7b7a3303855dae79de76dff5e287a7697bd739c GREEN
CodeSpecificationHandler.java 06ab8c446c186376d005ede4acf449d8abc81558 GREEN
ComponentArchitectureHandler.java 8c22890f49e635809b3e6fef0803cf2d694376da GREEN
ComponentHandler.java e3a5b53e14ccaaf3961d842515c30744994e2aa4 GREEN
ComponentSpecificationsContainerHandler.java fe56438006c3b144b2d62c33a2d1bdfde2fb2e6d GREEN
ChannelHandler.java 176f943f87a60c1f3fae0009d629301d62932c61 YELLOW
CodeSpecificationHandler.java d4a4a95773d6fd37ffe5785dc0fa19616579cf87 YELLOW
ComponentArchitectureHandler.java ca584540b3e7a754f24356f61d4d2744653efc19 YELLOW
ComponentHandler.java 3a5d4938f3d28b90fa0fa145d601df87f7325100 YELLOW
ComponentSpecificationsContainerHandler.java f20fe325352656c74895dcd400733dec1babf7a3 YELLOW
IComponentBehaviorDefinitionHandler.java f7598bc4994fcae7a77be29b51f68fc9fca9d284 GREEN
InputPortHandler.java b1450deb0989b17bded7473ad877a63f8e31a022 GREEN
LibraryComponentHandler.java 714a962035875423ab464bcdb279ba792446fc7b GREEN
LibraryComponentPackageHandler.java 7e92048040f2e8bbdca64378f4ac5971d4e43c21 GREEN
OutputPortHandler.java ba798aa0c56bd89aa74d1a7f5c0c4a860494fed8 GREEN
InputPortHandler.java 60baa521dd501d1e3cf2b864cdf5055207ab84e9 YELLOW
LibraryComponentHandler.java 9b07c0d08bb2afc4defebc0a8666b265b2776e22 YELLOW
LibraryComponentPackageHandler.java 04678ed7dd2f83967abade2f73e9014f40a20950 YELLOW
OutputPortHandler.java 77ad3f443057c3107947d00165857fe49e8ed11a YELLOW
......@@ -15,7 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import org.eclipse.jface.resource.ImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import org.fortiss.af3.component.model.Channel;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -29,7 +30,13 @@ public class ChannelHandler extends NamedCommentedModelElementHandlerBase<Channe
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(Channel element) {
return null;
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.behavior.code.CodeSpecification;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -31,8 +30,14 @@ public class CodeSpecificationHandler extends ModelElementHandlerBase<CodeSpecif
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/codespec.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(CodeSpecification element) {
return "icons/codespec.gif";
}
/** {@inheritDoc} */
......
......@@ -15,13 +15,12 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import static org.fortiss.af3.component.ui.handler.ComponentHandler.getContentElements;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.ComponentArchitecture;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -49,8 +48,14 @@ public class ComponentArchitectureHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/componentarchitecture.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(ComponentArchitecture element) {
return "icons/componentarchitecture.gif";
}
/** {@inheritDoc} */
......
......@@ -15,6 +15,7 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import java.util.ArrayList;
......@@ -40,8 +41,14 @@ public class ComponentHandler extends NamedCommentedModelElementHandlerBase<Comp
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/component.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(Component element) {
return "icons/component.gif";
}
/** {@inheritDoc} */
......
......@@ -15,13 +15,12 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import static org.fortiss.af3.component.ui.handler.ComponentHandler.getFilteredSpecifications;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.ComponentArchitecture;
import org.fortiss.af3.component.model.ComponentSpecificationsContainer;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -37,8 +36,14 @@ public class ComponentSpecificationsContainerHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/componentspecifications.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(ComponentSpecificationsContainer element) {
return "icons/componentspecifications.gif";
}
/** {@inheritDoc} */
......
......@@ -15,12 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.InputPort;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -35,8 +34,14 @@ public class InputPortHandler extends NamedCommentedModelElementHandlerBase<Inpu
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/entry_ipoint.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(InputPort element) {
return "icons/entry_ipoint.png";
}
/** {@inheritDoc} */
......
......@@ -15,12 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.LibraryComponent;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
......@@ -43,8 +42,14 @@ public class LibraryComponentHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/component.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(LibraryComponent element) {
return "icons/component.gif";
}
/** {@inheritDoc} */
......
......@@ -15,13 +15,12 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.LibraryComponent;
import org.fortiss.af3.component.model.LibraryComponentPackage;
import org.fortiss.af3.expression.model.definitions.library.LibraryFunctionDefinition;
......@@ -39,8 +38,14 @@ public class LibraryComponentPackageHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/package.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(LibraryComponentPackage element) {
return "icons/package.gif";
}
/** {@inheritDoc} */
......
......@@ -15,12 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.handler;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getImageDescriptor;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.PLUGIN_ID;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.model.OutputPort;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.NamedCommentedModelElementHandlerBase;
......@@ -35,8 +34,14 @@ public class OutputPortHandler extends NamedCommentedModelElementHandlerBase<Out
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("icons/exit_ipoint.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(OutputPort element) {
return "icons/exit_ipoint.png";
}
/** {@inheritDoc} */
......
FMUSpecificationHandler.java e8e6d062866009d8fb9ec02f529526872d86a690 GREEN
SimulinkSpecificationHandler.java 95afce446cf1ff30230459056cf26273a9dbe36a GREEN
FMUSpecificationHandler.java 1d1253fb2b712650c5be2ef74c1375fdecc75fb0 YELLOW
SimulinkSpecificationHandler.java d05759f90a2d0b6b0b06647ebe38ec2cd7435709 YELLOW
......@@ -16,11 +16,10 @@
package org.fortiss.af3.cosimulation.ui.handler;
import static org.conqat.lib.commons.string.StringUtils.isEmpty;
import static org.fortiss.af3.cosimulation.ui.AF3CosimulationUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.ui.handler.IComponentBehaviorDefinitionHandler;
import org.fortiss.af3.cosimulation.model.FMUSpecification;
import org.fortiss.af3.cosimulation.ui.AF3CosimulationUIActivator;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
/**
......@@ -33,8 +32,14 @@ public class FMUSpecificationHandler extends ModelElementHandlerBase<FMUSpecific
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return AF3CosimulationUIActivator.getImageDescriptor("icons/FMU_16x16.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(FMUSpecification element) {
return "icons/FMU_16x16.png";
}
/** {@inheritDoc} */
......
......@@ -16,11 +16,10 @@
package org.fortiss.af3.cosimulation.ui.handler;
import static org.conqat.lib.commons.string.StringUtils.isEmpty;
import static org.fortiss.af3.cosimulation.ui.AF3CosimulationUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.component.ui.handler.IComponentBehaviorDefinitionHandler;
import org.fortiss.af3.cosimulation.model.SimulinkSpecification;
import org.fortiss.af3.cosimulation.ui.AF3CosimulationUIActivator;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
/**
......@@ -30,10 +29,17 @@ import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
*/
public class SimulinkSpecificationHandler extends ModelElementHandlerBase<SimulinkSpecification>
implements IComponentBehaviorDefinitionHandler {
/** {@inheritDoc} */
@Override
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return AF3CosimulationUIActivator.getImageDescriptor("icons/sim.png");
protected String getIconPath(SimulinkSpecification element) {
return "icons/sim.png";
}
/** {@inheritDoc} */
......
DSERootHandler.java a00f6c4b83e8dc4b01e9b13c63a4c280f9befbcd GREEN
ExplorationConstraintHandler.java 6ecb5c90be647d7b8e23341de5b87d32d5774b41 GREEN
ExplorationObjectiveHandler.java 20eb08103ca0cb56e32320541a3505f511b1b999 GREEN
ExplorationStepHandler.java 9a46517fdb6098997bb165d14f576ac73c82cc67 GREEN
InitialInputDefinitionStepHandler.java 3693cc555305920f328ecfd831010d2265b49551 GREEN
ProcessStepHandlerBase.java 37416013779e2c9a17519464cfd552bd4bb4ddfd GREEN
ReferencedExplorationConstraintHandler.java 83eb919ac8b71016315c68451da8c759e3685724 GREEN
ReferencedExplorationObjectiveHandler.java 8ba0dedfbf489ae08cf99dea3f457fae8b76b4f9 GREEN
ReferencedRuleSetHandler.java 9313a5e4873521c675a24fc07d345e87ed97c837 GREEN
RuleSetHandler.java 23c110f7a474d38ae2e992261c43db46e5dbc61c GREEN
SingleExplorationSolutionHandler.java dcb1aa3f7a711b2da43314379219c109346e7cb7 GREEN
SolutionSelectionStepHandler.java b44ffab47238073a648e6cd4544abc1437ca0160 GREEN
TargetDefinitionStepHandler.java 18791f2b8096482ab234a7f34bd86d99d37abfd0 GREEN
DSERootHandler.java 2fa2dc643c383ad5adc87b90d84002b11837f8e7 YELLOW
ExplorationConstraintHandler.java 43bc642881459e5dbd2ec5eb9a7b5aa4a6696449 YELLOW
ExplorationObjectiveHandler.java 13bff24b1df9f4301b085744d5dd61a0ea448ac0 YELLOW
ExplorationStepHandler.java bd34794a1f49968701910278f3c1306f87acb2c7 YELLOW
InitialInputDefinitionStepHandler.java eaa169363241d61e55e20b8e50eaafe894e70c4a YELLOW
ProcessStepHandlerBase.java 35ca4763c2347fcaf58f3996632d892d52dfb855 YELLOW
ReferencedExplorationConstraintHandler.java ecf9b6a8fc0b9bd26efb378efc696d61e687f985 YELLOW
ReferencedExplorationObjectiveHandler.java eb4c08f14dc5652a56b0625700416c062a2f2860 YELLOW
ReferencedRuleSetHandler.java 4323503431c87ee297bc888f719cdda2613cfeb9 YELLOW
RuleSetHandler.java 48e809a80782f1f4813a5468d47573ea91d8f0d0 YELLOW
SingleExplorationSolutionHandler.java 18736481a2ba36a4e025ae8f4f5f355b2c59976c YELLOW
SolutionSelectionStepHandler.java 70594ed9302f6f1aa444e8dd25d0dacccf3d3d71 YELLOW
TargetDefinitionStepHandler.java d70f55a7eb1ea2de422a08c7691326b93eb327c0 YELLOW
......@@ -15,11 +15,10 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.exploration.ui.handler;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.getImageDescriptor;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.PLUGIN_ID;
import java.util.Date;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.exploration.model.project.DSE;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -41,7 +40,13 @@ public class DSERootHandler extends ModelElementHandlerBase<DSE> {
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("res/org/fortiss/af3/exploration/ui/icons/DSE.gif");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(DSE element) {
return "res/org/fortiss/af3/exploration/ui/icons/DSE.gif";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.exploration.ui.handler;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.getImageDescriptor;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.exploration.model.ExplorationConstraint;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -39,7 +38,13 @@ public class ExplorationConstraintHandler
/** {@inheritDoc} */
@Override
public ImageDescriptor getIconImageDescriptor() {
return getImageDescriptor("res/org/fortiss/af3/exploration/ui/icons/constraints_icon.png");
protected String getPluginId() {
return PLUGIN_ID;
}
/** {@inheritDoc} */
@Override
protected String getIconPath(ExplorationConstraint<?> element) {
return "res/org/fortiss/af3/exploration/ui/icons/constraints_icon.png";
}
}
......@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.exploration.ui.handler;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.getImageDescriptor;
import static org.fortiss.af3.exploration.ui.AF3ExplorationUIActivator.PLUGIN_ID;
import org.eclipse.jface.resource.ImageDescriptor;
import org.fortiss.af3.exploration.model.ExplorationObjective;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -38,7 +37,13 @@ public class ExplorationObjectiveHandler extends ModelElementHandlerBase<Explora
/** {@inheritDoc} */