CloneSet1051


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6210.987method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16103
E:/TSE/Projects-CloneDR/sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/NetbeansSQLEntryPanel.java
26343
E:/TSE/Projects-CloneDR/sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterSQLEntryPanel.java
Next
Last
Clone Instance
1
Line Count
6
Source Line
103
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/NetbeansSQLEntryPanel.java

public int getCaretLineNumber() {
  final int pos = getCaretPosition();
  final Document doc = _textArea.getDocument();
  final Element docElem = doc.getDefaultRootElement();
  return docElem.getElementIndex(pos);
}


First
Previous
Clone Instance
2
Line Count
6
Source Line
343
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/OsterSQLEntryPanel.java

/**
     * @see ISQLEntryPanel#getCaretLineNumber()
     */
public int getCaretLineNumber() {
  final int pos = getCaretPosition();
  final Document doc = _textArea.getStyledDocument();
  final Element docElem = doc.getDefaultRootElement();
  return docElem.getElementIndex(pos);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * @see ISQLEntryPanel#getCaretLineNumber()
         */
public int getCaretLineNumber() {
  final int pos = getCaretPosition();
  final Document doc = _textArea. [[#variable1cd7b500]]();
  final Element docElem = doc.getDefaultRootElement();
  return docElem.getElementIndex(pos);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1cd7b500]]
getDocument 
12[[#1cd7b500]]
getStyledDocument