Table of Contents

Class ApplyLabelEditOperation

Namespace
NMF.Glsp.Protocol.Modification
Assembly
NMF.Glsp.dll

A very common use case in domain models is the support of labels that display textual information to the user. For instance, the GGraph model has support for labels that can be attached to a node, edge, or port, and that contain some text that is rendered in the view. To apply new text to such a label element the client may send an ApplyLabelEditOperation to the server.

public class ApplyLabelEditOperation : Operation
Inheritance
ApplyLabelEditOperation
Inherited Members

Fields

ApplyLabelEditOperationKind

The kind value used for this kind of action

public const string ApplyLabelEditOperationKind = "applyLabelEdit"

Field Value

string

Properties

Kind

Unique identifier specifying the kind of action to process.

public override string Kind { get; }

Property Value

string

LabelId

Identifier of the label model element.

public string LabelId { get; init; }

Property Value

string

Text

Text that should be applied on the label.

public string Text { get; init; }

Property Value

string

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