Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/14 15:18:51 (10 years ago)
Author:
mkommend
Message:

#2238: Removed grammar objects from trees used in symbolic data analysissolutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicExpressionTreeChart.cs

    r11171 r11332  
    9191    }
    9292
     93
     94    private static readonly ISymbolicExpressionGrammar grammar = new TypeCoherentExpressionGrammar();
    9395    private void insertNodeToolStripMenuItem_Click(object sender, EventArgs e) {
    9496      if (currSelected == null || currSelected.Content is SymbolicExpressionTreeTerminalNode) return;
     
    9698
    9799      using (var dialog = new InsertNodeDialog()) {
    98         dialog.SetAllowedSymbols(parent.Grammar.Symbols.Where(s => !(s is ProgramRootSymbol || s is StartSymbol || s is Defun || s is GroupSymbol))); // allow everything
     100        dialog.SetAllowedSymbols(grammar.Symbols.Where(s => !(s is ProgramRootSymbol || s is StartSymbol || s is Defun || s is GroupSymbol))); // allow everything
    99101        dialog.ShowDialog(this);
    100102        if (dialog.DialogResult != DialogResult.OK) return;
Note: See TracChangeset for help on using the changeset viewer.