Mercurial > projects > dwt-addons
diff dwtx/jface/internal/text/InformationControlReplacer.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | b6bad70d540a |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/InformationControlReplacer.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/internal/text/InformationControlReplacer.d Sun Aug 24 01:46:20 2008 +0200 @@ -123,7 +123,7 @@ return; } - if (DEBUG) + if cast(DEBUG) System.out.println("InformationControlReplacer: no active replaceable"); //$NON-NLS-1$ } @@ -139,7 +139,7 @@ Rectangle controlBounds= fContentBounds; if (informationControl instanceof IInformationControlExtension3) { - IInformationControlExtension3 iControl3= (IInformationControlExtension3) informationControl; + IInformationControlExtension3 iControl3= cast(IInformationControlExtension3) informationControl; Rectangle trim= iControl3.computeTrim(); controlBounds= Geometry.add(controlBounds, trim); @@ -160,7 +160,7 @@ informationControl.setSizeConstraints(size.x, size.y); if (informationControl instanceof IInformationControlExtension2) - ((IInformationControlExtension2) informationControl).setInput(information); + (cast(IInformationControlExtension2) informationControl).setInput(information); else informationControl.setInformation(information.toString()); @@ -185,7 +185,7 @@ if (! isReplacing()) { fDelayedInformationSet= true; } else if (getCurrentInformationControl2() instanceof IInformationControlExtension2) { - ((IInformationControlExtension2) getCurrentInformationControl2()).setInput(input); + (cast(IInformationControlExtension2) getCurrentInformationControl2()).setInput(input); } else if (getCurrentInformationControl2() !is null) { getCurrentInformationControl2().setInformation(input.toString()); }