Ignore:
Timestamp:
03/28/11 13:34:40 (8 years ago)
Author:
mkommend
Message:

#1418: Changed default formatter of SymbolicExpressionView and hid the maximization parameter for single objective symbolic data analysis problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs

    r5829 r5835  
    4343      IEnumerable<ISymbolicExpressionTreeStringFormatter> formatters = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeStringFormatter>();
    4444      treeFormattersList = new List<ISymbolicExpressionTreeStringFormatter>();
    45       int selectedIndex = -1;
    4645      foreach (ISymbolicExpressionTreeStringFormatter formatter in formatters) {
    47         if (formatter is ISymbolicExpressionTreeStringFormatter)
    48           selectedIndex = treeFormattersList.Count;
    4946        treeFormattersList.Add(formatter);
    5047        formattersComboBox.Items.Add(formatter.Name);
    5148      }
    52       formattersComboBox.SelectedIndex = selectedIndex;
     49      if (formattersComboBox.Items.Count > 0)
     50        formattersComboBox.SelectedIndex = 0;
     51      else
     52        formattersComboBox.SelectedIndex = -1;
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.