KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > IMarkerResolution2


1 /*******************************************************************************
2  * Copyright (c) 2003, 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.ui;
12
13 import org.eclipse.swt.graphics.Image;
14
15 /**
16  * Extends <code>IMarkerResolution</code>. This interface should be used
17  * in place of <code>IMarkerResolution</code> if a description and/or image
18  * are desired.
19  *
20  * @since 3.0
21  */

22 public interface IMarkerResolution2 extends IMarkerResolution {
23
24     /**
25      * Returns optional additional information about the resolution.
26      * The additional information will be presented to assist the user
27      * in deciding if the selected proposal is the desired choice.
28      *
29      * @return the additional information or <code>null</code>
30      */

31     public String JavaDoc getDescription();
32
33     /**
34      * Returns the image to be displayed in the list of resolutions.
35      * The image would typically be shown to the left of the display string.
36      *
37      * @return the image to be shown or <code>null</code> if no image is desired
38      */

39     public Image getImage();
40 }
41
42
Popular Tags