public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate { protected MappingDomain mappingDomain; protected Collection<?> collection; public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter) { super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection())); mappingDomain = (MappingDomain)editingDomain; collection = commandParameter.getCollection(); } /** * This returns the icon, if any, of the action. */ public Object getImage() { return "Placeholder"; } public String getText() { return getLabel(); } /** * This returns the tool tip text, if any, of the action. */ public String getToolTipText() { return getDescription();
public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate { protected MappingDomain mappingDomain; protected Collection<?> collection; public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter) { super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection())); mappingDomain = (MappingDomain)editingDomain; collection = commandParameter.getCollection(); } /** * This returns the icon, if any, of the action. */ public Object getImage() { return "Placeholder"; } public String getText() { return getLabel(); } /** * This returns the tool tip text, if any, of the action. */ public String getToolTipText() { return getDescription();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/action/CreateMappingAction.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/action/CreateOneSidedMappingAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate
1
public static class DelegateCommand extends CommandWrapper implements CommandActionDelegate
2
  {
2
  {
3
    protected MappingDomain mappingDomain;
3
    protected MappingDomain mappingDomain;
4
    protected Collection<?> collection;
4
    protected Collection<?> collection;
5
    public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter)
5
    public DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter)
6
    {
6
    {
7
      super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection()));
7
      super(CreateMappingCommand.create((MappingDomain)editingDomain, commandParameter.getCollection()));
8
      mappingDomain = (MappingDomain)editingDomain;
8
      mappingDomain = (MappingDomain)editingDomain;
9
      collection = commandParameter.getCollection();
9
      collection = commandParameter.getCollection();
10
    }
10
    }
11
    /**
11
    /**
12
     * This returns the icon, if any, of the action.
12
     * This returns the icon, if any, of the action.
13
     */
13
     */
14
    public Object getImage()
14
    public Object getImage()
15
    {
15
    {
16
      return "Placeholder";
16
      return "Placeholder";
17
    }
17
    }
18
    public String getText()
18
    public String getText()
19
    {
19
    {
20
      return getLabel();
20
      return getLabel();
21
    }
21
    }
22
    /**
22
    /**
23
     * This returns the tool tip text, if any, of the action.
23
     * This returns the tool tip text, if any, of the action.
24
     */
24
     */
25
    public String getToolTipText()
25
    public String getToolTipText()
26
    {
26
    {
27
      return getDescription();
27
      return getDescription();
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