/** * Update an existing marker using the attributes in the marker description. * * @param marker * the marker to be updated * @throws CoreException if the marker could not be updated */ public void updateMarker(IMarker marker) throws CoreException { marker.setAttributes(attributes); }
/** * Update an existing marker using the attributes in the marker description. * * @param marker * the marker to be updated * @throws CoreException */ public void updateMarker(IMarker marker) throws CoreException { marker.setAttributes(attributes); }
/** * Update an existing marker using the attributes in the marker description. * * @param marker * the marker to be updated * @throws CoreException if the marker could not be updated */ public void updateMarker(IMarker marker) throws CoreException { marker.setAttributes(attributes); }
/** * Update an existing marker using the attributes in the marker description. * * @param marker the marker to be updated * @throws CoreException */ public void updateMarker(IMarker marker) throws CoreException { marker.setAttributes(attributes); }
@Override public void run(IProgressMonitor monitor) throws CoreException { IMarker marker= resource.createMarker(markerType); marker.setAttributes(attributes); } };
/** * Create a marker from the marker description. * * @return the created marker * @throws CoreException */ public IMarker createMarker() throws CoreException { IMarker marker = resource.createMarker(type); marker.setAttributes(attributes); return marker; }
protected static IMarker createMarker(IResource resource, String type, Map<String, Object> attributes) throws Exception { IMarker m = resource.createMarker(type); m.setAttributes(attributes); return m; }
public void run(IProgressMonitor monitor) throws CoreException { IMarker marker= resource.createMarker(markerType); marker.setAttributes(attributes); } };
@Override public void run(IProgressMonitor monitor) throws CoreException { ensureMarker().setAttributes(attributeNames, values); } };
@Override public void run(IProgressMonitor monitor) throws CoreException { ensureMarker().setAttributes(attributes); } };
/** * This method is here for use by the SABER validator's reporter instance ONLY. Do not use. See * defect 260144 for details. */ public static IMarker setPriority(IMarker item, int priority) throws CoreException { Map attrib = item.getAttributes(); attrib.put(IMarker.PRIORITY, new Integer(priority)); item.setAttributes(attrib); return item; }
/** * Create a marker from the marker description. * * @return the created marker * @throws CoreException if the marker could not be created */ public IMarker createMarker() throws CoreException { IMarker marker = resource.createMarker(type); marker.setAttributes(attributes); return marker; }
/** * Create a marker from the marker description. * * @return the created marker * @throws CoreException if the marker could not be created */ public IMarker createMarker() throws CoreException { IMarker marker = resource.createMarker(type); marker.setAttributes(attributes); return marker; }
/** * Create a marker from the marker description. * * @return the created marker * @throws CoreException */ public IMarker createMarker() throws CoreException { IMarker marker = resource.createMarker(type); marker.setAttributes(attributes); return marker; }
private static void showWithMarker(IEditorPart editor, IFile file, int offset, int length) { try { IMarker marker = file.createMarker(NewSearchUI.SEARCH_MARKER); HashMap<String, Integer> attributes = new HashMap<>(4); attributes.put(IMarker.CHAR_START, Integer.valueOf(offset)); attributes.put(IMarker.CHAR_END, Integer.valueOf(offset + length)); marker.setAttributes(attributes); IDE.gotoMarker(editor, marker); marker.delete(); } catch (CoreException e) { } }
IWorkbenchPage page = activeWorkbenchPage(); if (page == null) { throw new RuntimeException(); } IFile file; IFile[] files = ResourcesPlugin.getWorkspace().getRoot() .findFilesForLocationURI(url.toURI()); file = files[0]; IMarker marker; marker = file.createMarker(IMarker.TEXT); HashMap<String, Object> map = new HashMap<String, Object>(); map.put(IMarker.LINE_NUMBER, lineNumber); marker.setAttributes(map); IDE.openEditor(page, marker); marker.delete();
private void showWithMarker(IEditorPart editor, IFile file, int offset, int length) throws PartInitException { try { IMarker marker= file.createMarker(NewSearchUI.SEARCH_MARKER); HashMap attributes= new HashMap(4); attributes.put(IMarker.CHAR_START, new Integer(offset)); attributes.put(IMarker.CHAR_END, new Integer(offset + length)); marker.setAttributes(attributes); IDE.gotoMarker(editor, marker); marker.delete(); } catch (CoreException e) { throw new PartInitException(SearchMessages.JavaSearchResultPage_error_marker, e); } }
private void showWithMarker(IEditorPart editor, IFile file, int offset, int length) throws PartInitException { try { IMarker marker= file.createMarker(NewSearchUI.SEARCH_MARKER); HashMap<String, Integer> attributes= new HashMap<>(4); attributes.put(IMarker.CHAR_START, new Integer(offset)); attributes.put(IMarker.CHAR_END, new Integer(offset + length)); marker.setAttributes(attributes); IDE.gotoMarker(editor, marker); marker.delete(); } catch (CoreException e) { throw new PartInitException(SearchMessages.JavaSearchResultPage_error_marker, e); } }
private void showWithMarker(IEditorPart editor, IFile file, int offset, int length) throws PartInitException { try { IMarker marker= file.createMarker(NewSearchUI.SEARCH_MARKER); HashMap<String, Integer> attributes= new HashMap<>(4); attributes.put(IMarker.CHAR_START, Integer.valueOf(offset)); attributes.put(IMarker.CHAR_END, Integer.valueOf(offset + length)); marker.setAttributes(attributes); IDE.gotoMarker(editor, marker); marker.delete(); } catch (CoreException e) { throw new PartInitException(SearchMessages.JavaSearchResultPage_error_marker, e); } }
@Override public IMarker createMarker(String markerId) { IMarker marker; try { IResource sourceFileResource = associatedResource(); marker = sourceFileResource.createMarker(markerId); marker.setAttributes(attributes()); return marker; } catch (CoreException e) { log("Error creating marker " + this, e); throw new RuntimeException(); } }