Mercurial > projects > dwt-addons
diff dwtx/jface/text/link/LinkedModeUI.d @ 150:5cf141e43417
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 23:05:26 +0200 |
parents | b411f1c62131 |
children | f70d9508c95c |
line wrap: on
line diff
--- a/dwtx/jface/text/link/LinkedModeUI.d Sun Aug 24 22:41:48 2008 +0200 +++ b/dwtx/jface/text/link/LinkedModeUI.d Sun Aug 24 23:05:26 2008 +0200 @@ -636,8 +636,8 @@ } }; - - + + /** Whether this UI is in simple highlighting mode or not. */ private bool fSimple; @@ -666,7 +666,7 @@ * @param viewer the viewer upon which the linked mode UI should act */ public this(LinkedModeModel model, ITextViewer viewer) { - constructor(model, new LinkedModeUITarget[]{new EmptyTarget(viewer)}); + constructor(model, [new EmptyTarget(viewer)]); } /** @@ -691,7 +691,7 @@ * @param target the target upon which the linked mode UI should act */ public this(LinkedModeModel model, LinkedModeUITarget target) { - constructor(model, new LinkedModeUITarget[]{target}); + constructor(model, [target]); } /** @@ -997,7 +997,7 @@ final StyledText widget= fCurrentTarget.fWidget; if (widget is null || widget.isDisposed()) return; - + // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=132263 widget.getDisplay().asyncExec(new class() Runnable { public void run() { @@ -1060,7 +1060,7 @@ /** * Returns all possible content types of <code>document</code>. - * + * * @param document the document * @return all possible content types of <code>document</code> * @throws BadPartitioningException @@ -1079,7 +1079,7 @@ } return document.getLegalContentTypes(); } - + private void createAnnotationModel() { if (fCurrentTarget.fAnnotationModel is null) { LinkedPositionAnnotations lpa= new LinkedPositionAnnotations(); @@ -1298,7 +1298,7 @@ * Enables the support for colored labels in the proposal popup. * <p>Completion proposals can implement {@link ICompletionProposalExtension6} * to provide colored proposal labels.</p> - * + * * @param isEnabled if <code>true</code> the support for colored labels is enabled in the proposal popup * @since 3.4 */