Changeset 3008
- Timestamp:
- 03/12/10 09:47:50 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Programmable/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperator.cs
r2994 r3008 44 44 [Creatable("Test")] 45 45 [StorableClass(StorableClassType.MarkedOnly)] 46 public class ProgrammableOperator : Operator {46 public class ProgrammableOperator : Operator, IParameterizedNamedItem { 47 47 48 48 #region Fields & Properties 49 50 public new IObservableKeyedCollection<string, IParameter> Parameters { 51 get { return base.Parameters; } 52 } 49 53 50 54 private MethodInfo executeMethod; … … 76 80 77 81 [Storable] 78 private IEnumerable<string> _persistedAssemblyNames {82 private List<string> _persistedAssemblyNames { 79 83 get { 80 return Assemblies.Keys.Select(a => a.FullName) ;84 return Assemblies.Keys.Select(a => a.FullName).ToList(); 81 85 } 82 86 set { … … 106 110 return true; 107 111 } 108 } 112 } 109 113 110 114 #endregion … … 168 172 Assemblies = defaultAssemblyDict; 169 173 Plugins = defaultPluginDict; 170 namespaces = new HashSet<string>(DiscoverNamespaces()); 174 namespaces = new HashSet<string>(DiscoverNamespaces()); 171 175 Parameters.ItemsAdded += (s, a) => OnSignatureChanged(s, a); 172 176 Parameters.ItemsRemoved += (s, a) => OnSignatureChanged(s, a); -
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.Designer.cs
r2917 r3008 86 86 tabPage2.Name = "tabPage2"; 87 87 tabPage2.Padding = new System.Windows.Forms.Padding(3); 88 tabPage2.Size = new System.Drawing.Size(977, 593);88 tabPage2.Size = new System.Drawing.Size(977, 619); 89 89 tabPage2.TabIndex = 1; 90 90 tabPage2.Text = "Code"; … … 106 106 // 107 107 this.splitContainer1.Panel2.Controls.Add(this.codeEditor); 108 this.splitContainer1.Size = new System.Drawing.Size(971, 587);108 this.splitContainer1.Size = new System.Drawing.Size(971, 613); 109 109 this.splitContainer1.SplitterDistance = 254; 110 110 this.splitContainer1.TabIndex = 0; … … 126 126 // 127 127 this.splitContainer2.Panel2.Controls.Add(this.namespacesTreeView); 128 this.splitContainer2.Size = new System.Drawing.Size(248, 5 52);129 this.splitContainer2.SplitterDistance = 2 76;128 this.splitContainer2.Size = new System.Drawing.Size(248, 578); 129 this.splitContainer2.SplitterDistance = 289; 130 130 this.splitContainer2.TabIndex = 2; 131 131 // … … 136 136 this.assembliesTreeView.Location = new System.Drawing.Point(0, 0); 137 137 this.assembliesTreeView.Name = "assembliesTreeView"; 138 this.assembliesTreeView.Size = new System.Drawing.Size(248, 2 76);138 this.assembliesTreeView.Size = new System.Drawing.Size(248, 289); 139 139 this.assembliesTreeView.TabIndex = 0; 140 140 this.assembliesTreeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.assembliesTreeView_AfterCheck); … … 147 147 this.namespacesTreeView.Name = "namespacesTreeView"; 148 148 this.namespacesTreeView.PathSeparator = "."; 149 this.namespacesTreeView.Size = new System.Drawing.Size(248, 2 72);149 this.namespacesTreeView.Size = new System.Drawing.Size(248, 285); 150 150 this.namespacesTreeView.TabIndex = 0; 151 151 this.namespacesTreeView.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.namespacesTreeView_AfterCheck); … … 155 155 this.showCodeButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 156 156 | System.Windows.Forms.AnchorStyles.Right))); 157 this.showCodeButton.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; 158 this.showCodeButton.Cursor = System.Windows.Forms.Cursors.Hand; 159 this.showCodeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 160 this.showCodeButton.Location = new System.Drawing.Point(65, 561); 157 this.showCodeButton.Location = new System.Drawing.Point(65, 587); 161 158 this.showCodeButton.Name = "showCodeButton"; 162 159 this.showCodeButton.Size = new System.Drawing.Size(186, 23); 163 160 this.showCodeButton.TabIndex = 0; 164 this.showCodeButton.Text = "&Show Generated Code ";161 this.showCodeButton.Text = "&Show Generated Code ..."; 165 162 this.showCodeButton.UseVisualStyleBackColor = false; 166 163 this.showCodeButton.Click += new System.EventHandler(this.showCodeButton_Click); … … 169 166 // 170 167 this.compileButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 171 this.compileButton.Location = new System.Drawing.Point(3, 5 61);168 this.compileButton.Location = new System.Drawing.Point(3, 587); 172 169 this.compileButton.Name = "compileButton"; 173 170 this.compileButton.Size = new System.Drawing.Size(56, 23); … … 183 180 this.codeEditor.Name = "codeEditor"; 184 181 this.codeEditor.Prefix = ""; 185 this.codeEditor.Size = new System.Drawing.Size(713, 587);182 this.codeEditor.Size = new System.Drawing.Size(713, 613); 186 183 this.codeEditor.Suffix = ""; 187 184 this.codeEditor.TabIndex = 0; -
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.cs
r2917 r3008 78 78 descriptionTextBox.Enabled = false; 79 79 assembliesTreeView.Nodes.Clear(); 80 parameterCollectionView1.Content = null; 80 81 } else { 81 82 codeEditor.Enabled = true; … … 97 98 codeEditor.ScrollAfterPrefix(); 98 99 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors, "ProgrammableOperator"); 100 showCodeButton.Enabled = 101 ProgrammableOperator.CompilationUnitCode != null && 102 ProgrammableOperator.CompilationUnitCode.Length > 0; 103 parameterCollectionView1.Content = ProgrammableOperator.Parameters; 99 104 } 100 105 } -
trunk/sources/HeuristicLab.Operators.Programmable/3.3/ProgrammableOperatorView.resx
r2917 r3008 121 121 <value>107, 17</value> 122 122 </metadata> 123 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 <value>107, 17</value> 125 </metadata> 123 126 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 127 <value>17, 17</value>
Note: See TracChangeset
for help on using the changeset viewer.