Position p= createPositionFromMarker(marker); if (p != null) { a.update(); modifyAnnotationPosition(a, p, false);
/** * Updates the annotation corresponding to the given marker which has changed * in some way. * <p> * Subclasses may override.</p> * * @param marker the marker */ protected void modifyMarkerAnnotation(IMarker marker) { MarkerAnnotation a= getMarkerAnnotation(marker); if (a != null) { Position p= createPositionFromMarker(marker); if (p != null) { a.update(); modifyAnnotationPosition(a, p, false); } } else addMarkerAnnotation(marker); }
/** * Updates the annotation corresponding to the given marker which has changed * in some way. * <p> * Subclasses may override.</p> * * @param marker the marker */ protected void modifyMarkerAnnotation(IMarker marker) { MarkerAnnotation a= getMarkerAnnotation(marker); if (a != null) { Position p= createPositionFromMarker(marker); if (p != null) { a.update(); modifyAnnotationPosition(a, p, false); } } else addMarkerAnnotation(marker); }