Last change
on this file since 17829 was
17828,
checked in by dpiringe, 3 years ago
|
#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 size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using Newtonsoft.Json;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.JsonInterface {
|
---|
7 | public class UnsupportedJsonItem : JsonItem {
|
---|
8 | /*
|
---|
9 | public override string Name {
|
---|
10 | get => throw new NotSupportedException();
|
---|
11 | set => throw new NotSupportedException();
|
---|
12 | }
|
---|
13 |
|
---|
14 | public override string Description { // TODO
|
---|
15 | get => throw new NotSupportedException();
|
---|
16 | set => throw new NotSupportedException();
|
---|
17 | }
|
---|
18 |
|
---|
19 | public override string Path {
|
---|
20 | get => throw new NotSupportedException();
|
---|
21 | }
|
---|
22 | */
|
---|
23 |
|
---|
24 | [JsonIgnore]
|
---|
25 | public override IEnumerable<IJsonItem> Children {
|
---|
26 | get => Enumerable.Empty<IJsonItem>();
|
---|
27 | protected set => throw new NotSupportedException();
|
---|
28 | }
|
---|
29 | /*
|
---|
30 | [JsonIgnore]
|
---|
31 | public override IJsonItem Parent {
|
---|
32 | get => throw new NotSupportedException();
|
---|
33 | set => throw new NotSupportedException();
|
---|
34 | }
|
---|
35 | */
|
---|
36 | protected override ValidationResult Validate() => ValidationResult.Successful();
|
---|
37 | }
|
---|
38 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.