Table of Contents

Class DescriptorBase

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

Denotes the base class for graph element descriptors

public abstract class DescriptorBase
Inheritance
DescriptorBase
Derived
Inherited Members

Methods

CalculateTypeHints()

Calculates type hints for this rule

protected abstract IEnumerable<TypeHint> CalculateTypeHints()

Returns

IEnumerable<TypeHint>

A collection of type hints

CreateGraph(object, IDiagram, ISkeletonTrace)

Creates the graph for the given semantic root element

protected abstract GGraph CreateGraph(object semanticRoot, IDiagram diagram, ISkeletonTrace trace)

Parameters

semanticRoot object

The semantic root element

diagram IDiagram

The notation diagram

trace ISkeletonTrace

A skeleton trace

Returns

GGraph

The Graph instance

D<T>()

Resolves the given descriptor type to a descriptor

protected T D<T>() where T : DescriptorBase

Returns

T

The descriptor instance, if any

Type Parameters

T

The type of elements

DefineLayout()

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

protected abstract void DefineLayout()