Skip to content

Commit

Permalink
Merge pull request #129 from mdenet/fix/load-file-in-generated-xtext-…
Browse files Browse the repository at this point in the history
…editor

Ensure Xtext editors are initialised from file if one is specified
  • Loading branch information
szschaler authored Nov 29, 2023
2 parents 242e76d + 7ff0e4f commit 423a12e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ function createPanelForDefinitionId(panel){

newPanel.setType(panelDefinition.language);

// Set from the activity
newPanel.setValue(panel.file);
newPanel.setValueSha(panel.sha);
newPanel.setFileUrl(panel.url)

break;

// TODO create other panel types e.g. models and metamodels so the text is formatted correctly
Expand Down

0 comments on commit 423a12e

Please sign in to comment.