void OnBackendChanged(bool notify)
{
ApplicationBackend oldBackend = Backend;
Backend = backendController.Backend;
backendController.Stopped += OnBackendStopped;
UpdateWidgetLibraries (false, false);
ClearCollections ();
if (notify && BackendChanged != null)
BackendChanged (oldBackend);
Backend.ActiveProject = ActiveProject != null ? ActiveProject.ProjectBackend : null;
}