CloneSet79


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
43230.958block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14384
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableEditor.java
24393
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableTreeEditor.java
Next
Last
Clone Instance
1
Line Count
43
Source Line
84
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableEditor.java

{
  for (int j = 0; j < columnCount; ++j) {
    Rectangle bounds = tableItems[i].getBounds(j);
    if (bounds.y > event.y) {
      break LOOP;
    }
    else
      if (bounds.contains(event.x, event.y)) {
        if (j != 0 || !tableItems[i].getImageBounds(0).contains(event.x, event.y)) {
          TableItem tableItem = tableItems[i];
          if (tableItem == selectedTableItem || wasActive) {
            if (tableItem != selectedTableItem) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
            editTableItem = tableItems[i];
            editTableItemColumn = j;
          }
          else {
            TableItem mouseBasedTableItem = table.getItem(point);
            if (mouseBasedTableItem == null) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
          }
        }
        break LOOP;
      }
  }
}


First
Previous
Clone Instance
2
Line Count
43
Source Line
93
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/ui/celleditor/ExtendedTableTreeEditor.java

{
  for (int j = 0; j < columnCount; ++j) {
    Rectangle bounds = tableItems[i].getBounds(j);
    if (bounds.y > event.y) {
      break LOOP;
    }
    else
      if (bounds.contains(event.x, event.y)) {
        if (j != 0 || !tableItems[i].getImageBounds(0).contains(event.x, event.y)) {
          TableItem tableItem = tableItems[i];
          if (tableItem == selectedTableItem || wasActive) {
            if (tableItem != selectedTableItem) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
            editTableTreeItem = (TableTreeItem) tableItems[i].getData(ExtendedTableTreeViewer.ITEM_ID);
            editTableTreeItemColumn = j;
          }
          else {
            TableItem mouseBasedTableItem = table.getItem(point);
            if (mouseBasedTableItem == null) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
          }
        }
        break LOOP;
      }
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  for (int j = 0; j < columnCount; ++j) {
    Rectangle bounds = tableItems[i].getBounds(j);
    if (bounds.y > event.y) {
      break LOOP;
    }
    else
      if (bounds.contains(event.x, event.y)) {
        if (j != 0 || !tableItems[i].getImageBounds(0).contains(event.x, event.y)) {
          TableItem tableItem = tableItems[i];
          if (tableItem == selectedTableItem || wasActive) {
            if (tableItem != selectedTableItem) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
             [[#variable19033440]]= [[#variable1903f220]];
             [[#variable1903f540]]= j;
          }
          else {
            TableItem mouseBasedTableItem = table.getItem(point);
            if (mouseBasedTableItem == null) {
              table.setSelection(i);
              Event selectionEvent = new Event();
              selectionEvent.widget = table;
              selectionEvent.item = tableItem;
              table.notifyListeners(SWT.Selection, selectionEvent);
              selectedTableItem = tableItem;
            }
          }
        }
        break LOOP;
      }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#19033440]]
editTableItem 
12[[#19033440]]
editTableTreeItem 
21[[#1903f220]]
tableItems[i] 
22[[#1903f220]]
(TableTreeItem) tableItems[i].getData(ExtendedTableTreeViewer.ITEM_ID) 
31[[#1903f540]]
editTableItemColumn 
32[[#1903f540]]
editTableTreeItemColumn