public static IModelUI CreateContext(this ElementBuilder elementBuilder, CommandDispatcher commandDispatcher, IContextNodeModel nodeModel) { IModelUI ui = new ContextNode(); ui.SetupBuildAndUpdate(nodeModel, commandDispatcher, elementBuilder.View, elementBuilder.Context); return(ui); }
public override void SetUp() { base.SetUp(); m_Node = CreateContext <ContextNodeModel>("context", Vector2.zero); }
/// <summary> /// Creates a new ContextBlocksPart. /// </summary> /// <param name="name">The name of the part to create.</param> /// <param name="nodeModel">The model which the part represents.</param> /// <param name="ownerElement">The owner of the part to create.</param> /// <param name="parentClassName">The class name of the parent UI.</param> /// <returns>A newly created ContextBlocksPart.</returns> protected ContextBlocksPart(string name, IContextNodeModel nodeModel, IModelUI ownerElement, string parentClassName) : base(name, nodeModel, ownerElement, parentClassName) { }