Table of Contents

Interface IGlspSession

Namespace
NMF.Glsp.Contracts
Assembly
NMF.Glsp.dll

Denotes a session with a client

public interface IGlspSession

Properties

CanRedo

True, if there is a transaction to redo, otherwise false

bool CanRedo { get; }

Property Value

bool

CanUndo

True, if there is a transaction to undo, otherwise false

bool CanUndo { get; }

Property Value

bool

IsDirty

True, if the client session contains unsaved changes, otherwise false

bool IsDirty { get; set; }

Property Value

bool

Language

Gets the graphical language used in this session

GraphicalLanguage Language { get; }

Property Value

GraphicalLanguage

Root

The root of the graph

GGraph Root { get; }

Property Value

GGraph

SelectedElements

The selected elements

GElement[] SelectedElements { get; set; }

Property Value

GElement[]

Trace

Gets the trace to trace skeletons created for semantic objects

ISkeletonTrace Trace { get; }

Property Value

ISkeletonTrace

Methods

InitializeAsync(Uri)

Initializes the client for the given source model URI

Task InitializeAsync(Uri uri)

Parameters

uri Uri

Returns

Task

Redo()

Redo the last transaction

void Redo()

RequestAsync(RequestAction)

Sends a request to the client and waits for the response

Task<ResponseAction> RequestAsync(RequestAction request)

Parameters

request RequestAction

The request to the client

Returns

Task<ResponseAction>

A task that completes when the client returns a response

Save(Uri)

Saves the content at the given URI

void Save(Uri uri)

Parameters

uri Uri

the URI where to save the session content or null, if the model should be saved at the default location

SendToClient(BaseAction)

Send the given action to the client

void SendToClient(BaseAction action)

Parameters

action BaseAction

The action to send

Synchronize()

Sends the entire graph to the client

void Synchronize()

Undo()

Undo the last transaction

void Undo()