01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.examples.readmetool;
11:
12: import org.eclipse.core.resources.IMarker;
13: import org.eclipse.ui.IMarkerResolution;
14: import org.eclipse.ui.IMarkerResolutionGenerator2;
15:
16: /**
17: * Creates resolutions for readme markers.
18: */
19: public class ReadmeMarkerResolutionGenerator implements
20: IMarkerResolutionGenerator2 {
21:
22: /* (non-Javadoc)
23: * Method declared on IMarkerResolutionGenerator.
24: */
25: public IMarkerResolution[] getResolutions(IMarker marker) {
26: return new IMarkerResolution[] { new AddSentenceResolution() };
27: }
28:
29: /* (non-Javadoc)
30: * Method declared on IMarkerResolutionGenerator2.
31: */
32: public boolean hasResolutions(IMarker marker) {
33: return true;
34: }
35:
36: }
|