comparison dwtx/jface/text/source/projection/ProjectionViewer.d @ 159:7926b636c282

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 01:57:58 +0200
parents 25f1f92fa3df
children 1a5b8f8129df
comparison
equal deleted inserted replaced
158:25f1f92fa3df 159:7926b636c282
286 } 286 }
287 287
288 /** The projection annotation model used by this viewer. */ 288 /** The projection annotation model used by this viewer. */
289 private ProjectionAnnotationModel fProjectionAnnotationModel; 289 private ProjectionAnnotationModel fProjectionAnnotationModel;
290 /** The annotation model listener */ 290 /** The annotation model listener */
291 private IAnnotationModelListener fAnnotationModelListener= new AnnotationModelListener(); 291 private IAnnotationModelListener fAnnotationModelListener;
292 /** The projection summary. */ 292 /** The projection summary. */
293 private ProjectionSummary fProjectionSummary; 293 private ProjectionSummary fProjectionSummary;
294 /** Indication that an annotation world change has not yet been processed. */ 294 /** Indication that an annotation world change has not yet been processed. */
295 private bool fPendingAnnotationWorldChange= false; 295 private bool fPendingAnnotationWorldChange= false;
296 /** Indication whether projection changes in the visible document should be considered. */ 296 /** Indication whether projection changes in the visible document should be considered. */
297 private bool fHandleProjectionChanges= true; 297 private bool fHandleProjectionChanges= true;
298 /** The list of projection listeners. */ 298 /** The list of projection listeners. */
299 private List fProjectionListeners; 299 private List fProjectionListeners;
300 /** Internal lock for protecting the list of pending requests */ 300 /** Internal lock for protecting the list of pending requests */
301 private Object fLock= new Object(); 301 private Object fLock;
302 /** The list of pending requests */ 302 /** The list of pending requests */
303 private List fPendingRequests= new ArrayList(); 303 private List fPendingRequests;
304 /** The replace-visible-document execution trigger */ 304 /** The replace-visible-document execution trigger */
305 private IDocument fReplaceVisibleDocumentExecutionTrigger; 305 private IDocument fReplaceVisibleDocumentExecutionTrigger;
306 /** <code>true</code> if projection was on the last time we switched to segmented mode. */ 306 /** <code>true</code> if projection was on the last time we switched to segmented mode. */
307 private bool fWasProjectionEnabled; 307 private bool fWasProjectionEnabled;
308 /** The queue of projection commands used to assess the costs of projection changes. */ 308 /** The queue of projection commands used to assess the costs of projection changes. */
323 * @param overviewRuler the overview ruler 323 * @param overviewRuler the overview ruler
324 * @param showsAnnotationOverview <code>true</code> if the overview ruler should be shown 324 * @param showsAnnotationOverview <code>true</code> if the overview ruler should be shown
325 * @param styles the DWT style bits 325 * @param styles the DWT style bits
326 */ 326 */
327 public this(Composite parent, IVerticalRuler ruler, IOverviewRuler overviewRuler, bool showsAnnotationOverview, int styles) { 327 public this(Composite parent, IVerticalRuler ruler, IOverviewRuler overviewRuler, bool showsAnnotationOverview, int styles) {
328
329 fAnnotationModelListener= new AnnotationModelListener();
330 fLock= new Object();
331 fPendingRequests= new ArrayList();
332
328 super(parent, ruler, overviewRuler, showsAnnotationOverview, styles); 333 super(parent, ruler, overviewRuler, showsAnnotationOverview, styles);
329 } 334 }
330 335
331 /** 336 /**
332 * Sets the projection summary for this viewer. 337 * Sets the projection summary for this viewer.