CloneSet435


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.981statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118153
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/CellDataPopup.java
218426
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java
Next
Last
Clone Instance
1
Line Count
18
Source Line
153
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/CellDataPopup.java

// Determine the position to place the new internal frame. Ensure that the right end
// of the internal frame doesn't exend past the right end the parent frame.     Use a
// fudge factor as the dim.width doesn't appear to get the final width of the internal
// frame (e.g. where pt.x + dim.width == parentBounds.width, the new internal frame
// still extends past the right end of the parent frame).
int fudgeFactor = 100;
Rectangle parentBounds = comp.getBounds();
if (parentBounds.width <= (dim.width + fudgeFactor)) {
  dim.width = parentBounds.width - fudgeFactor;
  pt.x = fudgeFactor / 2;
  newComp.setSize(dim);
}
else {
  if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width)) {
    pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
  }
}
newComp.setLocation(pt);
newComp.setVisible(true);


First
Previous
Clone Instance
2
Line Count
18
Source Line
426
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerEditableTablePanel.java

// Determine the position to place the new internal frame. Ensure that the right end
// of the internal frame doesn't exend past the right end the parent frame.     Use a
// fudge factor as the dim.width doesn't appear to get the final width of the internal
// frame (e.g. where pt.x + dim.width == parentBounds.width, the new internal frame
// still extends past the right end of the parent frame).
int fudgeFactor = 100;
Rectangle parentBounds = comp.getBounds();
if (parentBounds.width <= (dim.width + fudgeFactor)) {
  dim.width = parentBounds.width - fudgeFactor;
  pt.x = fudgeFactor / 2;
  rdif.setSize(dim);
}
else {
  if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width)) {
    pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
  }
}
rdif.setLocation(pt);
rdif.setVisible(true);


Clone AbstractionParameter Count: 1Parameter Bindings

// Determine the position to place the new internal frame. Ensure that the right end
// of the internal frame doesn't exend past the right end the parent frame.     Use a
// fudge factor as the dim.width doesn't appear to get the final width of the internal
// frame (e.g. where pt.x + dim.width == parentBounds.width, the new internal frame
// still extends past the right end of the parent frame).
int fudgeFactor = 100;
Rectangle parentBounds = comp.getBounds();
if (parentBounds.width <= (dim.width + fudgeFactor)) {
  dim.width = parentBounds.width - fudgeFactor;
  pt.x = fudgeFactor / 2;
   [[#variable1ce19580]].setSize(dim);
}
else {
  if ((pt.x + dim.width + fudgeFactor) > (parentBounds.width)) {
    pt.x -= (pt.x + dim.width + fudgeFactor) - parentBounds.width;
  }
}
 [[#variable1ce19580]].setLocation(pt);
 [[#variable1ce19580]].setVisible(true);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ce19580]]
newComp 
12[[#1ce19580]]
rdif