- Timestamp:
- 02/03/10 18:32:57 (15 years ago)
- Location:
- branches/Persistence Test
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Persistence Test
- Property svn:externals set to
-
branches/Persistence Test/HeuristicLab.OptimizationFrontend/3.3/AvailableOperatorsForm.cs
r1530 r2744 26 26 using System.Data; 27 27 using System.Drawing; 28 using System.Linq; 28 29 using System.Text; 29 30 using System.Windows.Forms; 30 31 using HeuristicLab.PluginInfrastructure; 31 32 using HeuristicLab.Core; 33 using HeuristicLab.PluginInfrastructure.Manager; 32 34 33 35 namespace HeuristicLab.OptimizationFrontend { … … 56 58 builtinOperatorsTreeView.TreeViewNodeSorter = nodeSorter; 57 59 58 DiscoveryService discoveryService = new DiscoveryService(); 59 PluginInfo[] plugins = discoveryService.Plugins; 60 foreach(PluginInfo plugin in plugins) { 60 foreach(PluginDescription plugin in ApplicationManager.Manager.Plugins) { 61 61 TreeNode pluginItem = new TreeNode(); 62 62 pluginItem.Text = plugin.Name; 63 63 pluginItem.Tag = plugin; 64 64 65 Type[] operators = discoveryService.GetTypes(typeof(IOperator), plugin);65 Type[] operators = ApplicationManager.Manager.GetTypes(typeof(IOperator), plugin).ToArray(); 66 66 foreach(Type type in operators) { 67 67 if(!type.IsAbstract) { -
branches/Persistence Test/HeuristicLab.OptimizationFrontend/3.3/HeuristicLabOptimizationFrontendApplication.cs
r1872 r2744 27 27 28 28 namespace HeuristicLab.OptimizationFrontend { 29 [ ClassInfo(Name = "HeuristicLab 3.3", Description="Next generation heuristic optimization environment.")]29 [Application("HeuristicLab 3.3", "Next generation heuristic optimization environment.")] 30 30 class HeuristicLabOptimizationFrontendApplication : ApplicationBase { 31 31 public override void Run() { 32 32 Form mainForm = new MainForm(); 33 PluginManager.ControlManager = (IControlManager)mainForm;33 ControlManager.RegisterManager((IControlManager)mainForm); 34 34 Application.Run(mainForm); 35 35 } -
branches/Persistence Test/HeuristicLab.OptimizationFrontend/3.3/HeuristicLabOptimizationFrontendPlugin.cs
r1872 r2744 27 27 28 28 namespace HeuristicLab.OptimizationFrontend { 29 [ ClassInfo(Name ="HeuristicLab.OptimizationFrontend-3.3")]30 [PluginFile( Filename = "HeuristicLab.OptimizationFrontend-3.3.dll", Filetype =PluginFileType.Assembly)]31 [ Dependency(Dependency ="HeuristicLab.Core-3.3")]29 [Plugin("HeuristicLab.OptimizationFrontend-3.3")] 30 [PluginFile("HeuristicLab.OptimizationFrontend-3.3.dll", PluginFileType.Assembly)] 31 [PluginDependency("HeuristicLab.Core-3.3")] 32 32 public class HeuristicLabOptimizationFrontendPlugin : PluginBase { 33 33 } -
branches/Persistence Test/HeuristicLab.OptimizationFrontend/3.3/MainForm.cs
r1530 r2744 25 25 using System.Data; 26 26 using System.Drawing; 27 using System.Linq; 27 28 using System.Text; 28 29 using System.Threading; … … 58 59 runningTasks = 0; 59 60 60 DiscoveryService discoveryService = new DiscoveryService();61 62 61 // discover creatable items 63 Type[] creatables = discoveryService.GetTypes(typeof(IEditable));62 Type[] creatables = ApplicationManager.Manager.GetTypes(typeof(IEditable)).ToArray(); 64 63 string[] names = new string[creatables.Length]; 65 64 for(int i = 0; i < creatables.Length; i++) … … 84 83 85 84 #region IControlManager Members 86 public void ShowControl( IControlcontrol) {85 public void ShowControl(object control) { 87 86 if(control is IEditor) { 88 87 EditorForm form = new EditorForm((IEditor)control); … … 171 170 else { 172 171 editor.Filename = task.filename; 173 PluginManager.ControlManager.ShowControl(editor);172 ControlManager.Manager.ShowControl(editor); 174 173 } 175 174 lock(locker) { … … 234 233 MessageBox.Show("The selected item doesn't provide an editor.", "Editor Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 235 234 } else { 236 PluginManager.ControlManager.ShowControl(editor);235 ControlManager.Manager.ShowControl(editor); 237 236 EnableDisableItems(); 238 237 }
Note: See TracChangeset
for help on using the changeset viewer.