Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/11 12:50:28 (13 years ago)
Author:
gkronber
Message:

#1418 Implemented variable view that allows to add and remove variable strings (ported from external evaluation views). Implemented formatter and grammar for external evaluation plugin. Fixed bug in symbolic expression view. Fixed bug in run collection variable impact view. Removed unused plugin HeuristicLab.Problems.ExternalEvaluation.GP.Views. Renamed files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs

    r5513 r5750  
    2525using HeuristicLab.MainForm.WindowsForms;
    2626using HeuristicLab.PluginInfrastructure;
     27using System;
    2728
    2829namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views {
     
    6061      if (Content == null || formattersComboBox.SelectedIndex < 0)
    6162        textBox.Text = string.Empty;
    62       else
    63         textBox.Text = treeFormattersList[formattersComboBox.SelectedIndex].Format(Content);
     63      else {
     64        try {
     65          textBox.Text = treeFormattersList[formattersComboBox.SelectedIndex].Format(Content);
     66        }
     67        catch (ArgumentException) { textBox.Text = "Cannot format the symbolic expression tree with the selected formatter."; }
     68        catch (NotSupportedException) { textBox.Text = "Formatting of the symbolic expression tree is not supported by the selected formatter."; }
     69      }
    6470    }
    6571
Note: See TracChangeset for help on using the changeset viewer.