@Override public void update(final ViewerCell cell) { final MarkerItem item = (MarkerItem) cell.getElement(); Image image = null; if (item.getMarker() == null) { image = GamlMarkerImageProvider.getImage(item.getAttributeValue(IMarker.MESSAGE, "")).image(); } else { try { if (item.getMarker().isSubtypeOf(IMarker.TASK)) { image = GamlMarkerImageProvider.getImage(-1).image(); } else { image = GamlMarkerImageProvider .getImage(item.getMarker().getAttribute(IMarker.SEVERITY, IMarker.SEVERITY_WARNING)) .image(); } } catch (final CoreException e) { // e.printStackTrace(); } } cell.setText(getValue(item)); cell.setImage(image); }
@Override public String getValue(MarkerItem item) { IMarker marker = item.getMarker(); if (marker != null) { IResource resource = marker.getResource(); String name = resource.getName(); return name; } return null; }
@Override public String getValue(MarkerItem item) { String result = item.getAttributeValue(ReviewMarkerAttributes.REVIEW_RESOLVED_MARKER_ATTRIBUTE, ""); if ("true".equals(result)) { return "yes"; } return ""; }
@Override public String getValue(MarkerItem item) { String value = item.getAttributeValue(ReviewMarkerAttributes.REVIEW_DATETIME_MARKER_ATTRIBUTE, ""); if (!value.isEmpty()) { DateFormat df = DateFormat.getDateTimeInstance(); return df.format(Long.parseLong(value)); } return "Unknown"; }
@Override public String getValue(MarkerItem item) { return item.getAttributeValue(IMarker.MESSAGE, ""); }
@Override public String getValue(MarkerItem item) { return item.getAttributeValue(IMarker.LINE_NUMBER, ""); }
@Override public String getValue(MarkerItem item) { return item.getAttributeValue(TestabilityConstants.ISSUE_TYPE, ""); }
@Override public String getValue(MarkerItem item) { return item.getPath(); }
@Override public String getValue(MarkerItem item) { return item.getAttributeValue(ReviewMarkerAttributes.REVIEW_AUTHOR_MARKER_ATTRIBUTE, "Unknown"); }
@Override public String getValue(MarkerItem item) { return "Test"; //return item.getMarker().getResource().getProject().getName(); }