129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2005 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 dwtx.jface.text.source.IVerticalRulerColumn;
|
|
14
|
131
|
15 import dwtx.jface.text.source.ISharedTextColors; // packageimport
|
|
16 import dwtx.jface.text.source.ILineRange; // packageimport
|
|
17 import dwtx.jface.text.source.IAnnotationPresentation; // packageimport
|
|
18 import dwtx.jface.text.source.IVerticalRulerInfoExtension; // packageimport
|
|
19 import dwtx.jface.text.source.ICharacterPairMatcher; // packageimport
|
|
20 import dwtx.jface.text.source.TextInvocationContext; // packageimport
|
|
21 import dwtx.jface.text.source.LineChangeHover; // packageimport
|
|
22 import dwtx.jface.text.source.IChangeRulerColumn; // packageimport
|
|
23 import dwtx.jface.text.source.IAnnotationMap; // packageimport
|
|
24 import dwtx.jface.text.source.IAnnotationModelListenerExtension; // packageimport
|
|
25 import dwtx.jface.text.source.ISourceViewerExtension2; // packageimport
|
|
26 import dwtx.jface.text.source.IAnnotationHover; // packageimport
|
|
27 import dwtx.jface.text.source.ContentAssistantFacade; // packageimport
|
|
28 import dwtx.jface.text.source.IAnnotationAccess; // packageimport
|
|
29 import dwtx.jface.text.source.IVerticalRulerExtension; // packageimport
|
|
30 import dwtx.jface.text.source.LineNumberRulerColumn; // packageimport
|
|
31 import dwtx.jface.text.source.MatchingCharacterPainter; // packageimport
|
|
32 import dwtx.jface.text.source.IAnnotationModelExtension; // packageimport
|
|
33 import dwtx.jface.text.source.ILineDifferExtension; // packageimport
|
|
34 import dwtx.jface.text.source.DefaultCharacterPairMatcher; // packageimport
|
|
35 import dwtx.jface.text.source.LineNumberChangeRulerColumn; // packageimport
|
|
36 import dwtx.jface.text.source.IAnnotationAccessExtension; // packageimport
|
|
37 import dwtx.jface.text.source.ISourceViewer; // packageimport
|
|
38 import dwtx.jface.text.source.AnnotationModel; // packageimport
|
|
39 import dwtx.jface.text.source.ILineDifferExtension2; // packageimport
|
|
40 import dwtx.jface.text.source.IAnnotationModelListener; // packageimport
|
|
41 import dwtx.jface.text.source.IVerticalRuler; // packageimport
|
|
42 import dwtx.jface.text.source.DefaultAnnotationHover; // packageimport
|
|
43 import dwtx.jface.text.source.SourceViewer; // packageimport
|
|
44 import dwtx.jface.text.source.SourceViewerConfiguration; // packageimport
|
|
45 import dwtx.jface.text.source.AnnotationBarHoverManager; // packageimport
|
|
46 import dwtx.jface.text.source.CompositeRuler; // packageimport
|
|
47 import dwtx.jface.text.source.ImageUtilities; // packageimport
|
|
48 import dwtx.jface.text.source.VisualAnnotationModel; // packageimport
|
|
49 import dwtx.jface.text.source.IAnnotationModel; // packageimport
|
|
50 import dwtx.jface.text.source.ISourceViewerExtension3; // packageimport
|
|
51 import dwtx.jface.text.source.ILineDiffInfo; // packageimport
|
|
52 import dwtx.jface.text.source.VerticalRulerEvent; // packageimport
|
|
53 import dwtx.jface.text.source.ChangeRulerColumn; // packageimport
|
|
54 import dwtx.jface.text.source.ILineDiffer; // packageimport
|
|
55 import dwtx.jface.text.source.AnnotationModelEvent; // packageimport
|
|
56 import dwtx.jface.text.source.AnnotationColumn; // packageimport
|
|
57 import dwtx.jface.text.source.AnnotationRulerColumn; // packageimport
|
|
58 import dwtx.jface.text.source.IAnnotationHoverExtension; // packageimport
|
|
59 import dwtx.jface.text.source.AbstractRulerColumn; // packageimport
|
|
60 import dwtx.jface.text.source.ISourceViewerExtension; // packageimport
|
|
61 import dwtx.jface.text.source.AnnotationMap; // packageimport
|
|
62 import dwtx.jface.text.source.IVerticalRulerInfo; // packageimport
|
|
63 import dwtx.jface.text.source.IAnnotationModelExtension2; // packageimport
|
|
64 import dwtx.jface.text.source.LineRange; // packageimport
|
|
65 import dwtx.jface.text.source.IAnnotationAccessExtension2; // packageimport
|
|
66 import dwtx.jface.text.source.VerticalRuler; // packageimport
|
|
67 import dwtx.jface.text.source.JFaceTextMessages; // packageimport
|
|
68 import dwtx.jface.text.source.IOverviewRuler; // packageimport
|
|
69 import dwtx.jface.text.source.Annotation; // packageimport
|
|
70 import dwtx.jface.text.source.IVerticalRulerListener; // packageimport
|
|
71 import dwtx.jface.text.source.ISourceViewerExtension4; // packageimport
|
|
72 import dwtx.jface.text.source.AnnotationPainter; // packageimport
|
|
73 import dwtx.jface.text.source.IAnnotationHoverExtension2; // packageimport
|
|
74 import dwtx.jface.text.source.OverviewRuler; // packageimport
|
|
75 import dwtx.jface.text.source.OverviewRulerHoverManager; // packageimport
|
|
76
|
|
77
|
129
|
78 import dwt.dwthelper.utils;
|
|
79
|
|
80
|
|
81 import dwt.graphics.Font;
|
|
82 import dwt.widgets.Composite;
|
|
83 import dwt.widgets.Control;
|
|
84
|
|
85
|
|
86 /**
|
|
87 * A vertical ruler column is an element that can be added to a composite
|
|
88 * vertical ruler ({@link dwtx.jface.text.source.CompositeRuler}). A
|
|
89 * composite vertical ruler is a vertical ruler with dynamically changing
|
|
90 * appearance and behavior depending on its actual arrangement of ruler columns.
|
|
91 * A vertical ruler column supports a subset of the contract of a vertical
|
|
92 * ruler.
|
|
93 *
|
|
94 * @see dwtx.jface.text.source.CompositeRuler
|
|
95 * @since 2.0
|
|
96 */
|
|
97 public interface IVerticalRulerColumn {
|
|
98
|
|
99 /**
|
|
100 * Associates an annotation model with this ruler column.
|
|
101 * A value <code>null</code> is acceptable and clears the ruler.
|
|
102 *
|
|
103 * @param model the new annotation model, may be <code>null</code>
|
|
104 */
|
|
105 void setModel(IAnnotationModel model);
|
|
106
|
|
107 /**
|
|
108 * Redraws this column.
|
|
109 */
|
|
110 void redraw();
|
|
111
|
|
112 /**
|
|
113 * Creates the column's DWT control.
|
|
114 *
|
|
115 * @param parentRuler the parent ruler of this column
|
|
116 * @param parentControl the control of the parent ruler
|
|
117 * @return the column's DWT control
|
|
118 */
|
|
119 Control createControl(CompositeRuler parentRuler, Composite parentControl);
|
|
120
|
|
121 /**
|
|
122 * Returns the column's DWT control.
|
|
123 *
|
|
124 * @return the column's DWT control
|
|
125 */
|
|
126 Control getControl();
|
|
127
|
|
128 /**
|
|
129 * Returns the width of this column's control.
|
|
130 *
|
|
131 * @return the width of this column's control
|
|
132 */
|
|
133 int getWidth();
|
|
134
|
|
135 /**
|
|
136 * Sets the font of this ruler column.
|
|
137 *
|
|
138 * @param font the new font of the ruler column
|
|
139 */
|
|
140 void setFont(Font font);
|
|
141 }
|