//---------------------------------------------------------------------------------------------

        public override void onActivated()
        {
            EditorGui             EditorGui = "EditorGui";
            GuiWindowCollapseCtrl DatablockEditorTreeWindow      = "DatablockEditorTreeWindow";
            GuiWindowCollapseCtrl DatablockEditorInspectorWindow = "DatablockEditorInspectorWindow";

            EditorGui.EditorGuiStatusBar EditorGuiStatusBar = "EditorGuiStatusBar";
            Extendable.WorldEditor       EWorldEditor       = "EWorldEditor";

            //Copyright Winterleaf Entertainment L.L.C. 2013
            this["isActive"] = true.AsString();
            //Copyright Winterleaf Entertainment L.L.C. 2013
            ((GuiControl)EditorGui.findObjectByInternalName("WorldEditorToolbar", true)).setVisible(false);
            EditorGui.bringToFront("DatablockEditorPlugin");

            DatablockEditorTreeWindow.setVisible(true);
            DatablockEditorInspectorWindow.setVisible(true);
            DatablockEditorInspectorWindow.makeFirstResponder(true);

            this.map.push();

            // Set the status bar here until all tool have been hooked up
            EditorGuiStatusBar.setInfo("Datablock editor.");

            int numSelected = this.getNumSelectedDatablocks();

            if (numSelected == 0)
            {
                EditorGuiStatusBar.setSelection("");
            }
            else
            {
                EditorGuiStatusBar.setSelection(numSelected + " datablocks selected");
            }

            this.init();
            this.readSettings();

            if (EWorldEditor.getSelectionSize() == 1)
            {
                this.onObjectSelected(EWorldEditor.getSelectedObject(0));
            }

            base.onActivated();
        }