protected override void RenameEnded(RenameEndedArgs args) { if (args.acceptedRename) { var element = treeModel.Find(args.itemID); VariablesUtilityEditor.RenameAsset(element.variable, args.newName); treeModel.SetData(VariablesTableGenerator.GenerateTree()); Reload(); } }
IList <VariablesElement> GetData() { // generate some test data return(VariablesTableGenerator.GenerateTree()); }