Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/StructuredSelection.d @ 71:4878bef4a38e
Some fixing
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 04:03:58 +0200 |
parents | 46a6e0e6ccd4 |
children | 5df4896124c7 |
line wrap: on
line diff
--- a/dwtx/jface/viewers/StructuredSelection.d Thu May 22 01:36:46 2008 +0200 +++ b/dwtx/jface/viewers/StructuredSelection.d Thu May 22 04:03:58 2008 +0200 @@ -13,9 +13,8 @@ module dwtx.jface.viewers.StructuredSelection; import dwtx.jface.viewers.IStructuredSelection; +import dwtx.jface.viewers.IElementComparer; -// import java.util.Arrays; -// import java.util.Iterator; import tango.util.collection.ArraySeq; import tango.util.collection.model.Seq; import tango.util.collection.model.SeqView; @@ -95,15 +94,15 @@ * Creates a structured selection from the given <code>List</code> and * element comparer. If an element comparer is provided, it will be used to * determine equality between structured selection objects provided that - * they both are based on the same (identical) comparer. See bug - * + * they both are based on the same (identical) comparer. See bug + * * @param elements * list of selected elements * @param comparer * the comparer, or null * @since 3.4 */ - public StructuredSelection(List elements, IElementComparer comparer) { + public this(Seq!(Object) elements, IElementComparer comparer) { this.elements = elements.toArray(); this.comparer = comparer; } @@ -135,7 +134,7 @@ } bool useComparer = comparer !is null && comparer is s2.comparer; - + //size int myLen = elements.length; if (myLen !is s2.elements.length) {