Non editable elements [message #1855527] |
Wed, 19 October 2022 11:11  |
Eclipse User |
|
|
|
Hi,
I have two different scenarios I am working on but they both require the same thing. To restrict the user from editing a particular piece of text.
Scenario 1: I have a grammar with classes A and B. I want the user to be able to edit class A and its attributes and references but not class B (should be read-only for the user and will be populated by some model transformations).
Scenario 2: I have a grammar with classes A and B and another Ecore metamodel with classes C and D. I want to be able to show some information from class C located in the Ecore meta model, in the textual grammar (which does not contain class C).
Are there any Xtext features that support what I want to do in Scenario 1 and 2?
Thank you!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04662 seconds