File tree 2 files changed +5
-9
lines changed
src/main/java/org/contextmapper/standalone/example
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
# dependency versions
2
- cmlVersion =5.11 .0
2
+ cmlVersion =5.12 .0
3
3
xtendLibVersion =2.19.0
4
4
junitVersion =5.5.2
5
5
commonsLangVersion =2.6
Original file line number Diff line number Diff line change 17
17
18
18
import org .contextmapper .dsl .ContextMappingDSLStandaloneSetup ;
19
19
import org .contextmapper .dsl .cml .CMLResourceContainer ;
20
- import org .contextmapper .dsl .contextMappingDSL .ContextMappingModel ;
21
- import org .contextmapper .dsl .contextMappingDSL .Partnership ;
22
- import org .contextmapper .dsl .contextMappingDSL .SharedKernel ;
23
- import org .contextmapper .dsl .contextMappingDSL .UpstreamDownstreamRelationship ;
24
- import org .contextmapper .dsl .refactoring .Refactoring ;
20
+ import org .contextmapper .dsl .refactoring .SemanticCMLRefactoring ;
25
21
import org .contextmapper .dsl .refactoring .SplitBoundedContextByOwner ;
26
22
import org .eclipse .emf .common .util .URI ;
27
- import org .eclipse .emf .ecore .resource .Resource ;
28
23
import org .eclipse .emf .ecore .resource .impl .ResourceSetImpl ;
29
24
30
25
/**
@@ -44,8 +39,9 @@ public static void main(String[] args) {
44
39
CMLResourceContainer resource = new CMLResourceContainer (new ResourceSetImpl ().getResource (URI .createURI (INSURANCE_EXAMPLE_URI ), true ));
45
40
46
41
// apply refactoring
47
- Refactoring refactoring = new SplitBoundedContextByOwner ("PolicyManagementContext" );
48
- refactoring .doRefactor (resource );
42
+ SemanticCMLRefactoring refactoring = new SplitBoundedContextByOwner ("PolicyManagementContext" );
43
+ refactoring .refactor (resource );
44
+ refactoring .persistChanges ();
49
45
}
50
46
51
47
}
You can’t perform that action at this time.
0 commit comments