Changeset 2438


Ignore:
Timestamp:
3/10/2012 8:48:25 AM (3 years ago)
Author:
lowjoel
Message:

Rename LoadingPolicy? to PluginLoadingPolicy? to be absolutely clear on the purpose of the enum and attribute.

Location:
branches/eraser6/pluginsRewrite/Eraser.Plugins
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/Eraser.Plugins.csproj

    r2406 r2438  
    6262    <Compile Include="IPlugin.cs" /> 
    6363    <Compile Include="IRegistrar.cs" /> 
    64     <Compile Include="LoadingPolicy.cs" /> 
     64    <Compile Include="PluginLoadingPolicy.cs" /> 
    6565    <Compile Include="PersistentStore.cs" /> 
    6666    <Compile Include="PluginInfo.cs" /> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/Host.cs

    r2370 r2438  
    359359 
    360360            //Load the plugin, depending on type 
    361             bool result = instance.LoadingPolicy == LoadingPolicy.Core ? 
     361            bool result = instance.LoadingPolicy == PluginLoadingPolicy.Core ? 
    362362                LoadCorePlugin(instance) : LoadNonCorePlugin(instance); 
    363363            if (result) 
     
    382382            if (CorePlugins.Count(x => x == info.Assembly.GetName().Name) == 0) 
    383383            { 
    384                 info.LoadingPolicy = LoadingPolicy.None; 
     384                info.LoadingPolicy = PluginLoadingPolicy.None; 
    385385                return LoadNonCorePlugin(info); 
    386386            } 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/PluginInfo.cs

    r2379 r2438  
    117117                    else if (attr.Constructor.DeclaringType == typeof(AssemblyCompanyAttribute)) 
    118118                        info.Author = (string)attr.ConstructorArguments[0].Value; 
    119                     else if (attr.Constructor.DeclaringType.GUID == typeof(LoadingPolicyAttribute).GUID) 
    120                         LoadingPolicy = (LoadingPolicy)attr.ConstructorArguments[0].Value; 
     119                    else if (attr.Constructor.DeclaringType.GUID == typeof(PluginLoadingPolicyAttribute).GUID) 
     120                        LoadingPolicy = (PluginLoadingPolicy)attr.ConstructorArguments[0].Value; 
    121121 
    122122                this.AssemblyInfo = info; 
     
    138138        /// therefore cannot be disabled.) 
    139139        /// </summary> 
    140         public LoadingPolicy LoadingPolicy { get; internal set; } 
     140        public PluginLoadingPolicy LoadingPolicy { get; internal set; } 
    141141 
    142142        /// <summary> 
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/PluginLoadingPolicy.cs

    r2405 r2438  
    3030    /// Loading policies applicable for a given plugin. 
    3131    /// </summary> 
    32     public enum LoadingPolicy 
     32    public enum PluginLoadingPolicy 
    3333    { 
    3434        /// <summary> 
     
    5151        /// </summary> 
    5252        /// <remarks>This policy does not have an effect when declared in the 
    53         /// <see cref="LoadingPolicyAttribute"/> attribute and will be equivalent 
     53        /// <see cref="PluginLoadingPolicyAttribute"/> attribute and will be equivalent 
    5454        /// to <see cref="None"/>.</remarks> 
    5555        Core 
     
    6262    /// </summary> 
    6363    [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)] 
    64     public sealed class LoadingPolicyAttribute : Attribute 
     64    public sealed class PluginLoadingPolicyAttribute : Attribute 
    6565    { 
    6666        /// <summary> 
     
    6868        /// </summary> 
    6969        /// <param name="policy">The policy used for loading the plugin.</param> 
    70         public LoadingPolicyAttribute(LoadingPolicy policy) 
     70        public PluginLoadingPolicyAttribute(PluginLoadingPolicy policy) 
    7171        { 
    7272            Policy = policy; 
     
    7676        /// The loading policy to be applied to the assembly. 
    7777        /// </summary> 
    78         public LoadingPolicy Policy 
     78        public PluginLoadingPolicy Policy 
    7979        { 
    8080            get; 
Note: See TracChangeset for help on using the changeset viewer.