Command subcommand;
/**
* This creates a command instance that adds the new mappings in the collection into the appropriate place in the mapping root's.
*/
public AddMappingCommand(MappingDomain domain, Collection<?> collection)
{
super(LABEL, DESCRIPTION);
this.domain = domain;
this.collection = collection;
Command subcommand;
/**
* This creates a command instance that removes the mappings in the collection from the mapping root.
*/
public RemoveMappingCommand(MappingDomain domain, Collection<?> collection)
{
super(LABEL, DESCRIPTION);
this.domain = domain;
this.collection = collection;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/AddMappingCommand.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/RemoveMappingCommand.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | Command subcommand;↵ | | 1 | Command subcommand;↵
|
|
|
2 | /**↵ | | 2 | /**↵
|
3 | * This creates a command instance that adds the new mappings in the collection into the appropriate place in the mapping root's.↵ | | 3 | * This creates a command instance that removes the mappings in the collection from the mapping root.↵
|
4 | */↵ | | 4 | */↵
|
5 | public AddMappingCommand(MappingDomain domain, Collection<?> collection)↵ | | 5 | public RemoveMappingCommand(MappingDomain domain, Collection<?> collection)↵
|
6 | {↵ | | 6 | {↵
|
7 | super(LABEL, DESCRIPTION);↵ | | 7 | super(LABEL, DESCRIPTION);↵
|
|
8 | this.domain = domain;↵ | | 8 | this.domain = domain;↵
|
9 | this.collection = collection; | | 9 | this.collection = collection;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |