Search in sources :

Example 1 with SplitAggregateByEntitiesRefactoring

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);
}
Also used : SemanticCMLRefactoring(org.contextmapper.dsl.refactoring.SemanticCMLRefactoring) SplitAggregateByEntitiesRefactoring(org.contextmapper.dsl.refactoring.SplitAggregateByEntitiesRefactoring) Aggregate(org.contextmapper.dsl.contextMappingDSL.Aggregate)

Aggregations

Aggregate (org.contextmapper.dsl.contextMappingDSL.Aggregate)1 SemanticCMLRefactoring (org.contextmapper.dsl.refactoring.SemanticCMLRefactoring)1 SplitAggregateByEntitiesRefactoring (org.contextmapper.dsl.refactoring.SplitAggregateByEntitiesRefactoring)1