new icon for "defines" in code completion
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / IProblemAnnotation.java
1 package net.sourceforge.phpeclipse.phpeditor;
2 /*
3  * (c) Copyright IBM Corp. 2000, 2001.
4  * All Rights Reserved.
5  */
6
7
8 import java.util.Iterator;
9
10 import org.eclipse.swt.graphics.Image;
11 import org.eclipse.swt.widgets.Display;
12
13
14 /**
15  * Interface of annotations representing problems.
16  */
17 public interface IProblemAnnotation {
18         
19         AnnotationType getAnnotationType();
20         
21         boolean isTemporary();
22         
23         String getMessage();
24         
25         String[] getArguments();
26         
27         int getId();
28         
29         
30         Image getImage(Display display);
31         
32         boolean isRelevant();
33         
34         boolean hasOverlay();
35         
36         Iterator getOverlaidIterator();
37         
38         void addOverlaid(IProblemAnnotation annotation);
39         
40         void removeOverlaid(IProblemAnnotation annotation);
41         
42         
43         /**
44          * @deprecated
45          */
46         boolean isProblem();
47         
48         /**
49          * @deprecated
50          */
51         boolean isTask();
52         
53         /**
54          * @deprecated
55          */
56         boolean isWarning();
57         
58         /**
59          * @deprecated
60          */
61         boolean isError();
62 }