/** * Creates a marker updater as specified in the given configuration element. * * @param element the configuration element * @return the created marker updater or <code>null</code> if none could be created */ private IMarkerUpdater createMarkerUpdater(IConfigurationElement element) { try { return (IMarkerUpdater) element.createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException x) { handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_createMarkerUpdater); } return null; }
/** * Creates a marker updater as specified in the given configuration element. * * @param element the configuration element * @return the created marker updater or <code>null</code> if none could be created */ private IMarkerUpdater createMarkerUpdater(IConfigurationElement element) { try { return (IMarkerUpdater) element.createExecutableExtension("class"); //$NON-NLS-1$ } catch (CoreException x) { handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_createMarkerUpdater); } return null; }
/** * 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(); }
handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_removeAnnotations);
handleCoreException(x, TextEditorMessages.AbstractMarkerAnnotationModel_removeAnnotations);
/** * 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(); }