Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
af3
af3-backup
Wiki
Code_FAQ
Code_FAQ
· Changes
Page history
Code_FAQ, version 7
authored
Dec 08, 2017
by
Anonym
Hide whitespace changes
Inline
Side-by-side
Code_FAQ.md
0 → 100644
View page @
603fb99b
Modify a model programmatically
===============================
Say you want to do:
myModel.setParameter(42);
Then you should actually write:
ITopLevelElement modelContext = IPersistencyService.getInstance().getTopLevelElementFor(modelElement);
modelContext.runAsCommand(() ->
myModel.setParameter(42)
));