Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/18/10 16:47:16 (13 years ago)
Author:
epitzer
Message:

Better reflect single successor operation generation inside user visible code. (#1275)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.cs

    r4477 r4838  
    7171      } else {
    7272        codeEditor.Prefix = GetGeneratedPrefix();
    73         codeEditor.Suffix = @"    return null;
    74   }
    75 }";
     73        codeEditor.Suffix = String.Format("    {0}\n  }}\n}}", ProgrammableOperator.MethodSuffix);
    7674        codeEditor.UserCode = ProgrammableOperator.Code;
    7775        if (codeEditor.UserCode == "")
     
    121119        ProgrammableOperator.Compile();
    122120        MessageBox.Show("Compilation successful", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
    123       }
    124       catch (Exception ex) {
     121      } catch (Exception ex) {
    125122        ErrorHandling.ShowErrorDialog(this, ex);
    126123      }
Note: See TracChangeset for help on using the changeset viewer.