Annotation a= (Annotation) e.next(); Position p= fModel.getPosition(a); fProblemPositions.add(p);
IProblemAnnotation pa= (IProblemAnnotation) e.next(); if (pa.isProblem()) { Annotation a= (Annotation) pa; Position p= fModel.getPosition(a); fProblemPositions.add(p); }
	private void setModel(IAnnotationModel model) {				if (fModel != model) {			if (fModel != null)				fModel.removeAnnotationModelListener(this);			fModel= model;			if (fModel != null)				fModel.addAnnotationModelListener(this);		}				fProblemPositions.clear();		if (fModel != null) {			Iterator e= new ProblemAnnotationIterator(fModel);			while (e.hasNext()) {				Annotation a= (Annotation) e.next();				Position p= fModel.getPosition(a);				fProblemPositions.add(p);			}		}	}