Changeset 2591 for trunk/sources/HeuristicLab.Core
- Timestamp:
- 01/05/10 10:31:40 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.2/ChooseItemDialog.cs
r1529 r2591 89 89 } 90 90 91 DiscoveryService discoveryService = new DiscoveryService(); 92 foreach (PluginInfo plugin in discoveryService.Plugins) { 91 foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) { 93 92 TreeNode pluginNode = new TreeNode(plugin.Name); 94 93 pluginNode.Tag = null; 95 94 96 Type[] types = discoveryService.GetTypes(itemType, plugin); 97 foreach (Type type in types) { 95 foreach (Type type in ApplicationManager.Manager.GetTypes(itemType, plugin)) { 98 96 if (!type.IsAbstract) { 99 97 TreeNode itemNode = new TreeNode(); -
trunk/sources/HeuristicLab.Core/3.2/ChooseOperatorDialog.cs
r1529 r2591 70 70 builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter; 71 71 72 DiscoveryService discoveryService = new DiscoveryService(); 73 PluginInfo[] plugins = discoveryService.Plugins; 74 foreach(PluginInfo plugin in plugins) { 72 foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) { 75 73 TreeNode pluginItem = new TreeNode(); 76 74 pluginItem.Text = plugin.Name; 77 75 pluginItem.Tag = plugin; 78 76 79 Type[] operators = discoveryService.GetTypes(typeof(IOperator), plugin);80 foreach (Type type in operators) {81 if (!type.IsAbstract) {77 IEnumerable<Type> operators = ApplicationManager.Manager.GetTypes(typeof(IOperator), plugin); 78 foreach (Type type in operators) { 79 if (!type.IsAbstract) { 82 80 TreeNode operatorItem = new TreeNode(); 83 81 operatorItem.Text = type.Name; … … 87 85 } 88 86 // add plugin node only if it contains operators 89 if (pluginItem.Nodes.Count > 0) {87 if (pluginItem.Nodes.Count > 0) { 90 88 builtinOperatorsTreeView.Nodes.Add(pluginItem); 91 89 } -
trunk/sources/HeuristicLab.Core/3.2/ChooseTypeDialog.cs
r1529 r2591 90 90 } 91 91 92 DiscoveryService discoveryService = new DiscoveryService(); 93 foreach (PluginInfo plugin in discoveryService.Plugins) { 92 foreach (IPluginDescription plugin in ApplicationManager.Manager.Plugins) { 94 93 TreeNode pluginNode = new TreeNode(plugin.Name); 95 94 pluginNode.Tag = null; 96 95 97 Type[] types = discoveryService.GetTypes(baseType, plugin); 98 foreach (Type type in types) { 96 foreach (Type type in ApplicationManager.Manager.GetTypes(baseType, plugin)) { 99 97 TreeNode itemNode = new TreeNode(); 100 98 itemNode.Text = type.Name; -
trunk/sources/HeuristicLab.Core/3.2/HeuristicLabCorePlugin.cs
r2474 r2591 30 30 /// Plugin class for HeuristicLab.Core plugin. 31 31 /// </summary> 32 [ ClassInfo(Name ="HeuristicLab.Core-3.2")]33 [PluginFile( Filename = "HeuristicLab.Core-3.2.dll", Filetype =PluginFileType.Assembly)]34 [ Dependency(Dependency ="HeuristicLab.Common-3.2")]32 [Plugin("HeuristicLab.Core-3.2")] 33 [PluginFile("HeuristicLab.Core-3.2.dll", PluginFileType.Assembly)] 34 [PluginDependency("HeuristicLab.Common-3.2")] 35 35 public class HeuristicLabCorePlugin : PluginBase { 36 36 } -
trunk/sources/HeuristicLab.Core/3.2/Interfaces/IView.cs
r776 r2591 29 29 /// An interface for all kinds visual representations of items (objects, operators...). 30 30 /// </summary> 31 public interface IView : IControl{31 public interface IView { 32 32 /// <summary> 33 33 /// Gets the current item instance. -
trunk/sources/HeuristicLab.Core/3.2/OperatorGraphView.cs
r2474 r2591 184 184 IView view = op.CreateView(); 185 185 if (view != null) 186 PluginManager.ControlManager.ShowControl(view);186 ControlManager.Manager.ShowControl(view); 187 187 } 188 188 } … … 411 411 private void viewToolStripMenuItem_Click(object sender, EventArgs e) { 412 412 IView view = (IView)((ToolStripMenuItem)sender).Tag; 413 PluginManager.ControlManager.ShowControl(view);413 ControlManager.Manager.ShowControl(view); 414 414 } 415 415 private void initialOperatorToolStripMenuItem_Click(object sender, EventArgs e) { -
trunk/sources/HeuristicLab.Core/3.2/OperatorLibraryEditor.cs
r1529 r2591 204 204 IView view = op.CreateView(); 205 205 if (view != null) 206 PluginManager.ControlManager.ShowControl(view);206 ControlManager.Manager.ShowControl(view); 207 207 } 208 208 } … … 287 287 private void viewToolStripMenuItem_Click(object sender, EventArgs e) { 288 288 IView view = (IView)viewToolStripMenuItem.Tag; 289 PluginManager.ControlManager.ShowControl(view);289 ControlManager.Manager.ShowControl(view); 290 290 } 291 291 #endregion -
trunk/sources/HeuristicLab.Core/3.2/ScopeView.cs
r2474 r2591 131 131 if(scopesTreeView.SelectedNode != null && scopesTreeView.SelectedNode.Tag != null) { 132 132 IScope scope = (IScope)scopesTreeView.SelectedNode.Tag; 133 PluginManager.ControlManager.ShowControl(new VariablesScopeView(scope));133 ControlManager.Manager.ShowControl(new VariablesScopeView(scope)); 134 134 } 135 135 } … … 199 199 private void variablesToolStripMenuItem_Click(object sender, EventArgs e) { 200 200 IScope scope = (IScope)scopesTreeView.SelectedNode.Tag; 201 PluginManager.ControlManager.ShowControl(new VariablesScopeView(scope));201 ControlManager.Manager.ShowControl(new VariablesScopeView(scope)); 202 202 } 203 203 private void showViewToolStripMenuItem_Click(object sender, EventArgs e) { 204 204 IItem item = (IItem)((ToolStripMenuItem)sender).Tag; 205 PluginManager.ControlManager.ShowControl(item.CreateView());205 ControlManager.Manager.ShowControl(item.CreateView()); 206 206 } 207 207 #endregion
Note: See TracChangeset
for help on using the changeset viewer.