Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.992 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 394 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java |
2 | 8 | 404 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java |
| ||||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.WORD_NEXT)) { public void execute() { fIterator.setText(fNavigable.getText()); int caretPosition = fNavigable.getCaretPosition(); int newCaret = fIterator.following(caretPosition); if (newCaret != BreakIterator.DONE) fNavigable.setSelection(newCaret, newCaret); fIterator.setText(EMPTY_TEXT); } } ); |
| ||||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.WORD_PREVIOUS)) { public void execute() { fIterator.setText(fNavigable.getText()); int caretPosition = fNavigable.getCaretPosition(); int newCaret = fIterator.preceding(caretPosition); if (newCaret != BreakIterator.DONE) fNavigable.setSelection(newCaret, newCaret); fIterator.setText(EMPTY_TEXT); } } ); |
| |||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds. [[#variable55903cc0]])) { public void execute() { fIterator.setText(fNavigable.getText()); int caretPosition = fNavigable.getCaretPosition(); int newCaret = fIterator. [[#variable55f62fe0]](caretPosition); if (newCaret != BreakIterator.DONE) fNavigable.setSelection(newCaret, newCaret); fIterator.setText(EMPTY_TEXT); } } ); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55903cc0]] | WORD_NEXT |
1 | 2 | [[#55903cc0]] | WORD_PREVIOUS |
2 | 1 | [[#55f62fe0]] | following |
2 | 2 | [[#55f62fe0]] | preceding |