Changeset 12969 for branches/gteufl/HeuristicLab.Operators.Programmable.Views/3.3/ProgrammableOperatorView.cs
- Timestamp:
- 09/25/15 14:39:59 (9 years ago)
- Location:
- branches/gteufl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gteufl
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 25 obj
-
- Property svn:mergeinfo changed
-
Property
svn:global-ignores
set to
*.nuget
packages
- Property svn:ignore
-
branches/gteufl/HeuristicLab.Operators.Programmable.Views/3.3/ProgrammableOperatorView.cs
r9456 r12969 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 82 82 base.OnContentChanged(); 83 83 if (ProgrammableOperator == null) { 84 codeEditor.UserCode = "";84 codeEditor.UserCode = string.Empty; 85 85 assembliesTreeView.Nodes.Clear(); 86 86 parameterCollectionView.Content = null; 87 87 } else { 88 88 codeEditor.Prefix = GetGeneratedPrefix(); 89 codeEditor.Suffix = String.Format(" {0} \n }}\n}}", ProgrammableOperator.MethodSuffix);89 codeEditor.Suffix = String.Format(" {0}{1} }}{1}}}", ProgrammableOperator.MethodSuffix, Environment.NewLine); 90 90 codeEditor.UserCode = ProgrammableOperator.Code; 91 if (codeEditor.UserCode == "")92 codeEditor.UserCode = " \n \n \n \n";91 if (codeEditor.UserCode == string.Empty) 92 codeEditor.UserCode = string.Format(" {0}", Environment.NewLine); 93 93 InitializeAssemblyList(); 94 94 InitializeNamespacesList(); 95 foreach (var a in ProgrammableOperator.SelectedAssemblies) { 96 codeEditor.AddAssembly(a); 97 } 95 codeEditor.AddAssemblies(ProgrammableOperator.SelectedAssemblies); 98 96 codeEditor.ScrollAfterPrefix(); 99 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors, "ProgrammableOperator"); 100 showCodeButton.Enabled = 101 ProgrammableOperator.CompilationUnitCode != null && 102 ProgrammableOperator.CompilationUnitCode.Length > 0; 97 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors); 98 showCodeButton.Enabled = !string.IsNullOrEmpty(ProgrammableOperator.CompilationUnitCode); 103 99 parameterCollectionView.Content = ProgrammableOperator.Parameters; 104 100 if (ProgrammableOperator.CompileErrors == null) { … … 135 131 } 136 132 private void showCodeButton_Click(object sender, EventArgs e) { 133 #if __MonoCS__ 134 new TextDialog("CodeViewer", ProgrammableOperator.CompilationUnitCode, true).ShowDialog(this); 135 #else 137 136 new CodeViewer(ProgrammableOperator.CompilationUnitCode).ShowDialog(this); 137 #endif 138 138 } 139 139 private void codeEditor_Validated(object sender, EventArgs e) { … … 203 203 try { 204 204 ProgrammableOperator.Compile(); 205 } catch (Exception ex) { 205 } 206 catch (Exception ex) { 206 207 ErrorHandling.ShowErrorDialog(this, ex); 207 208 }
Note: See TracChangeset
for help on using the changeset viewer.