CloneSet34


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.960block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119710
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java
219770
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
710
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java

{
  int width = dimension - insets.right;
  int rowHeight = Math.max(dim.height, closeBox.getPreferredSize().width);
  int x = rowHeight * 2 + insets.left;
  Dimension returnValue = new Dimension(0, rowHeight + insets.top + insets.bottom);
  for (int i = 2; i < comp.length; i++) {
    int btnWidth = comp[i].getPreferredSize().width;
    if (btnWidth + x > width) {
      returnValue.height += rowHeight;
      x = insets.left;
    }
    x += btnWidth;
  }
  return returnValue.height;
}


First
Previous
Clone Instance
2
Line Count
19
Source Line
770
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java

{
  int width = parent.getWidth() - insets.right;
  int rowHeight = Math.max(dim.height, closeBox.getPreferredSize().width);
  int x = rowHeight * 2 + insets.left;
  Dimension returnValue = new Dimension(0, rowHeight + insets.top + insets.bottom);
  for (int i = 2; i < comp.length; i++) {
    int btnWidth = comp[i].getPreferredSize().width;
    if (btnWidth + x > width) {
      returnValue.height += rowHeight;
      x = insets.left;
    }
    x += btnWidth;
  }
  return returnValue;
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  int width = [[#variableae3d0a0]] - insets.right;
  int rowHeight = Math.max(dim.height, closeBox.getPreferredSize().width);
  int x = rowHeight * 2 + insets.left;
  Dimension returnValue = new Dimension(0, rowHeight + insets.top + insets.bottom);
  for (int i = 2; i < comp.length; i++) {
    int btnWidth = comp[i].getPreferredSize().width;
    if (btnWidth + x > width) {
      returnValue.height += rowHeight;
      x = insets.left;
    }
    x += btnWidth;
  }
  return [[#variableae3f320]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ae3d0a0]]
dimension 
12[[#ae3d0a0]]
parent.getWidth() 
21[[#ae3f320]]
returnValue.height 
22[[#ae3f320]]
returnValue