Table of Contents

Class EdgeDescriptor<TSource, TTarget>

Namespace
NMF.Glsp.Language
Assembly
NMF.Glsp.dll

Denotes the base class to describe edges that are not represented by semantic elements

public abstract class EdgeDescriptor<TSource, TTarget> : EdgeDescriptor<(TSource, TTarget)>

Type Parameters

TSource

The semantic type of the edge source

TTarget

The semantic type of the edge target

Inheritance
ElementDescriptor<(TSource, TTarget)>
EdgeDescriptor<(TSource, TTarget)>
EdgeDescriptor<TSource, TTarget>
Inherited Members

Properties

CanCreateElement

True, if an instance of this element type can be created, otherwise False

public override bool CanCreateElement { get; }

Property Value

bool

SourceDescriptor

Gets the descriptor used for the source of the edge

public abstract NodeDescriptor<TSource> SourceDescriptor { get; }

Property Value

NodeDescriptor<TSource>

TargetDescriptor

Gets the descriptor used for the target of the edge

public abstract NodeDescriptor<TTarget> TargetDescriptor { get; }

Property Value

NodeDescriptor<TTarget>

Methods

CreateElement(string, object)

Creates a new element

public override (TSource, TTarget) CreateElement(string profile, object parent)

Parameters

profile string

The profile for the created element

parent object

The semantic parent element

Returns

(TSource, TTarget)

A new element

DefineLayout()

Called by the graphical language setup to initialize the layout described by this descriptor

protected override void DefineLayout()

ToolLabel(string)

Gets the label used for the tool palette

public override string ToolLabel(string profile)

Parameters

profile string

The profile

Returns

string

The text used for tools