public override void handleDelete() { EWorldEditor EWorldEditor = "EWorldEditor"; EditorTree EditorTree = "EditorTree"; // The tree handles deletion and notifies the // world editor to clear its selection. // // This is because non-SceneObject elements like // SimGroups also need to be destroyed. // // See EditorTree::onObjectDeleteCompleted(). int selSize = EWorldEditor.getSelectionSize(); if (selSize > 0) { EditorTree.deleteSelection(); } }