public override void onPopWindowClosed()
        {
            EditorGui.DeactivateAll();
            CodeBehind.PlugIns.TerrainPainterPlugin TerrainPainterPlugin = "TerrainPainterPlugin";
            TerrainPainterPlugin.onActivated();
            TerrainPainter TerrainPainter = "TerrainPainter";

            TerrainPainter.attachTo("TerrainPainterPreview");
        }
 public override void onPopWindow()
 {
     EditorGui.DeactivateAll();
     CodeBehind.PlugIns.TerrainPainterPlugin TerrainPainterPlugin = "TerrainPainterPlugin";
     TerrainPainterPlugin.onActivated();
 }