Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/projection/SourceViewerInformationControl.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 75302ef3f92f |
children |
line wrap: on
line diff
--- a/dwtx/jface/text/source/projection/SourceViewerInformationControl.d Wed Aug 27 14:49:30 2008 +0200 +++ b/dwtx/jface/text/source/projection/SourceViewerInformationControl.d Mon Sep 08 00:51:37 2008 +0200 @@ -95,7 +95,7 @@ * styles are applied to the created shell. The given styles are applied to the created styled * text widget. The text widget will be initialized with the given font. The status field will * contain the given text or be hidden. - * + * * @param parent the parent shell * @param isResizable <code>true</code> if resizable * @param symbolicFontName the symbolic font name @@ -189,8 +189,8 @@ * @param input the input object */ public void setInput(Object input) { - if ( cast(String)input ) - setInformation(cast(String)input); + if ( cast(ArrayWrapperString)input ) + setInformation(stringcast(input)); else setInformation(null); } @@ -205,7 +205,7 @@ } IDocument doc= new Document(content); - fViewer.setInput(doc); + fViewer.setInput(cast(Object)doc); } /* @@ -353,7 +353,7 @@ public bool hasContents() { return fText.getCharCount() > 0; } - + /* * @see dwtx.jface.text.IInformationControlExtension3#computeTrim() * @since 3.4 @@ -366,7 +366,7 @@ /** * Adds the internal trimmings to the given trim of the shell. - * + * * @param trim the shell's trim, will be updated * @since 3.4 */ @@ -435,7 +435,7 @@ public bool isVisible() { return fShell !is null && !fShell.isDisposed() && fShell.isVisible(); } - + /* * @see dwtx.jface.text.IInformationControlExtension5#computeSizeConstraints(int, int) */