Mercurial > projects > dwt2
comparison org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationAccess.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.jface.text.source.IAnnotationAccess; | |
14 | |
15 import org.eclipse.jface.text.source.ISharedTextColors; // packageimport | |
16 import org.eclipse.jface.text.source.ILineRange; // packageimport | |
17 import org.eclipse.jface.text.source.IAnnotationPresentation; // packageimport | |
18 import org.eclipse.jface.text.source.IVerticalRulerInfoExtension; // packageimport | |
19 import org.eclipse.jface.text.source.ICharacterPairMatcher; // packageimport | |
20 import org.eclipse.jface.text.source.TextInvocationContext; // packageimport | |
21 import org.eclipse.jface.text.source.LineChangeHover; // packageimport | |
22 import org.eclipse.jface.text.source.IChangeRulerColumn; // packageimport | |
23 import org.eclipse.jface.text.source.IAnnotationMap; // packageimport | |
24 import org.eclipse.jface.text.source.IAnnotationModelListenerExtension; // packageimport | |
25 import org.eclipse.jface.text.source.ISourceViewerExtension2; // packageimport | |
26 import org.eclipse.jface.text.source.IAnnotationHover; // packageimport | |
27 import org.eclipse.jface.text.source.ContentAssistantFacade; // packageimport | |
28 import org.eclipse.jface.text.source.IVerticalRulerExtension; // packageimport | |
29 import org.eclipse.jface.text.source.IVerticalRulerColumn; // packageimport | |
30 import org.eclipse.jface.text.source.LineNumberRulerColumn; // packageimport | |
31 import org.eclipse.jface.text.source.MatchingCharacterPainter; // packageimport | |
32 import org.eclipse.jface.text.source.IAnnotationModelExtension; // packageimport | |
33 import org.eclipse.jface.text.source.ILineDifferExtension; // packageimport | |
34 import org.eclipse.jface.text.source.DefaultCharacterPairMatcher; // packageimport | |
35 import org.eclipse.jface.text.source.LineNumberChangeRulerColumn; // packageimport | |
36 import org.eclipse.jface.text.source.IAnnotationAccessExtension; // packageimport | |
37 import org.eclipse.jface.text.source.ISourceViewer; // packageimport | |
38 import org.eclipse.jface.text.source.AnnotationModel; // packageimport | |
39 import org.eclipse.jface.text.source.ILineDifferExtension2; // packageimport | |
40 import org.eclipse.jface.text.source.IAnnotationModelListener; // packageimport | |
41 import org.eclipse.jface.text.source.IVerticalRuler; // packageimport | |
42 import org.eclipse.jface.text.source.DefaultAnnotationHover; // packageimport | |
43 import org.eclipse.jface.text.source.SourceViewer; // packageimport | |
44 import org.eclipse.jface.text.source.SourceViewerConfiguration; // packageimport | |
45 import org.eclipse.jface.text.source.AnnotationBarHoverManager; // packageimport | |
46 import org.eclipse.jface.text.source.CompositeRuler; // packageimport | |
47 import org.eclipse.jface.text.source.ImageUtilities; // packageimport | |
48 import org.eclipse.jface.text.source.VisualAnnotationModel; // packageimport | |
49 import org.eclipse.jface.text.source.IAnnotationModel; // packageimport | |
50 import org.eclipse.jface.text.source.ISourceViewerExtension3; // packageimport | |
51 import org.eclipse.jface.text.source.ILineDiffInfo; // packageimport | |
52 import org.eclipse.jface.text.source.VerticalRulerEvent; // packageimport | |
53 import org.eclipse.jface.text.source.ChangeRulerColumn; // packageimport | |
54 import org.eclipse.jface.text.source.ILineDiffer; // packageimport | |
55 import org.eclipse.jface.text.source.AnnotationModelEvent; // packageimport | |
56 import org.eclipse.jface.text.source.AnnotationColumn; // packageimport | |
57 import org.eclipse.jface.text.source.AnnotationRulerColumn; // packageimport | |
58 import org.eclipse.jface.text.source.IAnnotationHoverExtension; // packageimport | |
59 import org.eclipse.jface.text.source.AbstractRulerColumn; // packageimport | |
60 import org.eclipse.jface.text.source.ISourceViewerExtension; // packageimport | |
61 import org.eclipse.jface.text.source.AnnotationMap; // packageimport | |
62 import org.eclipse.jface.text.source.IVerticalRulerInfo; // packageimport | |
63 import org.eclipse.jface.text.source.IAnnotationModelExtension2; // packageimport | |
64 import org.eclipse.jface.text.source.LineRange; // packageimport | |
65 import org.eclipse.jface.text.source.IAnnotationAccessExtension2; // packageimport | |
66 import org.eclipse.jface.text.source.VerticalRuler; // packageimport | |
67 import org.eclipse.jface.text.source.JFaceTextMessages; // packageimport | |
68 import org.eclipse.jface.text.source.IOverviewRuler; // packageimport | |
69 import org.eclipse.jface.text.source.Annotation; // packageimport | |
70 import org.eclipse.jface.text.source.IVerticalRulerListener; // packageimport | |
71 import org.eclipse.jface.text.source.ISourceViewerExtension4; // packageimport | |
72 import org.eclipse.jface.text.source.AnnotationPainter; // packageimport | |
73 import org.eclipse.jface.text.source.IAnnotationHoverExtension2; // packageimport | |
74 import org.eclipse.jface.text.source.OverviewRuler; // packageimport | |
75 import org.eclipse.jface.text.source.OverviewRulerHoverManager; // packageimport | |
76 | |
77 | |
78 import java.lang.all; | |
79 import java.util.Set; | |
80 | |
81 /** | |
82 * An annotation access provides access to information that is not available via | |
83 * the API of {@link org.eclipse.jface.text.source.Annotation}. With version | |
84 * 3.0 all this information is now available from the annotation itself. | |
85 * <p> | |
86 * | |
87 * In order to provide backward compatibility for clients of | |
88 * <code>IAnnotationAccess</code>, extension interfaces are used as a means | |
89 * of evolution. The following extension interfaces exist: | |
90 * <ul> | |
91 * <li>{@link org.eclipse.jface.text.source.IAnnotationAccessExtension} since | |
92 * version 3.0 replacing all methods in that interface</li> | |
93 * <li>{@link IAnnotationAccessExtension2} since | |
94 * version 3.2 allowing to set a quick assist assistant to an annotation access.</li> | |
95 * </ul></p> | |
96 * <p> | |
97 * Clients usually implement this interface and its extension interfaces.</p> | |
98 * | |
99 * @see org.eclipse.jface.text.source.IAnnotationAccessExtension | |
100 * @see org.eclipse.jface.text.source.Annotation | |
101 * @since 2.1 | |
102 */ | |
103 public interface IAnnotationAccess { | |
104 | |
105 /** | |
106 * Returns the type of the given annotation. | |
107 * | |
108 * @param annotation the annotation | |
109 * @return the type of the given annotation or <code>null</code> if it has none. | |
110 * @deprecated use <code>Annotation.getType()</code> | |
111 */ | |
112 Object getType(Annotation annotation); | |
113 | |
114 /** | |
115 * Returns whether the given annotation spans multiple lines. | |
116 * | |
117 * @param annotation the annotation | |
118 * @return <code>true</code> if the annotation spans multiple lines, | |
119 * <code>false</code> otherwise | |
120 * | |
121 * @deprecated assumed to always return <code>true</code> | |
122 */ | |
123 bool isMultiLine(Annotation annotation); | |
124 | |
125 /** | |
126 * Returns whether the given annotation is temporary rather than persistent. | |
127 * | |
128 * @param annotation the annotation | |
129 * @return <code>true</code> if the annotation is temporary, | |
130 * <code>false</code> otherwise | |
131 * @deprecated use <code>Annotation.isPersistent()</code> | |
132 */ | |
133 bool isTemporary(Annotation annotation); | |
134 } |