CloneSet1383


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.986statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113364
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
213379
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java
Clone Instance
1
Line Count
13
Source Line
364
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TextFieldNavigationHandler.java

                                                fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.SELECT_WORD_NEXT)) {
                                                        public void execute() {
                                                                fIterator.setText(fNavigable.getText());
                                                                int caretPosition = fNavigable.getCaretPosition();
                                                                int newCaret = fIterator.following(caretPosition);
                                                                if (newCaret != BreakIterator.DONE) {
                                                                        Point selection = fNavigable.getSelection();
                                                                        if (caretPosition == selection.y)
                                                                                fNavigable.setSelection(selection.x, newCaret);
                                                                        else
                                                                                fNavigable.setSelection(selection.y, newCaret);
                                                                }
                                                                fIterator.setText(EMPTY_TEXT);
                                                        }
                                                                 } );


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

                                                fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds.SELECT_WORD_PREVIOUS)) {
                                                        public void execute() {
                                                                fIterator.setText(fNavigable.getText());
                                                                int caretPosition = fNavigable.getCaretPosition();
                                                                int newCaret = fIterator.preceding(caretPosition);
                                                                if (newCaret != BreakIterator.DONE) {
                                                                        Point selection = fNavigable.getSelection();
                                                                        if (caretPosition == selection.x)
                                                                                fNavigable.setSelection(selection.y, newCaret);
                                                                        else
                                                                                fNavigable.setSelection(selection.x, newCaret);
                                                                }
                                                                fIterator.setText(EMPTY_TEXT);
                                                        }
                                                                 } );


Clone AbstractionParameter Count: 4Parameter Bindings

fSubmissions.add(new Submission(bindingService.getActiveBindingsFor(ITextEditorActionDefinitionIds. [[#variablec128a3c0]])) {
                   public void execute() {
                     fIterator.setText(fNavigable.getText());
                     int caretPosition = fNavigable.getCaretPosition();
                     int newCaret = fIterator. [[#variablec128a300]](caretPosition);
                     if (newCaret != BreakIterator.DONE) {
                       Point selection = fNavigable.getSelection();
                       if (caretPosition == selection. [[#variablec128a280]])
                         fNavigable.setSelection(selection. [[#variablec128a200]], newCaret);
                       else
                         fNavigable.setSelection(selection. [[#variablec128a280]], newCaret);
                     }
                     fIterator.setText(EMPTY_TEXT);
                   }
                 } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c128a3c0]]
SELECT_WORD_NEXT 
12[[#c128a3c0]]
SELECT_WORD_PREVIOUS 
21[[#c128a300]]
following 
22[[#c128a300]]
preceding 
31[[#c128a280]]
y 
32[[#c128a280]]
x 
41[[#c128a200]]
x 
42[[#c128a200]]
y