CloneSet875


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19240.987statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119414
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
219435
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
Clone Instance
1
Line Count
19
Source Line
414
Source File
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);
                                                        }
                                                                 } );


Clone Instance
2
Line Count
19
Source Line
435
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java

                                                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);
                                                        }
                                                                 } );


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#93824080]]
DELETE_NEXT_WORD 
12[[#93824080]]
DELETE_PREVIOUS_WORD 
21[[#93824000]]
start 
22[[#93824000]]
end 
31[[#52925fa0]]
end 
32[[#52925fa0]]
start 
41[[#52925e20]]
following 
42[[#52925e20]]
preceding