Changeset 16956 for branches/2457_ExpertSystem/HeuristicLab.Analysis/3.3/DataVisualization/IndexedDataTable.cs
- Timestamp:
- 05/15/19 13:36:51 (5 years ago)
- Location:
- branches/2457_ExpertSystem/HeuristicLab.Analysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2457_ExpertSystem/HeuristicLab.Analysis
- Property svn:mergeinfo changed
-
branches/2457_ExpertSystem/HeuristicLab.Analysis/3.3/DataVisualization/IndexedDataTable.cs
r16075 r16956 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 using HeuristicLab.Core; 30 30 using HeuristicLab.Data; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 33 33 namespace HeuristicLab.Analysis { 34 34 [Item("IndexedDataTable", "A data table where the points are also given with a certain index.")] 35 [Storable Class]36 public class IndexedDataTable<T> : NamedItem, IStringConvertibleMatrix {35 [StorableType("1453C842-6312-4931-9B05-20399A0528D6")] 36 public class IndexedDataTable<T> : NamedItem, IStringConvertibleMatrix, IDataTable<IndexedDataRow<T>> { 37 37 public static new Image StaticItemImage { 38 38 get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; } … … 75 75 76 76 [StorableConstructor] 77 protected IndexedDataTable( bool deserializing) : base(deserializing) { }77 protected IndexedDataTable(StorableConstructorFlag _) : base(_) { } 78 78 protected IndexedDataTable(IndexedDataTable<T> original, Cloner cloner) 79 79 : base(original, cloner) { … … 90 90 public IndexedDataTable(string name) 91 91 : base(name) { 92 VisualProperties = new DataTableVisualProperties( );92 VisualProperties = new DataTableVisualProperties(name); 93 93 rows = new NamedItemCollection<IndexedDataRow<T>>(); 94 94 this.RegisterRowsEvents(); … … 96 96 public IndexedDataTable(string name, string description) 97 97 : base(name, description) { 98 VisualProperties = new DataTableVisualProperties( );98 VisualProperties = new DataTableVisualProperties(name); 99 99 rows = new NamedItemCollection<IndexedDataRow<T>>(); 100 100 this.RegisterRowsEvents(); … … 103 103 public override IDeepCloneable Clone(Cloner cloner) { 104 104 return new IndexedDataTable<T>(this, cloner); 105 } 106 107 #region BackwardsCompatibility3.3 108 // Using the name as title is the old style 109 [Storable(DefaultValue = true)] 110 private bool useNameAsTitle = false; 111 #endregion 112 113 [StorableHook(HookType.AfterDeserialization)] 114 private void AfterDeserialization() { 115 // BackwardsCompatibility3.3 116 #region Backwards compatible code, remove with 3.4 117 // Previously, the Name of the IndexedDataTable was used as Title 118 if (useNameAsTitle && string.IsNullOrEmpty(VisualProperties.Title)) { 119 VisualProperties.Title = Name; 120 useNameAsTitle = false; 121 } 122 #endregion 105 123 } 106 124
Note: See TracChangeset
for help on using the changeset viewer.