/** * Updates the given marker according to the given position in the given * document. If the given position is <code>null</code>, the marker is * assumed to carry the correct positional information. If it is detected * that the marker is invalid and should thus be deleted, this method * returns <code>false</code>. * * @param marker the marker to be updated * @param document the document into which the given position points * @param position the current position of the marker inside the given document * @return <code>false</code> if the marker is invalid * @throws CoreException if there is a problem updating the marker * @since 3.0 */ public boolean updateMarker(IDocument document, IMarker marker, Position position) throws CoreException { listenToMarkerChanges(false); try { return updateMarker(marker, document, position); } finally { listenToMarkerChanges(true); } }
/** * Removes the marker change listener. * @see AnnotationModel#disconnected() */ protected void disconnected() { listenToMarkerChanges(false); uninstallMarkerUpdaters(); }
/** * Updates the given marker according to the given position in the given * document. If the given position is <code>null</code>, the marker is * assumed to carry the correct positional information. If it is detected * that the marker is invalid and should thus be deleted, this method * returns <code>false</code>. * * @param marker the marker to be updated * @param document the document into which the given position points * @param position the current position of the marker inside the given document * @return <code>false</code> if the marker is invalid * @throws CoreException if there is a problem updating the marker * @since 3.0 */ public boolean updateMarker(IDocument document, IMarker marker, Position position) throws CoreException { listenToMarkerChanges(false); try { return updateMarker(marker, document, position); } finally { listenToMarkerChanges(true); } }
/** * Removes the marker change listener. * @see AnnotationModel#disconnected() */ @Override protected void disconnected() { listenToMarkerChanges(false); uninstallMarkerUpdaters(); }
listenToMarkerChanges(false); try { handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_removeAnnotations); listenToMarkerChanges(true);
listenToMarkerChanges(false); try { handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_removeAnnotations); listenToMarkerChanges(true);
/** * Connects to the source of markers as marker change listener. * @see AnnotationModel#connected() */ protected void connected() { listenToMarkerChanges(true); try { catchupWithMarkers(); } catch (CoreException x) { if (x.getStatus().getCode() != IResourceStatus.RESOURCE_NOT_FOUND) handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_connected); } fireModelChanged(); }
/** * Connects to the source of markers as marker change listener. * @see AnnotationModel#connected() */ @Override protected void connected() { listenToMarkerChanges(true); try { catchupWithMarkers(); } catch (CoreException x) { if (x.getStatus().getCode() != IResourceStatus.RESOURCE_NOT_FOUND) handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_connected); } fireModelChanged(); }
installMarkerUpdaters(); listenToMarkerChanges(false); listenToMarkerChanges(true);
installMarkerUpdaters(); listenToMarkerChanges(false); listenToMarkerChanges(true);