Editor.Source_Files.Views.EntityEditorView.tryUpdateName C# (CSharp) Method

tryUpdateName() private method

private tryUpdateName ( ) : void
return void
        private void tryUpdateName()
        {
            if(nameBox.Text != name)
            {
                if(targetType == EntityEditTargetType.TARGET_TYPE)
                {
                    rootView.logView.logWarning("Renaming types not implemented.");
                    return;
                }

                //Update
                rootView.operationManagerInstance.renameEntity(instance, targetId, nameBox.Text);

                name = nameBox.Text;
            }
        }