Mercurial > projects > dwt-addons
comparison dwtx/jface/wizard/WizardSelectionPage.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 | ea8ff534f622 |
children |
comparison
equal
deleted
inserted
replaced
103:2d6540440fe6 | 104:04b47443bb01 |
---|---|
15 import dwtx.jface.wizard.IWizardPage; | 15 import dwtx.jface.wizard.IWizardPage; |
16 import dwtx.jface.wizard.IWizard; | 16 import dwtx.jface.wizard.IWizard; |
17 import dwtx.jface.wizard.WizardPage; | 17 import dwtx.jface.wizard.WizardPage; |
18 import dwtx.jface.wizard.IWizardNode; | 18 import dwtx.jface.wizard.IWizardNode; |
19 | 19 |
20 import tango.util.collection.ArraySeq; | |
21 | 20 |
22 import dwt.dwthelper.utils; | 21 import dwt.dwthelper.utils; |
22 import dwtx.dwtxhelper.Collection; | |
23 | 23 |
24 /** | 24 /** |
25 * An abstract implementation of a wizard page that manages a | 25 * An abstract implementation of a wizard page that manages a |
26 * set of embedded wizards. | 26 * set of embedded wizards. |
27 * <p> | 27 * <p> |
42 | 42 |
43 /** | 43 /** |
44 * List of wizard nodes that have cropped up in the past | 44 * List of wizard nodes that have cropped up in the past |
45 * (element type: <code>IWizardNode</code>). | 45 * (element type: <code>IWizardNode</code>). |
46 */ | 46 */ |
47 private ArraySeq!(Object) selectedWizardNodes; | 47 private List selectedWizardNodes; |
48 | 48 |
49 /** | 49 /** |
50 * Creates a new wizard selection page with the given name, and | 50 * Creates a new wizard selection page with the given name, and |
51 * with no title or image. | 51 * with no title or image. |
52 * | 52 * |
53 * @param pageName the name of the page | 53 * @param pageName the name of the page |
54 */ | 54 */ |
55 protected this(String pageName) { | 55 protected this(String pageName) { |
56 super(pageName); | 56 super(pageName); |
57 selectedWizardNodes = new ArraySeq!(Object); | 57 selectedWizardNodes = new ArrayList(); |
58 // Cannot finish from this page | 58 // Cannot finish from this page |
59 setPageComplete(false); | 59 setPageComplete(false); |
60 } | 60 } |
61 | 61 |
62 /** | 62 /** |
72 | 72 |
73 if (selectedWizardNodes.contains(cast(Object)node)) { | 73 if (selectedWizardNodes.contains(cast(Object)node)) { |
74 return; | 74 return; |
75 } | 75 } |
76 | 76 |
77 selectedWizardNodes.append(cast(Object)node); | 77 selectedWizardNodes.add(cast(Object)node); |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * The <code>WizardSelectionPage</code> implementation of | 81 * The <code>WizardSelectionPage</code> implementation of |
82 * this <code>IWizardPage</code> method returns <code>true</code> | 82 * this <code>IWizardPage</code> method returns <code>true</code> |