static void ClosePlasticWindow(PlasticWindow window) { UnRegisterApplicationFocusHandlers(window); PlasticApp.Dispose(); DrawInspectorOperations.Disable(); DrawAssetOverlay.Dispose(); if (window.mEventSenderScheduler != null) { window.mPingEventLoop.Stop(); window.mEventSenderScheduler.End(); } DisposeNewIncomingChanges(window); AvatarImages.Dispose(); }
internal static void Disable() { try { PlasticApp.Dispose(); if (!sIsEnabledForWorkspace) { return; } AssetsProcessors.Disable(); AssetMenuItems.Disable(); DrawAssetOverlay.Disable(); DrawInspectorOperations.Disable(); } finally { sIsEnabled = false; sIsEnabledForWorkspace = false; } }