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;
11:
12: import org.eclipse.core.resources.IMarker;
13:
14: /**
15: * Resolution for a marker. When run, a resolution would
16: * typically eliminate the need for the marker.
17: *
18: * @since 2.0
19: */
20: public interface IMarkerResolution {
21: /**
22: * Returns a short label indicating what the resolution will do.
23: *
24: * @return a short label for this resolution
25: */
26: public String getLabel();
27:
28: /**
29: * Runs this resolution.
30: *
31: * @param marker the marker to resolve
32: */
33: public void run(IMarker marker);
34: }
|