private static void ShowEditor()
 {
     targetChain = GetChainFromSelection();
     ShowEditorWindow();
 }
 protected virtual void OnDestroy()
 {
     targetChain = null;
     isOpen      = false;
     SceneView.RepaintAll();
 }
 public static void ShowEditor(Chain chain)
 {
     targetChain = chain;
     ShowEditorWindow();
 }
 protected virtual void OnSelectionChange()
 {
     targetChain = GetChainFromSelection();;
     Repaint();
 }