Project

General

Profile

Modify a model programmatically

ITopLevelElement modelContext = IPersistencyService.getInstance().getTopLevelElementFor(modelElement);
modelContext.runAsCommand(() -> // here do your modifications));