public override void onSelect(string id, string y)
            {
                GuiEditorProfileInspector GuiEditorProfileInspector = "GuiEditorProfileInspector";
                GuiTextEditCtrl           GuiEditorProfileFileName  = "GuiEditorProfileFileName";
                ProfilePane ProfilePane = "ProfilePane";

                GuiControlProfile obj = this.getItemValue(id.AsInt());

                if (obj == 0)
                {
                    return;
                }

                GuiEditorProfileInspector.inspect(obj);

                ProfilePane.onProfileSelected();

                string fileName = obj.getFilename();

                if (fileName == "")
                {
                    fileName = sGlobal["$GUI_EDITOR_DEFAULT_PROFILE_FILENAME"];
                }

                GuiEditorProfileFileName.setText(fileName);
            }
            public override void onUnselect(int itemOrObjectId)
            {
                GuiEditorProfileInspector GuiEditorProfileInspector = "GuiEditorProfileInspector";
                GuiTextEditCtrl           GuiEditorProfileFileName  = "GuiEditorProfileFileName";

                GuiEditorProfileInspector.inspect("0");
                GuiEditorProfileFileName.setText("");
            }