Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 4 | 0.987 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 414 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java |
2 | 19 | 435 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java |
| ||||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.DELETE_NEXT_WORD)) { public void execute() { Point selection = fNavigable.getSelection(); String text = fNavigable.getText(); int start; int end; if (selection.x != selection.y) { start = selection.x; end = selection.y; } else { fIterator.setText(text); start = fNavigable.getCaretPosition(); end = fIterator.following(start); fIterator.setText(EMPTY_TEXT); if (end == BreakIterator.DONE) return; } fNavigable.setText(text.substring(0, start) + text.substring(end)); fNavigable.setSelection(start, start); } } ); |
| ||||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.DELETE_PREVIOUS_WORD)) { public void execute() { Point selection = fNavigable.getSelection(); String text = fNavigable.getText(); int start; int end; if (selection.x != selection.y) { start = selection.x; end = selection.y; } else { fIterator.setText(text); end = fNavigable.getCaretPosition(); start = fIterator.preceding(end); fIterator.setText(EMPTY_TEXT); if (start == BreakIterator.DONE) return; } fNavigable.setText(text.substring(0, start) + text.substring(end)); fNavigable.setSelection(start, start); } } ); |
| |||
fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds. [[#variable93824080]])) { public void execute() { Point selection = fNavigable.getSelection(); String text = fNavigable.getText(); int start; int end; if (selection.x != selection.y) { start = selection.x; end = selection.y; } else { fIterator.setText(text); [[#variable93824000]]= fNavigable.getCaretPosition(); [[#variable52925fa0]]= fIterator. [[#variable52925e20]]( [[#variable93824000]]); fIterator.setText(EMPTY_TEXT); if ( [[#variable52925fa0]]== BreakIterator.DONE) return; } fNavigable.setText(text.substring(0, start) + text.substring(end)); fNavigable.setSelection(start, start); } } ); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#93824080]] | DELETE_NEXT_WORD |
1 | 2 | [[#93824080]] | DELETE_PREVIOUS_WORD |
2 | 1 | [[#93824000]] | start |
2 | 2 | [[#93824000]] | end |
3 | 1 | [[#52925fa0]] | end |
3 | 2 | [[#52925fa0]] | start |
4 | 1 | [[#52925e20]] | following |
4 | 2 | [[#52925e20]] | preceding |