Mercurial > projects > dwt-addons
diff dwtx/jface/text/information/InformationPresenter.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | f70d9508c95c |
children |
line wrap: on
line diff
--- a/dwtx/jface/text/information/InformationPresenter.d Wed Aug 27 14:49:30 2008 +0200 +++ b/dwtx/jface/text/information/InformationPresenter.d Mon Sep 08 00:51:37 2008 +0200 @@ -71,6 +71,10 @@ */ public class InformationPresenter : AbstractInformationControlManager , IInformationPresenter, IInformationPresenterExtension, IWidgetTokenKeeper, IWidgetTokenKeeperExtension { + alias AbstractInformationControlManager.install install; + public override void showInformation(){ + super.showInformation(); + } /** * Priority of the info controls managed by this information presenter. @@ -298,7 +302,7 @@ if (provider is null) fProviders.remove(contentType); else - fProviders.put(contentType, provider); + fProviders.put(contentType, cast(Object)provider); } /* @@ -351,9 +355,9 @@ info= extension.getInformation2(fTextViewer, subject); } else { // backward compatibility code - info= provider.getInformation(fTextViewer, subject); + info= stringcast(provider.getInformation(fTextViewer, subject)); } - + if ( cast(IInformationProviderExtension2)provider ) setCustomInformationControlCreator((cast(IInformationProviderExtension2) provider).getInformationPresenterControlCreator()); else @@ -378,7 +382,7 @@ start= widgetRegion.getOffset(); end= widgetRegion.getOffset() + widgetRegion.getLength(); } - + StyledText styledText= fTextViewer.getTextWidget(); Rectangle bounds; if (end > 0 && start < end) @@ -387,7 +391,7 @@ Point loc= styledText.getLocationAtOffset(start); bounds= new Rectangle(loc.x, loc.y, 0, styledText.getLineHeight(start)); } - + return bounds; }