Java Code Examples for org.eclipse.ui.views.markers.MarkerItem#getAttributeValue()

The following examples show how to use org.eclipse.ui.views.markers.MarkerItem#getAttributeValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Resolved.java    From git-appraise-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public String getValue(MarkerItem item) {
  String result =
      item.getAttributeValue(ReviewMarkerAttributes.REVIEW_RESOLVED_MARKER_ATTRIBUTE, "");
  if ("true".equals(result)) {
    return "yes";
  }
  return "";
}
 
Example 2
Source File: DateTime.java    From git-appraise-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@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";
}
 
Example 3
Source File: TestabilityDescriptionMarkerField.java    From testability-explorer with Apache License 2.0 4 votes vote down vote up
@Override
public String getValue(MarkerItem item) {
  return item.getAttributeValue(IMarker.MESSAGE, "");
}
 
Example 4
Source File: TestabilityLineNumberMarkerField.java    From testability-explorer with Apache License 2.0 4 votes vote down vote up
@Override
public String getValue(MarkerItem item) {
  return item.getAttributeValue(IMarker.LINE_NUMBER, "");
}
 
Example 5
Source File: TestabilityIssueTypeMarkerField.java    From testability-explorer with Apache License 2.0 4 votes vote down vote up
@Override
public String getValue(MarkerItem item) {
  return item.getAttributeValue(TestabilityConstants.ISSUE_TYPE, "");
}
 
Example 6
Source File: Author.java    From git-appraise-eclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public String getValue(MarkerItem item) {
  return item.getAttributeValue(ReviewMarkerAttributes.REVIEW_AUTHOR_MARKER_ATTRIBUTE, "Unknown");
}