Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/15 16:58:58 (10 years ago)
Author:
mkommend
Message:

#2025: Merged changes from the NewItemDialog branch into the trunk.

Location:
trunk/sources/HeuristicLab.Core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/HLScript/HeuristicLab.Coremergedeligible
      /branches/NewItemDialog/HeuristicLab.Coremergedeligible
      /stable/HeuristicLab.Coremergedeligible
      /branches/1721-RandomForestPersistence/HeuristicLab.Core10321-10322
      /branches/Algorithms.GradientDescent/HeuristicLab.Core5516-5520
      /branches/Benchmarking/sources/HeuristicLab.Core6917-7005
      /branches/CloningRefactoring/HeuristicLab.Core4656-4721
      /branches/CodeEditor/HeuristicLab.Core11700-11806
      /branches/DataAnalysis Refactoring/HeuristicLab.Core5471-5808
      /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Core5815-6180
      /branches/DataAnalysis/HeuristicLab.Core4458-4459,​4462,​4464
      /branches/DataPreprocessing/HeuristicLab.Core10085-11101
      /branches/GP.Grammar.Editor/HeuristicLab.Core6284-6795
      /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Core5060
      /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Core6123-9799
      /branches/LogResidualEvaluator/HeuristicLab.Core10202-10483
      /branches/NET40/sources/HeuristicLab.Core5138-5162
      /branches/NSGA-II Changes/HeuristicLab.Core12033-12122
      /branches/ParallelEngine/HeuristicLab.Core5175-5192
      /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Core7568-7810
      /branches/QAPAlgorithms/HeuristicLab.Core6350-6627
      /branches/Restructure trunk solution/HeuristicLab.Core6828
      /branches/RuntimeOptimizer/HeuristicLab.Core8943-9078
      /branches/ScatterSearch (trunk integration)/HeuristicLab.Core7787-8333
      /branches/SlaveShutdown/HeuristicLab.Core8944-8956
      /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Core10204-10479
      /branches/SuccessProgressAnalysis/HeuristicLab.Core5370-5682
      /branches/Trunk/HeuristicLab.Core6829-6865
      /branches/UnloadJobs/HeuristicLab.Core9168-9215
      /branches/VNS/HeuristicLab.Core5594-5752
      /branches/histogram/HeuristicLab.Core5959-6341
  • trunk/sources/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs

    r12012 r12305  
    3636    }
    3737
     38    public int Priority { get; set; }
     39
     40
    3841    public CreatableAttribute() {
    3942      Category = "Other Items";
     43      Priority = int.MaxValue;
    4044    }
    4145    public CreatableAttribute(string category)
     
    5357      else return null;
    5458    }
     59
     60    public static int GetPriority(Type type) {
     61      var attribs = type.GetCustomAttributes(typeof(CreatableAttribute), false);
     62      if (attribs.Length > 0) return ((CreatableAttribute)attribs[0]).Priority;
     63      else return int.MaxValue;
     64    }
    5565  }
    5666}
Note: See TracChangeset for help on using the changeset viewer.