Mercurial > projects > dwt-addons
diff dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 65801ad2b265 |
children | 26688fec6d23 |
line wrap: on
line diff
--- a/dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/hyperlink/MultipleHyperlinkPresenter.d Sun Aug 24 02:26:23 2008 +0200 @@ -253,7 +253,7 @@ public void mouseMove(MouseEvent e) { if (fTable.equals(e.getSource())) { Object o= fTable.getItem(new Point(e.x, e.y)); - if (o instanceof TableItem) { + if ( cast(TableItem)o ) { TableItem item= cast(TableItem) o; if (!o.equals(fLastItem)) { fLastItem= cast(TableItem) o; @@ -575,10 +575,10 @@ * @see dwtx.jface.text.AbstractInformationControlManager#showInformationControl(dwt.graphics.Rectangle) */ protected void showInformationControl(Rectangle subjectArea) { - if (fTextViewer instanceof IWidgetTokenOwnerExtension) { + if ( cast(IWidgetTokenOwnerExtension)fTextViewer ) { if ((cast(IWidgetTokenOwnerExtension) fTextViewer).requestWidgetToken(this, WIDGET_TOKEN_PRIORITY)) super.showInformationControl(subjectArea); - } else if (fTextViewer instanceof IWidgetTokenOwner) { + } else if ( cast(IWidgetTokenOwner)fTextViewer ) { if ((cast(IWidgetTokenOwner) fTextViewer).requestWidgetToken(this)) super.showInformationControl(subjectArea); } else { @@ -594,7 +594,7 @@ protected void hideInformationControl() { super.hideInformationControl(); - if (fTextViewer instanceof IWidgetTokenOwner) { + if ( cast(IWidgetTokenOwner)fTextViewer ) { (cast(IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); } @@ -608,7 +608,7 @@ public void disposeInformationControl() { super.disposeInformationControl(); - if (fTextViewer instanceof IWidgetTokenOwner) { + if ( cast(IWidgetTokenOwner)fTextViewer ) { (cast(IWidgetTokenOwner) fTextViewer).releaseWidgetToken(this); }