<
From version < 11.1 >
edited by Soeren Domroes
on 2019/04/01 10:44
To version < 12.1 >
edited by Soeren Domroes
on 2019/04/01 10:58
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -276,12 +276,26 @@
276 276  const snapshotsDescriptions: CodeContainer = await lclient.sendRequest("keith/kicool/compile", [uri, KeithDiagramManager.DIAGRAM_TYPE + '_sprotty', command,
277 277   this.compilerWidget.compileInplace]) as CodeContainer
278 278  // or via a thenable
279 +client.languageClient.then(lClient => {
280 +lClient.sendRequest("keith/kicool/compile").then((languages: LanguageDescription[]) => {
281 + // very important stuff
282 +}
283 +// await is preferred, since it is shorter.
284 +{{/code}}
279 279  
286 +In this example client is an instance of a language client. It is usally injected like this:
280 280  
288 +{{code}}
289 +constructor(
290 + @inject(KeithLanguageClientContribution) public readonly client: KeithLanguageClientContribution
291 + // other injected classes
292 + ) {
293 + // constructor stuff
294 +}
281 281  {{/code}}
282 282  
283 283  \\
284 284  
285 -== How to send messages ==
299 +== How to make a new ==
286 286  
287 287  == How to write a widget ==
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -56852527
1 +56852530
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/56852527/Running KEITH
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/56852530/Running KEITH