Search in sources :

Example 1 with LogWatcher

use of com.centurylink.mdw.plugin.launch.LogWatcher in project mdw-designer by CenturyLinkCloud.

the class MdwPlugin method stop.

/**
 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
 */
public void stop(BundleContext context) throws Exception {
    try {
        for (WorkflowProject project : WorkflowProjectManager.getInstance().getWorkflowProjects()) project.clear();
        LogWatcher logWatcher = LogWatcher.instance;
        if (logWatcher != null && logWatcher.isRunning())
            logWatcher.shutdown();
        plugin = null;
    } finally {
        super.stop(context);
    }
}
Also used : LogWatcher(com.centurylink.mdw.plugin.launch.LogWatcher) WorkflowProject(com.centurylink.mdw.plugin.project.model.WorkflowProject)

Aggregations

LogWatcher (com.centurylink.mdw.plugin.launch.LogWatcher)1 WorkflowProject (com.centurylink.mdw.plugin.project.model.WorkflowProject)1