1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.pde.internal.ui.editor; 12 13 import org.eclipse.core.resources.IMarker; 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel; 16 17 /** 18 * A marker annotation model whose underlying source of markers is 19 * a resource in the workspace. 20 * <p> 21 * This class may be instantiated; it is not intended to be subclassed. 22 * </p> 23 */ 24 public class SystemFileMarkerAnnotationModel 25 extends AbstractMarkerAnnotationModel { 26 27 protected IMarker[] retrieveMarkers() throws CoreException { 28 return null; 29 } 30 31 protected void deleteMarkers(IMarker[] markers) throws CoreException { 32 } 33 34 protected void listenToMarkerChanges(boolean listen) { 35 } 36 37 protected boolean isAcceptable(IMarker marker) { 38 return true; 39 } 40 41 } 42