Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/21 14:37:18 (3 years ago)
Author:
dpiringe
Message:

#3026

  • removed the option to set the value for JsonItems via exporter
    • reworked some base controls
    • added new controls for JsonItem specific properties (e.g. ArrayResizable)
    • deleted a lot of obsolet controls
  • removed the Enable checkbox in the detail view of JsonItems
  • exporter now clones the IOptimizer object
  • added a check + message for unsupported exports
  • list of JsonItems now includes unsupported JsonItems (disabled and marked with 'unsupported')
  • refactored the converter type check
    • now every converter has to specify its supported type(s)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonTemplateInstantiator.cs

    r17560 r17828  
    1 using System.Collections.Generic;
     1using System;
     2using System.Collections.Generic;
    23using System.IO;
    34using System.Linq;
     
    6667      IJsonItem rootItem = Objects.First().Value;
    6768
    68       //TODO validate
     69      // validation
     70      ValidationResult validationResult = rootItem.GetValidator().Validate();
     71      if (!validationResult.Success)
     72        throw validationResult.GenerateException();
    6973
    7074      // inject configuration
     
    105109        if (Objects.TryGetValue(path, out IJsonItem param)) {
    106110          // remove fixed template parameter from config => dont allow to copy them from concrete config
     111          // TODO: shift this into JsonItems?
    107112          obj.Property(nameof(IIntervalRestrictedJsonItem<int>.Minimum))?.Remove();
    108113          obj.Property(nameof(IIntervalRestrictedJsonItem<int>.Maximum))?.Remove();
    109114          obj.Property(nameof(IConcreteRestrictedJsonItem<string>.ConcreteRestrictedItems))?.Remove();
     115          obj.Property(nameof(IMatrixJsonItem.ColumnsResizable))?.Remove();
     116          obj.Property(nameof(IMatrixJsonItem.RowsResizable))?.Remove();
     117          obj.Property(nameof(IArrayJsonItem.Resizable))?.Remove();
    110118          // merge
    111119          param.SetJObject(obj);
Note: See TracChangeset for help on using the changeset viewer.