import java.util.Collection; import java.util.EventObject; import java.util.HashSet; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.emf.common.command.Command; import org.eclipse.emf.common.command.CommandStackListener; import org.eclipse.emf.common.command.CompoundCommand; import org.eclipse.emf.edit.command.CommandActionDelegate; import org.eclipse.emf.edit.command.CommandParameter; import org.eclipse.emf.edit.domain.EditingDomain; import org.eclipse.emf.edit.ui.action.CommandAction; import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; import org.eclipse.emf.mapping.Mapping; import org.eclipse.emf.mapping.MappingPlugin; import org.eclipse.emf.mapping.MappingRoot; import org.eclipse.emf.mapping.command.CreateMappingCommand; import org.eclipse.emf.mapping.command.NameMatchMappingCommand; import org.eclipse.emf.mapping.domain.MappingDomain; import org.eclipse.emf.mapping.presentation.IComposedSelection; import org.eclipse.emf.mapping.presentation.MappingUIPlugin;
import java.util.Collection; import java.util.EventObject; import java.util.HashSet; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.resource.ImageDescriptor; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.emf.common.command.Command; import org.eclipse.emf.common.command.CommandStackListener; import org.eclipse.emf.common.command.CompoundCommand; import org.eclipse.emf.edit.command.CommandActionDelegate; import org.eclipse.emf.edit.command.CommandParameter; import org.eclipse.emf.edit.domain.EditingDomain; import org.eclipse.emf.edit.ui.action.CommandAction; import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry; import org.eclipse.emf.mapping.Mapping; import org.eclipse.emf.mapping.MappingPlugin; import org.eclipse.emf.mapping.MappingRoot; import org.eclipse.emf.mapping.command.CreateMappingCommand; import org.eclipse.emf.mapping.command.TypeMatchMappingCommand; import org.eclipse.emf.mapping.domain.MappingDomain; import org.eclipse.emf.mapping.presentation.IComposedSelection; import org.eclipse.emf.mapping.presentation.MappingUIPlugin;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/action/NameMatchMappingAction.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/action/TypeMatchMappingAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
import java.util.Collection;
1
import java.util.Collection;
2
import java.util.EventObject;
2
import java.util.EventObject;
3
import java.util.HashSet;
3
import java.util.HashSet;
4
import org.eclipse.jface.action.Action;
4
import org.eclipse.jface.action.Action;
5
import org.eclipse.jface.action.IAction;
5
import org.eclipse.jface.action.IAction;
6
import org.eclipse.jface.resource.ImageDescriptor;
6
import org.eclipse.jface.resource.ImageDescriptor;
7
import org.eclipse.jface.viewers.ISelection;
7
import org.eclipse.jface.viewers.ISelection;
8
import org.eclipse.jface.viewers.ISelectionProvider;
8
import org.eclipse.jface.viewers.ISelectionProvider;
9
import org.eclipse.ui.IWorkbenchPart;
9
import org.eclipse.ui.IWorkbenchPart;
10
import org.eclipse.emf.common.command.Command;
10
import org.eclipse.emf.common.command.Command;
11
import org.eclipse.emf.common.command.CommandStackListener;
11
import org.eclipse.emf.common.command.CommandStackListener;
12
import org.eclipse.emf.common.command.CompoundCommand;
12
import org.eclipse.emf.common.command.CompoundCommand;
13
import org.eclipse.emf.edit.command.CommandActionDelegate;
13
import org.eclipse.emf.edit.command.CommandActionDelegate;
14
import org.eclipse.emf.edit.command.CommandParameter;
14
import org.eclipse.emf.edit.command.CommandParameter;
15
import org.eclipse.emf.edit.domain.EditingDomain;
15
import org.eclipse.emf.edit.domain.EditingDomain;
16
import org.eclipse.emf.edit.ui.action.CommandAction;
16
import org.eclipse.emf.edit.ui.action.CommandAction;
17
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
17
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
18
import org.eclipse.emf.mapping.Mapping;
18
import org.eclipse.emf.mapping.Mapping;
19
import org.eclipse.emf.mapping.MappingPlugin;
19
import org.eclipse.emf.mapping.MappingPlugin;
20
import org.eclipse.emf.mapping.MappingRoot;
20
import org.eclipse.emf.mapping.MappingRoot;
21
import org.eclipse.emf.mapping.command.CreateMappingCommand;
21
import org.eclipse.emf.mapping.command.CreateMappingCommand;
22
import org.eclipse.emf.mapping.command.NameMatchMappingCommand;
22
import org.eclipse.emf.mapping.command.TypeMatchMappingCommand;
23
import org.eclipse.emf.mapping.domain.MappingDomain;
23
import org.eclipse.emf.mapping.domain.MappingDomain;
24
import org.eclipse.emf.mapping.presentation.IComposedSelection;
24
import org.eclipse.emf.mapping.presentation.IComposedSelection;
25
import org.eclipse.emf.mapping.presentation.MappingUIPlugin;
25
import org.eclipse.emf.mapping.presentation.MappingUIPlugin;
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0