Changeset 1592


Ignore:
Timestamp:
Jun 6, 2010, 9:32:36 AM (12 years ago)
Author:
kopal
Message:

Stop now calls all Stop() methods of plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Execution/ExecutionEngine.cs

    r1591 r1592  
    3636        private WorkspaceManager WorkspaceManagerEditor;
    3737        private Scheduler scheduler;
     38        private WorkspaceModel workspaceModel;
    3839     
    3940        /// <summary>
     
    6162        public void Execute(WorkspaceModel workspaceModel)
    6263        {
     64            this.workspaceModel = workspaceModel;
     65
    6366            if (!IsRunning)
    6467            {
     
    8386        public void Stop()
    8487        {
    85             scheduler.Shutdown();
    86             IsRunning = false;   
     88            scheduler.Shutdown();           
     89            foreach(PluginModel pluginModel in workspaceModel.AllPluginModels)
     90            {
     91                pluginModel.Plugin.Stop();
     92            }
     93            IsRunning = false;
    8794        }
    8895
Note: See TracChangeset for help on using the changeset viewer.