Mercurial > projects > dwt-addons
diff 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 |
line wrap: on
line diff
--- a/dwtx/jface/text/source/projection/ProjectionViewer.d Tue Aug 26 02:46:34 2008 +0200 +++ b/dwtx/jface/text/source/projection/ProjectionViewer.d Wed Aug 27 01:57:58 2008 +0200 @@ -288,7 +288,7 @@ /** The projection annotation model used by this viewer. */ private ProjectionAnnotationModel fProjectionAnnotationModel; /** The annotation model listener */ - private IAnnotationModelListener fAnnotationModelListener= new AnnotationModelListener(); + private IAnnotationModelListener fAnnotationModelListener; /** The projection summary. */ private ProjectionSummary fProjectionSummary; /** Indication that an annotation world change has not yet been processed. */ @@ -298,9 +298,9 @@ /** The list of projection listeners. */ private List fProjectionListeners; /** Internal lock for protecting the list of pending requests */ - private Object fLock= new Object(); + private Object fLock; /** The list of pending requests */ - private List fPendingRequests= new ArrayList(); + private List fPendingRequests; /** The replace-visible-document execution trigger */ private IDocument fReplaceVisibleDocumentExecutionTrigger; /** <code>true</code> if projection was on the last time we switched to segmented mode. */ @@ -325,6 +325,11 @@ * @param styles the DWT style bits */ public this(Composite parent, IVerticalRuler ruler, IOverviewRuler overviewRuler, bool showsAnnotationOverview, int styles) { + + fAnnotationModelListener= new AnnotationModelListener(); + fLock= new Object(); + fPendingRequests= new ArrayList(); + super(parent, ruler, overviewRuler, showsAnnotationOverview, styles); }