CloneSet46


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
40420.991class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14049
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/CreateMappingAction.java
24053
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/NameMatchMappingAction.java
34050
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/RemoveMappingAction.java
44053
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/TypeMatchMappingAction.java
Next
Last
Clone Instance
1
Line Count
40
Source Line
49
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/CreateMappingAction.java

@Override public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) {
  if (editingDomain != null) {
    editingDomain.getCommandStack().removeCommandStackListener(this );
  }
  super.setActiveWorkbenchPart(workbenchPart);
  if (editingDomain != null) {
    editingDomain.getCommandStack().addCommandStackListener(this );
  }
}

public void commandStackChanged(EventObject event) {
  selectionChanged(action, ((ISelectionProvider) workbenchPart).getSelection());
}

@Override public void selectionChanged(IAction action, ISelection selection) {
  if (selection instanceof IComposedSelection) {
    super.selectionChanged(action, ((IComposedSelection) selection).getCombinedSelection());
  }
  else {
    super.selectionChanged(action, selection);
  }
}

/**
 * This returns the image that is used if the command does not provide an override.
 */
protected Object getDefaultImage() {
  return MappingPlugin.getPlugin().getImage("full/etool16/CreateOneToOneMapping");
}


Next
Previous
Clone Instance
2
Line Count
40
Source Line
53
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/NameMatchMappingAction.java

@Override public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) {
  if (editingDomain != null) {
    editingDomain.getCommandStack().removeCommandStackListener(this );
  }
  super.setActiveWorkbenchPart(workbenchPart);
  if (editingDomain != null) {
    editingDomain.getCommandStack().addCommandStackListener(this );
  }
}

public void commandStackChanged(EventObject event) {
  selectionChanged(action, ((ISelectionProvider) workbenchPart).getSelection());
}

@Override public void selectionChanged(IAction action, ISelection selection) {
  if (selection instanceof IComposedSelection) {
    super.selectionChanged(action, ((IComposedSelection) selection).getCombinedSelection());
  }
  else {
    super.selectionChanged(action, selection);
  }
}

/**
 * This returns the image that is used if the command does not provide an override.
 */
protected Object getDefaultImage() {
  return MappingPlugin.getPlugin().getImage("full/etool16/MatchByName");
}


Next
Previous
Clone Instance
3
Line Count
40
Source Line
50
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/RemoveMappingAction.java

@Override public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) {
  if (editingDomain != null) {
    editingDomain.getCommandStack().removeCommandStackListener(this );
  }
  super.setActiveWorkbenchPart(workbenchPart);
  if (editingDomain != null) {
    editingDomain.getCommandStack().addCommandStackListener(this );
  }
}

public void commandStackChanged(EventObject event) {
  selectionChanged(action, ((ISelectionProvider) workbenchPart).getSelection());
}

@Override public void selectionChanged(IAction action, ISelection selection) {
  if (selection instanceof IComposedSelection) {
    super.selectionChanged(action, ((IComposedSelection) selection).getCombinedSelection());
  }
  else {
    super.selectionChanged(action, selection);
  }
}

/**
 * This returns the image that is used if the command does not provide an override.
 */
protected Object getDefaultImage() {
  return MappingPlugin.getPlugin().getImage("full/etool16/RemoveOneToOneMapping");
}


First
Previous
Clone Instance
4
Line Count
40
Source Line
53
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/action/TypeMatchMappingAction.java

@Override public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) {
  if (editingDomain != null) {
    editingDomain.getCommandStack().removeCommandStackListener(this );
  }
  super.setActiveWorkbenchPart(workbenchPart);
  if (editingDomain != null) {
    editingDomain.getCommandStack().addCommandStackListener(this );
  }
}

public void commandStackChanged(EventObject event) {
  selectionChanged(action, ((ISelectionProvider) workbenchPart).getSelection());
}

@Override public void selectionChanged(IAction action, ISelection selection) {
  if (selection instanceof IComposedSelection) {
    super.selectionChanged(action, ((IComposedSelection) selection).getCombinedSelection());
  }
  else {
    super.selectionChanged(action, selection);
  }
}

/**
 * This returns the image that is used if the command does not provide an override.
 */
protected Object getDefaultImage() {
  return MappingUIPlugin.getPlugin().getImage("full/etool16/MatchByType");
}


Clone AbstractionParameter Count: 2Parameter Bindings

@Override public void setActiveWorkbenchPart(IWorkbenchPart workbenchPart) {
  if (editingDomain != null) {
    editingDomain.getCommandStack().removeCommandStackListener(this );
  }
  super.setActiveWorkbenchPart(workbenchPart);
  if (editingDomain != null) {
    editingDomain.getCommandStack().addCommandStackListener(this );
  }
}

public void commandStackChanged(EventObject event) {
  selectionChanged(action, ((ISelectionProvider) workbenchPart).getSelection());
}

@Override public void selectionChanged(IAction action, ISelection selection) {
  if (selection instanceof IComposedSelection) {
    super.selectionChanged(action, ((IComposedSelection) selection).getCombinedSelection());
  }
  else {
    super.selectionChanged(action, selection);
  }
}

/**
   * This returns the image that is used if the command does not provide an override.
   */
protected Object getDefaultImage() {
  return [[#variable14660f20]].getPlugin().getImage( [[#variable14660e80]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#14660f20]]
MappingPlugin 
12[[#14660f20]]
MappingPlugin 
13[[#14660f20]]
MappingPlugin 
14[[#14660f20]]
MappingUIPlugin 
21[[#14660e80]]
"full/etool16/CreateOneToOneMapping" 
22[[#14660e80]]
"full/etool16/MatchByName" 
23[[#14660e80]]
"full/etool16/RemoveOneToOneMapping" 
24[[#14660e80]]
"full/etool16/MatchByType"