Mercurial > projects > dwt-addons
comparison 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 |
comparison
equal
deleted
inserted
replaced
103:2d6540440fe6 | 104:04b47443bb01 |
---|---|
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwtx.jface.viewers.IStructuredSelection; | 13 module dwtx.jface.viewers.IStructuredSelection; |
14 | 14 |
15 import dwtx.jface.viewers.ISelection; | 15 import dwtx.jface.viewers.ISelection; |
16 | 16 import dwtx.dwtxhelper.Collection; |
17 import tango.util.collection.model.SeqView; | |
18 import tango.util.collection.model.Iterator; | |
19 | 17 |
20 /** | 18 /** |
21 * A selection containing elements. | 19 * A selection containing elements. |
22 */ | 20 */ |
23 public interface IStructuredSelection : ISelection { | 21 public interface IStructuredSelection : ISelection { |
32 /** | 30 /** |
33 * Returns an iterator over the elements of this selection. | 31 * Returns an iterator over the elements of this selection. |
34 * | 32 * |
35 * @return an iterator over the selected elements | 33 * @return an iterator over the selected elements |
36 */ | 34 */ |
37 public Iterator!(Object) iterator(); | 35 public Iterator iterator(); |
38 | 36 |
39 /** | 37 /** |
40 * Returns the number of elements selected in this selection. | 38 * Returns the number of elements selected in this selection. |
41 * | 39 * |
42 * @return the number of elements selected | 40 * @return the number of elements selected |
51 public Object[] toArray(); | 49 public Object[] toArray(); |
52 | 50 |
53 /** | 51 /** |
54 * Returns the elements in this selection as a <code>List</code>. | 52 * Returns the elements in this selection as a <code>List</code>. |
55 * <strong>Note</strong> In the default implementation of {@link #toList()} in | 53 * <strong>Note</strong> In the default implementation of {@link #toList()} in |
56 * {@link StructuredSelection} the returned list is not a copy of the elements of the | 54 * {@link StructuredSelection} the returned list is not a copy of the elements of the |
57 * receiver and modifying it will modify the contents of the selection. | 55 * receiver and modifying it will modify the contents of the selection. |
58 * | 56 * |
59 * @return the selected elements as a list | 57 * @return the selected elements as a list |
60 */ | 58 */ |
61 public SeqView!(Object) toList(); | 59 public List toList(); |
62 } | 60 } |