Mercurial > projects > dwt-addons
diff dwtx/ui/forms/ManagedForm.d @ 104:04b47443bb01
Reworked the collection uses to make use of a wrapper collection that is compatible to the Java Collections.
These new wrappers now use the tango.util.containers instead of the tango.util.collections.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 07 Aug 2008 15:01:33 +0200 |
parents | 5d489b9f966c |
children |
line wrap: on
line diff
--- a/dwtx/ui/forms/ManagedForm.d Sun Aug 03 17:01:51 2008 +0200 +++ b/dwtx/ui/forms/ManagedForm.d Thu Aug 07 15:01:33 2008 +0200 @@ -25,7 +25,7 @@ import dwt.dwthelper.utils; import dwt.dwthelper.Runnable; -import tango.util.collection.ArraySeq; +import dwtx.dwtxhelper.Collection; import tango.core.Thread; /** @@ -61,7 +61,7 @@ private MessageManager messageManager; - private ArraySeq!(Object) parts; + private Vector parts; /** * Creates a managed form in the provided parent. Form toolkit and widget @@ -71,7 +71,7 @@ * the parent widget */ public this(Composite parent) { - parts = new ArraySeq!(Object); + parts = new Vector(); toolkit = new FormToolkit(parent.getDisplay()); ownsToolkit = true; form = toolkit.createScrolledForm(parent); @@ -84,7 +84,7 @@ * @param form */ public this(FormToolkit toolkit, ScrolledForm form) { - parts = new ArraySeq!(Object); + parts = new Vector(); this.form = form; this.toolkit = toolkit; } @@ -95,7 +95,7 @@ * @see dwtx.ui.forms.IManagedForm#addPart(dwtx.ui.forms.IFormPart) */ public void addPart(IFormPart part) { - parts.append(cast(Object)part); + parts.add(cast(Object)part); part.initialize(this); }