... | ... | @@ -55,4 +55,18 @@ We are using the [gitlab issue tracking](https://git.fortiss.org/af3/af3/-/issue |
|
|
7\. You will now be done with the general AF3 developer general knowledge,
|
|
|
the following sections focus more on particular aspects of AF3.
|
|
|
This depends on what your topic and is therefore to be advised by your
|
|
|
supervisor. |
|
|
\ No newline at end of file |
|
|
supervisor.
|
|
|
|
|
|
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)
|
|
|
)); |