Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 13:32:34 (12 years ago)
Author:
mkommend
Message:

#1734: Added StorableConstructor to all storable DataImporter classes.

Location:
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/AddNewColumnGroupCommand.cs

    r7267 r9614  
    4040    private ColumnGroup newColumnGroup;
    4141
    42     private AddNewColumnGroupCommand()
    43       : base(null) {
    44     }
     42    [StorableConstructor]
     43    protected AddNewColumnGroupCommand(bool deserializing) : base(deserializing) { }
    4544
    4645    public AddNewColumnGroupCommand(DataSet dataSet)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/AlignColumnGroupsCommand.cs

    r7625 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    2625using System.Windows.Forms;
    2726using HeuristicLab.DataImporter.Data;
     
    4140    private int removePos2;
    4241
    43     private AlignColumnGroupsCommand()
    44       : base(null, null) {
    45     }
     42    [StorableConstructor]
     43    protected AlignColumnGroupsCommand(bool deserializing) : base(deserializing) { }
    4644
    4745    public AlignColumnGroupsCommand(DataSet dataSet, List<string> affectedColumnGroupNames)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/DeleteColumnGroupCommand.cs

    r7992 r9614  
    3232    private List<KeyValuePair<int, ColumnGroup>> deletedColumnGroups;
    3333
    34     private DeleteColumnGroupCommand()
    35       : base(null, null) {
     34    [StorableConstructor]
     35    protected DeleteColumnGroupCommand(bool deserializing)
     36      : base(deserializing) {
    3637      deletedColumnGroups = new List<KeyValuePair<int, ColumnGroup>>();
    3738    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/DeleteColumnsWithTooFewValuesCommand.cs

    r6133 r9614  
    1717    private SortedDictionary<int, ColumnBase> deletedColumns;
    1818    private ICollection<int> oldSortedColumnIndices;
    19     private DeleteColumnsWithTooFewValuesCommand()
    20       : base(null, string.Empty) {
     19    [StorableConstructor]
     20    protected DeleteColumnsWithTooFewValuesCommand(bool deserializing)
     21      : base(deserializing) {
    2122      deletedColumns = new SortedDictionary<int, ColumnBase>();
    2223    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/MergeColumnGroupsCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
     24using System.Windows.Forms;
    2625using HeuristicLab.DataImporter.Data;
    2726using HeuristicLab.DataImporter.Data.CommandBase;
    2827using HeuristicLab.DataImporter.Data.Model;
    2928using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    30 using System.Windows.Forms;
    3129
    3230namespace HeuristicLab.DataImporter.Command {
     
    3836    private ColumnGroup newColumnGroup;
    3937
    40     private MergeColumnGroupsCommand()
    41       : base(null, null) {
     38    [StorableConstructor]
     39    protected MergeColumnGroupsCommand(bool deserializing)
     40      : base(deserializing) {
    4241      oldColumnGroups = new SortedDictionary<int, ColumnGroup>();
    4342      oldRowCounts = new List<int>();
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/MoveColumnGroupLeftCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2724using HeuristicLab.DataImporter.Data;
    2825using HeuristicLab.DataImporter.Data.CommandBase;
     
    3532  [ViewableCommandInfoAttribute("Move ColumnGroup left", 1, ColumnGroupState.Active, "ColumnGroup Commands", Position = 2)]
    3633  public class MoveColumnGroupLeftCommand : DataSetCommandWithAffectedColumnGroupsBase {
    37     private MoveColumnGroupLeftCommand()
    38       : base(null, null) {
    39     }
     34    [StorableConstructor]
     35    protected MoveColumnGroupLeftCommand(bool deserializing) : base(deserializing) { }
    4036    public MoveColumnGroupLeftCommand(DataSet dataSet, List<string> affectedColumnGroups)
    4137      : base(dataSet, affectedColumnGroups) {
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/MoveColumnGroupRightCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2724using HeuristicLab.DataImporter.Data;
    2825using HeuristicLab.DataImporter.Data.CommandBase;
     
    3532  [ViewableCommandInfoAttribute("Move ColumnGroup right", 1, ColumnGroupState.Active, "ColumnGroup Commands", Position = 3)]
    3633  public class MoveColumnGroupRightCommand : DataSetCommandWithAffectedColumnGroupsBase {
    37     private MoveColumnGroupRightCommand()
    38       : base(null, null) {
    39     }
     34    [StorableConstructor]
     35    protected MoveColumnGroupRightCommand(bool deserializing) : base(deserializing) { }
    4036
    4137    public MoveColumnGroupRightCommand(DataSet dataSet, List<string> affectedColumnGroups)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeDataset/SplitColumnGroupCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    2624using System.Windows.Forms;
    2725using HeuristicLab.DataImporter.Data;
     
    4038    private ColumnGroup newColumnGroup2;
    4139
    42     private SplitColumnGroupsCommand()
    43       : base(null, string.Empty, null) {
    44     }
    45 
     40    [StorableConstructor]
     41    protected SplitColumnGroupsCommand(bool deserializing) : base(deserializing) { }
    4642    public SplitColumnGroupsCommand(DataSet dataSet, string columnGroupName, int[] affectedColumns)
    4743      : base(dataSet, columnGroupName, affectedColumns) {
Note: See TracChangeset for help on using the changeset viewer.