Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.986 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 171 | E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindDialog.java |
2 | 13 | 189 | E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindDialog.java |
| |||||
{ // find pattern int position = finder.find(); if (position >= 0) { // mark found pattern //text.grabFocus(); mark(position, position + findTextField.getText().length()); } else // delete marks { mark(0, 0); JOptionPane.showMessageDialog(this, "String was not found!"); } } |
| |||||
{ // get position of the pattern in the text int position = finder.findnext(); if (position >= 0) { // mark found pattern (select) //text.grabFocus(); mark(position, position + findTextField.getText().length()); } else // delete marks (unselect) { mark(0, 0); JOptionPane.showMessageDialog(this, "String was not found!"); } } |
| |||
{ // find pattern // get position of the pattern in the text int position = finder. [[#variable130983c0]](); if (position >= 0) { // mark found pattern //text.grabFocus(); // mark found pattern (select) //text.grabFocus(); mark(position, position + findTextField.getText().length()); } else // delete marks // delete marks (unselect) { mark(0, 0); JOptionPane.showMessageDialog(this, "String was not found!"); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#130983c0]] | find |
1 | 2 | [[#130983c0]] | findnext |