CloneSet74


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26201.000statement_sequence[11]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126424
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java
226630
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
424
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// *20030831, karlpeder* Also location is restored
int x = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_X_INT, DEFAULT_X);
int y = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_Y_INT, DEFAULT_Y);
int w = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.WIDTH_INT, DEFAULT_WIDTH);
int h = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.HEIGHT_INT, DEFAULT_HEIGHT);
final boolean maximized = viewItem.getBooleanWithDefault(ViewItem.WINDOW, ViewItem.MAXIMIZED_BOOL, false);
// if window is maximized -> ignore the window size properties
// otherwise, use window size property
// but ensure that the window is completly visible on the
// desktop
x = Math.max(x, 0);
y = Math.max(y, 0);
final Dimension dim = new Dimension(Math.min(w, screenSize.width - x), Math.min(h, screenSize.height - y));
final Point p = new Point(x, y);
final Frame frame = this ;


First
Previous
Clone Instance
2
Line Count
26
Source Line
630
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// *20030831, karlpeder* Also location is restored
int x = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_X_INT, DEFAULT_X);
int y = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_Y_INT, DEFAULT_Y);
int w = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.WIDTH_INT, DEFAULT_WIDTH);
int h = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.HEIGHT_INT, DEFAULT_HEIGHT);
final boolean maximized = viewItem.getBooleanWithDefault(ViewItem.WINDOW, ViewItem.MAXIMIZED_BOOL, false);
// if window is maximized -> ignore the window size properties
// otherwise, use window size property
// but ensure that the window is completly visible on the
// desktop
x = Math.max(x, 0);
y = Math.max(y, 0);
final Dimension dim = new Dimension(Math.min(w, screenSize.width - x), Math.min(h, screenSize.height - y));
final Point p = new Point(x, y);
final Frame frame = this ;


Clone AbstractionParameter Count: 0Parameter Bindings

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// *20030831, karlpeder* Also location is restored
int x = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_X_INT, DEFAULT_X);
int y = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.POSITION_Y_INT, DEFAULT_Y);
int w = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.WIDTH_INT, DEFAULT_WIDTH);
int h = viewItem.getIntegerWithDefault(ViewItem.WINDOW, ViewItem.HEIGHT_INT, DEFAULT_HEIGHT);
final boolean maximized = viewItem.getBooleanWithDefault(ViewItem.WINDOW, ViewItem.MAXIMIZED_BOOL, false);
// if window is maximized -> ignore the window size properties
// otherwise, use window size property
// but ensure that the window is completly visible on the
// desktop
x = Math.max(x, 0);
y = Math.max(y, 0);
final Dimension dim = new Dimension(Math.min(w, screenSize.width - x), Math.min(h, screenSize.height - y));
final Point p = new Point(x, y);
final Frame frame = this ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None