public boolean interceptRefresh(PipelinedViewerUpdate refreshSynchronization) { IJavaElement javaElement; Set interceptedElements = new HashSet(); for (Iterator iter = refreshSynchronization.getRefreshTargets().iterator(); iter.hasNext();) { Object element = iter.next(); if (element instanceof IResource) { if ((javaElement = JavaCore.create((IResource) element)) != null && javaElement.exists()) { iter.remove(); interceptedElements.add(javaElement); } } } if (interceptedElements.size() > 0) { refreshSynchronization.getRefreshTargets().addAll( interceptedElements); return true; } return false;
public boolean interceptRefresh(PipelinedViewerUpdate refreshSynchronization) { return convertToJavaElements(refreshSynchronization.getRefreshTargets());
	public boolean interceptRefresh(PipelinedViewerUpdate refreshSynchronization) {		IJavaElement javaElement;		Set interceptedElements = new HashSet();		for (Iterator iter = refreshSynchronization.getRefreshTargets().iterator(); iter.hasNext();) {			Object element = iter.next();			if (element instanceof IResource) {				if ((javaElement = JavaCore.create((IResource) element)) != null && javaElement.exists()) {					iter.remove();					interceptedElements.add(javaElement);				}			}		}		if (interceptedElements.size() > 0) {			refreshSynchronization.getRefreshTargets().addAll(					interceptedElements);			return true;		}		return false;	}