Changeset 5196 for trunk/sources
- Timestamp:
- 01/03/11 13:23:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Manager/PluginDescription.cs
r4482 r5196 145 145 internal void Disable(string loadingErrorInformation) { 146 146 if (pluginState != PluginState.Undefined) 147 throw new InvalidOperationException("Can 't disableda plugin in state " + pluginState);147 throw new InvalidOperationException("Cannot disable a plugin in state " + pluginState); 148 148 pluginState = PluginState.Disabled; 149 149 this.loadingErrorInformation = loadingErrorInformation; … … 152 152 internal void Enable() { 153 153 if (pluginState != PluginState.Undefined) 154 throw new InvalidOperationException("Can 't enableda plugin in state " + pluginState);154 throw new InvalidOperationException("Cannot enable a plugin in state " + pluginState); 155 155 pluginState = PluginState.Enabled; 156 156 } … … 158 158 internal void Load() { 159 159 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); 161 161 pluginState = PluginState.Loaded; 162 162 nTimesLoaded++; … … 165 165 internal void Unload() { 166 166 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); 168 168 nTimesLoaded--; 169 169 if (nTimesLoaded == 0) pluginState = PluginState.Enabled;
Note: See TracChangeset
for help on using the changeset viewer.