private Position findProblemPosition(IEditorInput input, IMarker marker) { IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(input); if (model != null) { Iterator iter= model.getAnnotationIterator(); while (iter.hasNext()) { Object curr= iter.next(); if (curr instanceof MarkerAnnotation) { MarkerAnnotation annot= (MarkerAnnotation) curr; if (marker.equals(annot.getMarker())) { return model.getPosition(annot); }
private Position findProblemPosition(IAnnotationModel model, IMarker marker) { Iterator iter= model.getAnnotationIterator(); while (iter.hasNext()) { Object curr= iter.next(); if (curr instanceof MarkerAnnotation) { MarkerAnnotation annot= (MarkerAnnotation) curr; if (marker.equals(annot.getMarker())) { return model.getPosition(annot);
		private Position findProblemPosition(IEditorInput input, IMarker marker) {			IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(input);			if (model != null) {				Iterator iter= model.getAnnotationIterator();				while (iter.hasNext()) {					Object curr= iter.next();					if (curr instanceof MarkerAnnotation) {						MarkerAnnotation annot= (MarkerAnnotation) curr;						if (marker.equals(annot.getMarker())) {							return model.getPosition(annot);						}					}				}			}			return null;		}