Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/09 18:30:04 (14 years ago)
Author:
gkronber
Message:

Minor changes in plugin infrastructure. #799

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/DefaultApplicationManager.cs

    r2495 r2497  
    4444    public IEnumerable<IPluginDescription> Plugins {
    4545      get { return plugins; }
     46      internal set { plugins = new List<IPluginDescription>(value); }
    4647    }
    4748
     
    8283          foreach (var plugin in GetInstances<IPlugin>(asm)) {
    8384            plugin.OnLoad();
    84             FirePluginLoaded(plugin.Name);
    8585          }
    8686        }
     87        FirePluginLoaded(desc);
    8788        desc.Load();
    8889      }
    89 
    9090    }
    9191
     
    203203    }
    204204
    205     private void FirePluginLoaded(string name) {
    206       if (PluginLoaded != null) PluginLoaded(this, new PluginInfrastructureEventArgs("Plugin loaded", name));
     205    private void FirePluginLoaded(IPluginDescription plugin) {
     206      if (PluginLoaded != null) PluginLoaded(this, new PluginInfrastructureEventArgs("Plugin loaded", plugin));
    207207    }
    208208
Note: See TracChangeset for help on using the changeset viewer.