Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/09 17:45:45 (14 years ago)
Author:
gkronber
Message:

Worked on plugin infrastructure refactoring. (Fully functional revision). #799

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure/BaseClasses/PluginBase.cs

    r2481 r2488  
    3737    public PluginBase() { }
    3838
    39     private PluginDescriptionAttribute PluginDescriptionAttribute {
     39    private PluginAttribute PluginAttribute {
    4040      get {
    41         object[] pluginAttributes = this.GetType().GetCustomAttributes(typeof(PluginDescriptionAttribute), false);
     41        object[] pluginAttributes = this.GetType().GetCustomAttributes(typeof(PluginAttribute), false);
    4242        // exactly one attribute of the type PluginDescriptionAttribute must be given
    4343        if (pluginAttributes.Length != 1) {
    44           throw new InvalidPluginException("Found multiple PluginDescriptionAttributes on type " + this.GetType());
     44          throw new InvalidPluginException("Found multiple PluginAttributes on type " + this.GetType());
    4545        }
    46         return (PluginDescriptionAttribute)pluginAttributes[0];
     46        return (PluginAttribute)pluginAttributes[0];
    4747      }
    4848    }
     
    5252    public string Name {
    5353      get {
    54         return PluginDescriptionAttribute.Name;
     54        return PluginAttribute.Name;
    5555      }
    5656    }
Note: See TracChangeset for help on using the changeset viewer.