Changeset 2744 for branches/Persistence Test/HeuristicLab.Core
- Timestamp:
- 02/03/10 18:32:57 (14 years ago)
- Location:
- branches/Persistence Test
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Persistence Test
- Property svn:externals set to
-
branches/Persistence Test/HeuristicLab.Core/3.3/ChooseItemDialog.cs
r1529 r2744 29 29 using System.Windows.Forms; 30 30 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.PluginInfrastructure.Manager; 31 32 32 33 namespace HeuristicLab.Core { … … 89 90 } 90 91 91 DiscoveryService discoveryService = new DiscoveryService(); 92 foreach (PluginInfo plugin in discoveryService.Plugins) { 92 foreach (PluginDescription plugin in ApplicationManager.Manager.Plugins) { 93 93 TreeNode pluginNode = new TreeNode(plugin.Name); 94 94 pluginNode.Tag = null; 95 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(); -
branches/Persistence Test/HeuristicLab.Core/3.3/ChooseOperatorDialog.cs
r1529 r2744 29 29 using System.Windows.Forms; 30 30 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.PluginInfrastructure.Manager; 31 32 32 33 namespace HeuristicLab.Core { … … 70 71 builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter; 71 72 72 DiscoveryService discoveryService = new DiscoveryService(); 73 PluginInfo[] plugins = discoveryService.Plugins; 74 foreach(PluginInfo plugin in plugins) { 73 foreach(PluginDescription plugin in ApplicationManager.Manager.Plugins) { 75 74 TreeNode pluginItem = new TreeNode(); 76 75 pluginItem.Text = plugin.Name; 77 76 pluginItem.Tag = plugin; 78 77 79 Type[] operators = discoveryService.GetTypes(typeof(IOperator), plugin); 80 foreach(Type type in operators) { 78 foreach(Type type in ApplicationManager.Manager.GetTypes(typeof(IOperator), plugin)) { 81 79 if(!type.IsAbstract) { 82 80 TreeNode operatorItem = new TreeNode(); -
branches/Persistence Test/HeuristicLab.Core/3.3/ChooseTypeDialog.cs
r1529 r2744 29 29 using System.Windows.Forms; 30 30 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.PluginInfrastructure.Manager; 31 32 32 33 namespace HeuristicLab.Core { … … 90 91 } 91 92 92 DiscoveryService discoveryService = new DiscoveryService(); 93 foreach (PluginInfo plugin in discoveryService.Plugins) { 93 foreach (PluginDescription plugin in ApplicationManager.Manager.Plugins) { 94 94 TreeNode pluginNode = new TreeNode(plugin.Name); 95 95 pluginNode.Tag = null; 96 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; -
branches/Persistence Test/HeuristicLab.Core/3.3/HeuristicLabCorePlugin.cs
r2474 r2744 30 30 /// Plugin class for HeuristicLab.Core plugin. 31 31 /// </summary> 32 [ ClassInfo(Name ="HeuristicLab.Core-3.3")]33 [PluginFile( Filename = "HeuristicLab.Core-3.3.dll", Filetype =PluginFileType.Assembly)]34 [ Dependency(Dependency ="HeuristicLab.Common-3.2")]35 [ Dependency(Dependency ="HeuristicLab.Persistence-3.3")]32 [Plugin("HeuristicLab.Core-3.3")] 33 [PluginFile("HeuristicLab.Core-3.3.dll", PluginFileType.Assembly)] 34 [PluginDependency("HeuristicLab.Common-3.2")] 35 [PluginDependency("HeuristicLab.Persistence-3.3")] 36 36 public class HeuristicLabCorePlugin : PluginBase { 37 37 } -
branches/Persistence Test/HeuristicLab.Core/3.3/Interfaces/IView.cs
r776 r2744 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. -
branches/Persistence Test/HeuristicLab.Core/3.3/OperatorGraphView.cs
r2474 r2744 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) { -
branches/Persistence Test/HeuristicLab.Core/3.3/OperatorLibraryEditor.cs
r1529 r2744 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 -
branches/Persistence Test/HeuristicLab.Core/3.3/ScopeView.cs
r2474 r2744 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.