01: /*******************************************************************************
02: * Copyright (c) 2003, 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.swt.graphics.Image;
13:
14: /**
15: * Extends <code>IMarkerResolution</code>. This interface should be used
16: * in place of <code>IMarkerResolution</code> if a description and/or image
17: * are desired.
18: *
19: * @since 3.0
20: */
21: public interface IMarkerResolution2 extends IMarkerResolution {
22:
23: /**
24: * Returns optional additional information about the resolution.
25: * The additional information will be presented to assist the user
26: * in deciding if the selected proposal is the desired choice.
27: *
28: * @return the additional information or <code>null</code>
29: */
30: public String getDescription();
31:
32: /**
33: * Returns the image to be displayed in the list of resolutions.
34: * The image would typically be shown to the left of the display string.
35: *
36: * @return the image to be shown or <code>null</code> if no image is desired
37: */
38: public Image getImage();
39: }
|