comparison dwtx/core/commands/contexts/ContextManagerEvent.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 6518c18a01f7
children
comparison
equal deleted inserted replaced
103:2d6540440fe6 104:04b47443bb01
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module dwtx.core.commands.contexts.ContextManagerEvent; 13 module dwtx.core.commands.contexts.ContextManagerEvent;
14 import tango.util.collection.model.Set;
15 14
16 import dwtx.core.commands.contexts.ContextManager; 15 import dwtx.core.commands.contexts.ContextManager;
17 import dwtx.core.commands.common.AbstractBitSetEvent; 16 import dwtx.core.commands.common.AbstractBitSetEvent;
18 17
19 import dwt.dwthelper.utils; 18 import dwt.dwthelper.utils;
19 import dwtx.dwtxhelper.Collection;
20 20
21 /** 21 /**
22 * <p> 22 * <p>
23 * An event indicating that the set of defined context identifiers has changed. 23 * An event indicating that the set of defined context identifiers has changed.
24 * </p> 24 * </p>
53 /** 53 /**
54 * The set of context identifiers (strings) that were active before the 54 * The set of context identifiers (strings) that were active before the
55 * change occurred. If the active contexts did not changed, then this value 55 * change occurred. If the active contexts did not changed, then this value
56 * is <code>null</code>. 56 * is <code>null</code>.
57 */ 57 */
58 private const Set!(String) previouslyActiveContextIds; 58 private const Set previouslyActiveContextIds;
59 59
60 /** 60 /**
61 * Creates a new instance of this class. 61 * Creates a new instance of this class.
62 * 62 *
63 * @param contextManager 63 * @param contextManager
80 * activeContextChanged is <code>true</code>. 80 * activeContextChanged is <code>true</code>.
81 */ 81 */
82 public this(ContextManager contextManager, 82 public this(ContextManager contextManager,
83 String contextId, bool contextIdAdded, 83 String contextId, bool contextIdAdded,
84 bool activeContextsChanged, 84 bool activeContextsChanged,
85 Set!(String) previouslyActiveContextIds) { 85 Set previouslyActiveContextIds) {
86 if (contextManager is null) { 86 if (contextManager is null) {
87 throw new NullPointerException(); 87 throw new NullPointerException();
88 } 88 }
89 89
90 this.contextManager = contextManager; 90 this.contextManager = contextManager;
129 * guaranteed to be <code>null</code> if 129 * guaranteed to be <code>null</code> if
130 * haveActiveContextChanged() is <code>false</code> and is 130 * haveActiveContextChanged() is <code>false</code> and is
131 * guaranteed to not be <code>null</code> if 131 * guaranteed to not be <code>null</code> if
132 * haveActiveContextsChanged() is <code>true</code>. 132 * haveActiveContextsChanged() is <code>true</code>.
133 */ 133 */
134 public final Set!(String) getPreviouslyActiveContextIds() { 134 public final Set getPreviouslyActiveContextIds() {
135 return previouslyActiveContextIds; 135 return previouslyActiveContextIds;
136 } 136 }
137 137
138 /** 138 /**
139 * Returns whether the active context identifiers have changed. 139 * Returns whether the active context identifiers have changed.