use of org.contextmapper.dsl.refactoring.SplitAggregateByEntitiesRefactoring in project context-mapper-dsl by ContextMapper.
the class SplitAggregateByEntitiesRefactoringHandler method executeRefactoring.
@Override
protected void executeRefactoring(CMLResource resource, ExecutionEvent event) {
Aggregate aggregate = (Aggregate) getSelectedElement();
SemanticCMLRefactoring ar = new SplitAggregateByEntitiesRefactoring(aggregate.getName());
ar.refactor(resource, getAllResources());
ar.persistChanges(serializer);
}
Aggregations