Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/05/10 10:31:40 (15 years ago)
Author:
gkronber
Message:

Copied refactored plugin infrastructure from branch and merged changeset r2586:2589 from branch into the trunk. #799

Location:
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/HeuristicLabMainFormWindowsFormsPlugin.cs

    r2529 r2591  
    2626
    2727namespace HeuristicLab.MainForm.WindowsForms {
    28   [ClassInfo(Name = "HeuristicLab.MainForm.WindowsForms-3.2")]
    29   [PluginFile(Filename = "HeuristicLab.MainForm.WindowsForms-3.2.dll", Filetype = PluginFileType.Assembly)]
    30   [PluginFile(Filename = "WeifenLuo.WinFormsUI.Docking.dll", Filetype = PluginFileType.Assembly)]
    31   [Dependency(Dependency = "HeuristicLab.MainForm-3.2")]
     28  [Plugin("HeuristicLab.MainForm.WindowsForms-3.2")]
     29  [PluginFile("HeuristicLab.MainForm.WindowsForms-3.2.dll", PluginFileType.Assembly)]
     30  [PluginFile("WeifenLuo.WinFormsUI.Docking.dll", PluginFileType.Assembly)]
     31  [PluginDependency("HeuristicLab.MainForm-3.2")]
    3232  public class HeuristicLabMainFormTestPlugin : PluginBase {
    3333  }
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/MainFormBase.cs

    r2548 r2591  
    269269
    270270    #region create menu and toolbar
    271     protected virtual void CreateGUI() {
    272       DiscoveryService ds = new DiscoveryService();
    273 
    274       object[] items = ds.GetInstances(userInterfaceItemType);
     271    protected virtual void CreateGUI() {     
     272
    275273      IEnumerable<IMenuItem> toolStripMenuItems =
    276         from mi in items
     274        from mi in ApplicationManager.Manager.GetInstances(userInterfaceItemType)
    277275        where mi is IMenuItem
    278276        orderby ((IMenuItem)mi).Position
     
    281279        AddToolStripMenuItem(menuItem);
    282280
    283       items = ds.GetInstances(userInterfaceItemType);
    284281      IEnumerable<IToolBarItem> toolStripButtonItems =
    285         from bi in items
     282        from bi in ApplicationManager.Manager.GetInstances(userInterfaceItemType)
    286283        where bi is IToolBarItem
    287284        orderby ((IToolBarItem)bi).Position
Note: See TracChangeset for help on using the changeset viewer.