public void HideCodeSegmentPreviewWindow () { if (previewWindow != null) { previewWindow.Destroy (); previewWindow = null; } }