Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/ArrayContentProvider.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/viewers/ArrayContentProvider.d Sun Aug 03 17:01:51 2008 +0200 +++ b/dwtx/jface/viewers/ArrayContentProvider.d Thu Aug 07 15:01:33 2008 +0200 @@ -16,9 +16,9 @@ import dwtx.jface.viewers.IStructuredContentProvider; import dwtx.jface.viewers.Viewer; -import tango.util.collection.model.View; import dwt.dwthelper.utils; +import dwtx.dwtxhelper.Collection; /** * This implementation of <code>IStructuredContentProvider</code> handles @@ -40,7 +40,7 @@ if ( auto aw = cast(ArrayWrapperT!(T)) inputElement ) { return aw.array; } - if ( auto col = cast(View!(T)) inputElement ) { + if ( auto col = cast(Collection) inputElement ) { return col.toArray(); } return null;