CloneSet35


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
119731
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java
219791
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
731
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/org/gjt/sp/jedit/gui/PanelWindowContainer.java

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


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

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


Clone AbstractionParameter Count: 2Parameter Bindings

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

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ae39800]]
dimension 
12[[#ae39800]]
parent.getHeight() 
21[[#ae397a0]]
returnValue.width 
22[[#ae397a0]]
returnValue