Mercurial > projects > dwt-addons
diff dwtx/jface/text/AbstractReusableInformationControlCreator.d @ 145:02cd5f1224d3
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:31:00 +0200 |
parents | b6bad70d540a |
children | f70d9508c95c |
line wrap: on
line diff
--- a/dwtx/jface/text/AbstractReusableInformationControlCreator.d Sun Aug 24 21:34:15 2008 +0200 +++ b/dwtx/jface/text/AbstractReusableInformationControlCreator.d Sun Aug 24 22:31:00 2008 +0200 @@ -167,7 +167,7 @@ /** * Abstract class for a reusable information control creators. - * + * * @since 3.3 */ public abstract class AbstractReusableInformationControlCreator : IInformationControlCreator, IInformationControlCreatorExtension, DisposeListener { @@ -176,7 +176,7 @@ /** * Creates the control. - * + * * @param parent the parent shell * @return the created information control */ @@ -191,16 +191,16 @@ control= doCreateInformationControl(parent); control.addDisposeListener(this); fInformationControls.put(parent, control); - } + } return control; } - + /* * @see dwt.events.DisposeListener#widgetDisposed(dwt.events.DisposeEvent) */ public void widgetDisposed(DisposeEvent e) { Composite parent= null; - if (e.widget instanceof Shell) + if (cast(Shell)e.widget ) parent= (cast(Shell)e.widget).getParent(); if ( cast(Shell)parent ) fInformationControls.remove(parent);