Move wrapper methods to obtain a model element's name or icon via the IModelElementHandlerService to kernel.ui
See org.fortiss.af3.allocation.ui.editor.AllocationTableEditorUtils
Proposal:
- Move methods to
org.fortiss.tooling.kernel.ui.util.EditorUtils
, and rename this class that currently contains only one element (e.g., toUserInterfaceUtils
) - Adjust all direct uses of
IModelElementHandlerService .getName()
andIModelElementHandlerService .getIcon()
where it makes sense, i.e. where boilerplate code such as casting, fall-back toINamedElement.getName()
can be conserved.
(from redmine: issue id 3191, created on 2017-11-24, closed on 2018-02-01)