1 package eu
.etaxonomy
.taxeditor
.editor
.view
.validation
;
3 import org
.eclipse
.core
.runtime
.CoreException
;
4 import org
.eclipse
.ui
.views
.markers
.MarkerField
;
5 import org
.eclipse
.ui
.views
.markers
.MarkerItem
;
7 import eu
.etaxonomy
.taxeditor
.editor
.validation
.MarkerManager
;
9 public class EntityClassMarkerField
extends MarkerField
{
12 public String
getValue(MarkerItem item
)
15 Object value
= item
.getMarker().getAttribute(MarkerManager
.ATTRIB_ENTITY_CLASS
);
16 return value
== null ?
"" : value
.toString(); //$NON-NLS-1$
18 catch (CoreException e
) {
19 throw new RuntimeException("Error while retrieving value for " + MarkerManager
.ATTRIB_ENTITY_CLASS
); //$NON-NLS-1$