Ignore:
Timestamp:
06/25/15 10:30:06 (4 years ago)
Author:
mkommend
Message:

#2025: Changed categories for all creatables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/MetaOptimizers/BatchRun.cs

    r12012 r12504  
    3636  /// </summary>
    3737  [Item("Batch Run", "A run in which an optimizer is executed a given number of times.")]
    38   [Creatable("Testing & Analysis")]
     38  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 110)]
    3939  [StorableClass]
    4040  public sealed class BatchRun : NamedItem, IOptimizer, IStorableContent {
     
    237237        batchRunAction = BatchRunAction.Prepare;
    238238        // a race-condition may occur when the optimizer has changed the state by itself in the meantime
    239         try { Optimizer.Prepare(clearRuns); } catch (InvalidOperationException) { }
     239        try { Optimizer.Prepare(clearRuns); }
     240        catch (InvalidOperationException) { }
    240241      } else {
    241242        ExecutionState = ExecutionState.Stopped;
     
    249250      if (Optimizer.ExecutionState == ExecutionState.Stopped) Optimizer.Prepare();
    250251      // a race-condition may occur when the optimizer has changed the state by itself in the meantime
    251       try { Optimizer.Start(); } catch (InvalidOperationException) { }
     252      try { Optimizer.Start(); }
     253      catch (InvalidOperationException) { }
    252254    }
    253255    public void Pause() {
     
    258260      if (Optimizer.ExecutionState != ExecutionState.Started) return;
    259261      // a race-condition may occur when the optimizer has changed the state by itself in the meantime
    260       try { Optimizer.Pause(); } catch (InvalidOperationException) { }
     262      try { Optimizer.Pause(); }
     263      catch (InvalidOperationException) { }
    261264    }
    262265    public void Stop() {
     
    270273      }
    271274      // a race-condition may occur when the optimizer has changed the state by itself in the meantime
    272       try { Optimizer.Stop(); } catch (InvalidOperationException) { }
     275      try { Optimizer.Stop(); }
     276      catch (InvalidOperationException) { }
    273277    }
    274278
Note: See TracChangeset for help on using the changeset viewer.