if (showWrap)
{
String wrap = buffer.getStringProperty("wrap");
if(wrap.equals("none"))
this.wrap.setText("-");
else if(wrap.equals("hard"))
this.wrap.setText("H");
else if(wrap.equals("soft"))
this.wrap.setText("S");
}
if (showLineSeperator)
{
String lineSep = buffer.getStringProperty("lineSeparator");
if("\n".equals(lineSep))
this.lineSep.setText("U");
else if("\r\n".equals(lineSep))
this.lineSep.setText("W");
else if("\r".equals(lineSep))
this.lineSep.setText("M");
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/StatusBar.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/StatusBar.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (showWrap)↵ | | 1 | if (showLineSeperator)↵
|
2 | {↵ | | 2 | {↵
|
3 | String wrap = buffer.getStringProperty("wrap");↵ | | 3 | String lineSep = buffer.getStringProperty("lineSeparator");↵
|
4 | if(wrap.equals("none"))↵ | | 4 | if("\n".equals(lineSep))↵
|
5 | this.wrap.setText("-");↵ | | 5 | this.lineSep.setText("U");↵
|
6 | else if(wrap.equals("hard"))↵ | | 6 | else if("\r\n".equals(lineSep))↵
|
7 | this.wrap.setText("H");↵ | | 7 | this.lineSep.setText("W");↵
|
8 | else if(wrap.equals("soft"))↵ | | 8 | else if("\r".equals(lineSep))↵
|
9 | this.wrap.setText("S");↵ | | 9 | this.lineSep.setText("M");↵
|
10 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |