/** * Removes the given markers. * * @param markers the markers to be deleted */ protected void removeMarkers(final List markers) { IMarker[] markersArray= (IMarker[])markers.toArray(new IMarker[markers.size()]); execute(new DeleteMarkersOperation(markersArray, getOperationName())); }
/** * Removes the given markers. * * @param markers the markers to be deleted */ protected void removeMarkers(final List<? extends IMarker> markers) { IMarker[] markersArray= markers.toArray(new IMarker[markers.size()]); execute(new DeleteMarkersOperation(markersArray, getOperationName())); }
/** * Creates a new marker according to the specification of this action and * adds it to the marker resource. */ protected void addMarker() { IResource resource= getResource(); if (resource == null) return; Map attributes= getInitialAttributes(); if (fAskForLabel) { if (!askForLabel(attributes)) return; } execute(new CreateMarkersOperation(fMarkerType, attributes, resource, getOperationName())); }
/** * Creates a new marker according to the specification of this action and * adds it to the marker resource. */ protected void addMarker() { IResource resource= getResource(); if (resource == null) return; Map<String, Object> attributes= getInitialAttributes(); if (fAskForLabel) { if (!askForLabel(attributes)) return; } execute(new CreateMarkersOperation(fMarkerType, attributes, resource, getOperationName())); }