Class CreateNodeOperation
- Namespace
- NMF.Glsp.Protocol.Modification
- Assembly
- NMF.Glsp.dll
In order to create a node in the model the client can send a CreateNodeOperation with the necessary information to create that node.
public class CreateNodeOperation : Operation
- Inheritance
-
CreateNodeOperation
- Inherited Members
Fields
CreateNodeOperationKind
The kind value used for this kind of action
public const string CreateNodeOperationKind = "createNode"
Field Value
Properties
Args
Custom arguments.
public IDictionary<string, object> Args { get; init; }
Property Value
ContainerId
The container in which the operation shall be executed.
public string ContainerId { get; init; }
Property Value
ElementTypeId
The type of edge that should be created by the edge creation tool.
public string ElementTypeId { get; init; }
Property Value
Kind
Unique identifier specifying the kind of action to process.
public override string Kind { get; }
Property Value
Location
The location at which the operation shall be executed.
public Point? Location { get; init; }
Property Value
Methods
ExecuteAsync(IGlspSession)
Executes the action in the context of the given session
public override Task ExecuteAsync(IGlspSession session)
Parameters
session
IGlspSessionThe session in which to execute the action