Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/PopupDialog.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 | 7ffeace6c47f |
children |
line wrap: on
line diff
--- a/dwtx/jface/dialogs/PopupDialog.d Sun Aug 03 17:01:51 2008 +0200 +++ b/dwtx/jface/dialogs/PopupDialog.d Thu Aug 07 15:01:33 2008 +0200 @@ -17,9 +17,6 @@ import dwtx.jface.dialogs.IDialogSettings; import dwtx.jface.dialogs.Dialog; -import tango.util.collection.ArraySeq; -import tango.util.collection.model.Seq; -import tango.util.collection.model.SeqView; import dwt.DWT; import dwt.events.DisposeEvent; @@ -55,6 +52,7 @@ import dwtx.jface.window.Window; import dwt.dwthelper.utils; +import dwtx.dwtxhelper.Collection; import dwt.dwthelper.Runnable; /** @@ -1451,7 +1449,7 @@ * color assigned */ private void applyForegroundColor(Color color, Control control, - SeqView!(Control) exclusions) { + List exclusions) { if (!exclusions.contains(control)) { control.setForeground(color); } @@ -1476,7 +1474,7 @@ * color assigned */ private void applyBackgroundColor(Color color, Control control, - SeqView!(Control) exclusions) { + List exclusions) { if (!exclusions.contains(control)) { control.setBackground(color); } @@ -1530,17 +1528,16 @@ * * @return the List of controls */ - protected SeqView!(Control) getForegroundColorExclusions() { - auto list = new ArraySeq!(Control); - list.capacity(3); + protected List getForegroundColorExclusions() { + List list = new ArrayList(3); if (infoLabel !is null) { - list.append(infoLabel); + list.add(infoLabel); } if (titleSeparator !is null) { - list.append(titleSeparator); + list.add(titleSeparator); } if (infoSeparator !is null) { - list.append(infoSeparator); + list.add(infoSeparator); } return list; } @@ -1552,14 +1549,13 @@ * * @return the List of controls */ - protected SeqView!(Control) getBackgroundColorExclusions() { - auto list = new ArraySeq!(Control); - list.capacity(2); + protected List getBackgroundColorExclusions() { + List list = new ArrayList(2); if (titleSeparator !is null) { - list.append(titleSeparator); + list.add(titleSeparator); } if (infoSeparator !is null) { - list.append(infoSeparator); + list.add(infoSeparator); } return list; }