/** * Creates a new annotation for the given marker. * <p> * Subclasses may override.</p> * * @param marker the marker * @return the new marker annotation */ protected MarkerAnnotation createMarkerAnnotation(IMarker marker) { return new MarkerAnnotation(marker); }
/** * Creates a new annotation for the given marker. * <p> * Subclasses may override.</p> * * @param marker the marker * @return the new marker annotation */ protected MarkerAnnotation createMarkerAnnotation(IMarker marker) { return new MarkerAnnotation(marker); }
@Override protected MarkerAnnotation createMarkerAnnotation(IMarker marker) { String markerType = MarkerUtilities.getMarkerType(marker); if (AntEditorMarkerUpdater.BUILDFILE_PROBLEM_MARKER.equals(markerType)) { // we currently do not show Ant buildfile problem markers in the Ant editor as we have no notion of // annotation overlays // bug return null; } return new MarkerAnnotation(EditorsUI.getAnnotationTypeLookup().getAnnotationType(marker), marker); }
MarkerAnnotation anno = new MarkerAnnotation(marker); Position position = new Position(start, end - start);