public IAnnotationModel createAnnotationModel(IPath location) { IFile file= FileBuffers.getWorkspaceFileAtLocation(location); if (file != null) return new ResourceMarkerAnnotationModel(file); return new AnnotationModel(); } }
protected IAnnotationModel createAnnotationModel(Object element) throws CoreException { if (element instanceof IFileEditorInput) { IFileEditorInput input= (IFileEditorInput) element; return new ResourceMarkerAnnotationModel(input.getFile()); } return super.createAnnotationModel(element); }
@Override protected IAnnotationModel createAnnotationModel(Object element) throws CoreException { if (element instanceof IAdaptable) { IFile file = (IFile) ((IAdaptable) element).getAdapter(IFile.class); if (file != null) { return new ResourceMarkerAnnotationModel(file); } } return new AnnotationModel(); }
@Override protected IAnnotationModel createAnnotationModel(Object element) throws CoreException { if (element instanceof IFileEditorInput) { IFileEditorInput input= (IFileEditorInput) element; return new ResourceMarkerAnnotationModel(input.getFile()); } return super.createAnnotationModel(element); }
@Override public IAnnotationModel createAnnotationModel(IPath location) { IFile file= FileBuffers.getWorkspaceFileAtLocation(location); if (file != null) return new ResourceMarkerAnnotationModel(file); return new AnnotationModel(); } }