- Timestamp:
- 04/30/10 02:48:19 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj
r3390 r3560 122 122 </ItemGroup> 123 123 <ItemGroup> 124 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 125 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 126 <Name>HeuristicLab.Persistence-3.3</Name> 127 </ProjectReference> 124 128 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 125 129 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> -
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLabCollectionsPlugin.cs.frame
r3384 r3560 28 28 [Plugin("HeuristicLab.Collections", "3.3.0.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Collections-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Common", "3.3")]31 30 [PluginDependency("HeuristicLab.Persistence", "3.3")] 32 31 public class HeuristicLabCollectionsPlugin : PluginBase { -
trunk/sources/HeuristicLab.Collections/3.3/ObservableArray.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableArray<T> : IObservableArray<T> { 33 [Storable] 31 34 protected T[] array; 32 35 … … 70 73 array = collection.ToArray(); 71 74 } 75 [StorableConstructor] 76 protected ObservableArray(bool deserializing) { } 72 77 #endregion 73 78 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ObservableCollection<T> : IObservableCollection<T> { 32 [Storable] 30 33 protected List<T> list; 31 34 … … 58 61 list = new List<T>(collection); 59 62 } 63 [StorableConstructor] 64 protected ObservableCollection(bool deserializing) { } 60 65 #endregion 61 66 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 33 [Storable] 31 34 protected Dictionary<TKey, TValue> dict; 32 35 … … 84 87 dict = new Dictionary<TKey, TValue>(dictionary, comparer); 85 88 } 89 [StorableConstructor] 90 protected ObservableDictionary(bool deserializing) { } 86 91 #endregion 87 92 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public abstract class ObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 33 [Storable] 31 34 protected Dictionary<TKey, TItem> dict; 32 35 … … 74 77 dict.Add(GetKeyForItem(item), item); 75 78 } 79 [StorableConstructor] 80 protected ObservableKeyedCollection(bool deserializing) { } 76 81 #endregion 77 82 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ObservableList<T> : IObservableList<T> { 32 [Storable] 30 33 protected List<T> list; 31 34 … … 72 75 list = new List<T>(collection); 73 76 } 77 [StorableConstructor] 78 protected ObservableList(bool deserializing) { } 74 79 #endregion 75 80 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableSet.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableSet<T> : IObservableSet<T> { 33 [Storable] 31 34 protected HashSet<T> set; 32 35 … … 56 59 set = new HashSet<T>(collection, comparer); 57 60 } 61 [StorableConstructor] 62 protected ObservableSet(bool deserializing) { } 58 63 #endregion 59 64 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableArray.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableArray<T> : IObservableArray<T> { 32 [Storable] 30 33 protected IObservableArray<T> array; 31 34 … … 57 60 RegisterEvents(); 58 61 } 62 [StorableConstructor] 63 protected ReadOnlyObservableArray(bool deserializing) { } 59 64 #endregion 60 65 … … 106 111 107 112 #region Events 113 [StorableHook(HookType.AfterDeserialization)] 108 114 protected void RegisterEvents() { 109 115 array.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsReplaced); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableCollection<T> : IObservableCollection<T> { 32 [Storable] 30 33 protected IObservableCollection<T> collection; 31 34 … … 46 49 RegisterEvents(); 47 50 } 51 [StorableConstructor] 52 protected ReadOnlyObservableCollection(bool deserializing) { } 48 53 #endregion 49 54 … … 84 89 85 90 #region Events 91 [StorableHook(HookType.AfterDeserialization)] 86 92 protected void RegisterEvents() { 87 93 collection.ItemsAdded += new CollectionItemsChangedEventHandler<T>(collection_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 32 [Storable] 30 33 protected IObservableDictionary<TKey, TValue> dict; 31 34 … … 60 63 RegisterEvents(); 61 64 } 65 [StorableConstructor] 66 protected ReadOnlyObservableDictionary(bool deserializing) { } 62 67 #endregion 63 68 … … 111 116 112 117 #region Events 118 [StorableHook(HookType.AfterDeserialization)] 113 119 protected void RegisterEvents() { 114 120 dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableKeyedCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 32 [Storable] 30 33 protected IObservableKeyedCollection<TKey, TItem> collection; 31 34 … … 52 55 RegisterEvents(); 53 56 } 57 [StorableConstructor] 58 protected ReadOnlyObservableKeyedCollection(bool deserializing) { } 54 59 #endregion 55 60 … … 100 105 101 106 #region Events 107 [StorableHook(HookType.AfterDeserialization)] 102 108 protected void RegisterEvents() { 103 109 collection.ItemsAdded += new CollectionItemsChangedEventHandler<TItem>(collection_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableList.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableList<T> : IObservableList<T> { 32 [Storable] 30 33 protected IObservableList<T> list; 31 34 … … 54 57 RegisterEvents(); 55 58 } 59 [StorableConstructor] 60 protected ReadOnlyObservableList(bool deserializing) { } 56 61 #endregion 57 62 … … 103 108 104 109 #region Events 110 [StorableHook(HookType.AfterDeserialization)] 105 111 protected void RegisterEvents() { 106 112 list.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<T>>(list_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableSet.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableSet<T> : IObservableSet<T> { 32 [Storable] 30 33 protected IObservableSet<T> set; 31 34 … … 46 49 RegisterEvents(); 47 50 } 51 [StorableConstructor] 52 protected ReadOnlyObservableSet(bool deserializing) { } 48 53 #endregion 49 54 … … 125 130 126 131 #region Events 132 [StorableHook(HookType.AfterDeserialization)] 127 133 protected void RegisterEvents() { 128 134 set.ItemsAdded += new CollectionItemsChangedEventHandler<T>(set_ItemsAdded); -
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemCollection.cs
r3558 r3560 58 58 } 59 59 [StorableConstructor] 60 protected CheckedItemCollection(bool deserializing) { }60 protected CheckedItemCollection(bool deserializing) : base(deserializing) { } 61 61 62 62 public bool IsItemChecked(T item) { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private T[] Items {62 get { return array; }63 set { array = value; }64 }65 66 60 public ItemArray() : base() { } 67 61 public ItemArray(int length) : base(length) { } … … 69 63 public ItemArray(IEnumerable<T> collection) : base(collection) { } 70 64 [StorableConstructor] 71 protected ItemArray(bool deserializing) { }65 protected ItemArray(bool deserializing) : base(deserializing) { } 72 66 73 67 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private List<T> Items {59 get { return list; }60 set { list = value; }61 }62 63 57 public ItemCollection() : base() { } 64 58 public ItemCollection(int capacity) : base(capacity) { } 65 59 public ItemCollection(IEnumerable<T> collection) : base(collection) { } 66 60 [StorableConstructor] 67 protected ItemCollection(bool deserializing) { }61 protected ItemCollection(bool deserializing) : base(deserializing) { } 68 62 69 63 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private Dictionary<TKey, TValue> Items {59 get { return dict; }60 set { dict = value; }61 }62 63 57 public ItemDictionary() : base() { } 64 58 public ItemDictionary(int capacity) : base(capacity) { } 65 59 public ItemDictionary(IDictionary<TKey, TValue> dictionary) : base(dictionary) { } 66 60 [StorableConstructor] 67 protected ItemDictionary(bool deserializing) { }61 protected ItemDictionary(bool deserializing) : base(deserializing) { } 68 62 69 63 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private List<T> Items {62 get { return list; }63 set { list = value; }64 }65 66 60 public ItemList() : base() { } 67 61 public ItemList(int capacity) : base(capacity) { } 68 62 public ItemList(IEnumerable<T> collection) : base(collection) { } 69 63 [StorableConstructor] 70 protected ItemList(bool deserializing) { }64 protected ItemList(bool deserializing) : base(deserializing) { } 71 65 72 66 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private HashSet<T> Items {62 get { return set; }63 set { set = value; }64 }65 66 60 public ItemSet() : base() { } 67 61 public ItemSet(IEnumerable<T> collection) : base(collection) { } 68 62 [StorableConstructor] 69 protected ItemSet(bool deserializing) { }63 protected ItemSet(bool deserializing) : base(deserializing) { } 70 64 71 65 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r3550 r3560 54 54 } 55 55 56 [Storable]57 private Dictionary<TKey, TItem> Items {58 get { return dict; }59 set { dict = value; }60 }61 62 56 protected KeyedItemCollection() : base() { } 63 57 protected KeyedItemCollection(int capacity) : base(capacity) { } 64 58 protected KeyedItemCollection(IEnumerable<TItem> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected KeyedItemCollection(bool deserializing) { }60 protected KeyedItemCollection(bool deserializing) : base(deserializing) { } 67 61 68 62 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/NamedItemCollection.cs
r3390 r3560 38 38 } 39 39 [StorableConstructor] 40 protected NamedItemCollection(bool deserializing) { }40 protected NamedItemCollection(bool deserializing) : base(deserializing) { } 41 41 42 42 [StorableHook(HookType.AfterDeserialization)] -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableArray<T> Items {59 get { return array; }60 set { array = value; }61 }62 63 57 public ReadOnlyItemArray() : base(new ItemArray<T>()) { } 64 58 public ReadOnlyItemArray(IItemArray<T> array) : base(array) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemArray(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemArray(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.array = (IItemArray<T>)((IItemArray<T>)array).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableCollection<T> Items {59 get { return collection; }60 set { collection = value; }61 }62 63 57 public ReadOnlyItemCollection() : base(new ItemCollection<T>()) { } 64 58 public ReadOnlyItemCollection(IItemCollection<T> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemCollection(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemCollection(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.collection = (IItemCollection<T>)((IItemCollection<T>)collection).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableDictionary<TKey, TValue> Items {59 get { return dict; }60 set { dict = value; }61 }62 63 57 public ReadOnlyItemDictionary() : base(new ItemDictionary<TKey, TValue>()) { } 64 58 public ReadOnlyItemDictionary(IItemDictionary<TKey, TValue> dictionary) : base(dictionary) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemDictionary(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemDictionary(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.dict = (IItemDictionary<TKey, TValue>)((IItemDictionary<TKey, TValue>)dict).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableList<T> Items {59 get { return list; }60 set { list = value; }61 }62 63 57 public ReadOnlyItemList() : base(new ItemList<T>()) { } 64 58 public ReadOnlyItemList(IItemList<T> list) : base(list) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemList(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemList(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.list = (IItemList<T>)((IItemList<T>)list).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableSet<T> Items {59 get { return set; }60 set { set = value; }61 }62 63 57 public ReadOnlyItemSet() : base(new ItemSet<T>()) { } 64 58 public ReadOnlyItemSet(IItemSet<T> set) : base(set) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemSet(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemSet(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.set = (IItemSet<T>)((IItemSet<T>)set).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableKeyedCollection<TKey, TItem> Items {59 get { return collection; }60 set { collection = value; }61 }62 63 57 protected ReadOnlyKeyedItemCollection() : base() { } 64 58 public ReadOnlyKeyedItemCollection(IKeyedItemCollection<TKey, TItem> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected ReadOnlyKeyedItemCollection(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyKeyedItemCollection(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.collection = (IKeyedItemCollection<TKey, TItem>)((IKeyedItemCollection<TKey, TItem>)collection).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 }
Note: See TracChangeset
for help on using the changeset viewer.