Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/IStructuredSelection.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 | 46a6e0e6ccd4 |
children |
line wrap: on
line diff
--- a/dwtx/jface/viewers/IStructuredSelection.d Sun Aug 03 17:01:51 2008 +0200 +++ b/dwtx/jface/viewers/IStructuredSelection.d Thu Aug 07 15:01:33 2008 +0200 @@ -13,9 +13,7 @@ module dwtx.jface.viewers.IStructuredSelection; import dwtx.jface.viewers.ISelection; - -import tango.util.collection.model.SeqView; -import tango.util.collection.model.Iterator; +import dwtx.dwtxhelper.Collection; /** * A selection containing elements. @@ -34,7 +32,7 @@ * * @return an iterator over the selected elements */ - public Iterator!(Object) iterator(); + public Iterator iterator(); /** * Returns the number of elements selected in this selection. @@ -53,10 +51,10 @@ /** * Returns the elements in this selection as a <code>List</code>. * <strong>Note</strong> In the default implementation of {@link #toList()} in - * {@link StructuredSelection} the returned list is not a copy of the elements of the + * {@link StructuredSelection} the returned list is not a copy of the elements of the * receiver and modifying it will modify the contents of the selection. * * @return the selected elements as a list */ - public SeqView!(Object) toList(); + public List toList(); }