/** * Checks whether a marker updater is registered for the type of the * given marker but not yet instantiated. If so, the method instantiates * the marker updater and registers it with this model. * * @param marker the marker for which to look for an updater * @since 2.0 */ private void checkMarkerUpdaters(IMarker marker) { List toBeDeleted= new ArrayList(); for (int i= 0; i < fMarkerUpdaterSpecifications.size(); i++) { IConfigurationElement spec= (IConfigurationElement) fMarkerUpdaterSpecifications.get(i); String markerType= spec.getAttribute("markerType"); //$NON-NLS-1$ if (markerType == null || MarkerUtilities.isMarkerType(marker, markerType)) { toBeDeleted.add(spec); IMarkerUpdater updater= createMarkerUpdater(spec); if (updater != null) addMarkerUpdater(updater); } } for (int i= 0; i < toBeDeleted.size(); i++) fMarkerUpdaterSpecifications.remove(toBeDeleted.get(i)); }
/** * Checks whether a marker updater is registered for the type of the * given marker but not yet instantiated. If so, the method instantiates * the marker updater and registers it with this model. * * @param marker the marker for which to look for an updater * @since 2.0 */ private void checkMarkerUpdaters(IMarker marker) { List<IConfigurationElement> toBeDeleted= new ArrayList<>(); for (int i= 0; i < fMarkerUpdaterSpecifications.size(); i++) { IConfigurationElement spec= fMarkerUpdaterSpecifications.get(i); String markerType= spec.getAttribute("markerType"); //$NON-NLS-1$ if (markerType == null || MarkerUtilities.isMarkerType(marker, markerType)) { toBeDeleted.add(spec); IMarkerUpdater updater= createMarkerUpdater(spec); if (updater != null) addMarkerUpdater(updater); } } for (int i= 0; i < toBeDeleted.size(); i++) fMarkerUpdaterSpecifications.remove(toBeDeleted.get(i)); }