Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5196


Ignore:
Timestamp:
01/03/11 13:23:51 (14 years ago)
Author:
gkronber
Message:

Fixed #1357.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/PluginDescription.cs

    r4482 r5196  
    145145    internal void Disable(string loadingErrorInformation) {
    146146      if (pluginState != PluginState.Undefined)
    147         throw new InvalidOperationException("Can't disabled a plugin in state " + pluginState);
     147        throw new InvalidOperationException("Cannot disable a plugin in state " + pluginState);
    148148      pluginState = PluginState.Disabled;
    149149      this.loadingErrorInformation = loadingErrorInformation;
     
    152152    internal void Enable() {
    153153      if (pluginState != PluginState.Undefined)
    154         throw new InvalidOperationException("Can't enabled a plugin in state " + pluginState);
     154        throw new InvalidOperationException("Cannot enable a plugin in state " + pluginState);
    155155      pluginState = PluginState.Enabled;
    156156    }
     
    158158    internal void Load() {
    159159      if (!(pluginState == PluginState.Enabled || pluginState == PluginState.Loaded))
    160         throw new InvalidOperationException("Can't load a plugin in state " + pluginState);
     160        throw new InvalidOperationException("Cannot load a plugin in state " + pluginState);
    161161      pluginState = PluginState.Loaded;
    162162      nTimesLoaded++;
     
    165165    internal void Unload() {
    166166      if (pluginState != PluginState.Loaded)
    167         throw new InvalidOperationException("Can't unload a plugin in state " + pluginState);
     167        throw new InvalidOperationException("Cannot unload a plugin in state " + pluginState);
    168168      nTimesLoaded--;
    169169      if (nTimesLoaded == 0) pluginState = PluginState.Enabled;
Note: See TracChangeset for help on using the changeset viewer.