Table of Contents

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

string

Properties

Args

Custom arguments.

public IDictionary<string, object> Args { get; init; }

Property Value

IDictionary<string, object>

ContainerId

The container in which the operation shall be executed.

public string ContainerId { get; init; }

Property Value

string

ElementTypeId

The type of edge that should be created by the edge creation tool.

public string ElementTypeId { get; init; }

Property Value

string

Kind

Unique identifier specifying the kind of action to process.

public override string Kind { get; }

Property Value

string

Location

The location at which the operation shall be executed.

public Point? Location { get; init; }

Property Value

Point?

Methods

ExecuteAsync(IGlspSession)

Executes the action in the context of the given session

public override Task ExecuteAsync(IGlspSession session)

Parameters

session IGlspSession

The session in which to execute the action

Returns

Task