CloneSet6903


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4240.953statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14119
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java
24145
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java
Clone Instance
1
Line Count
4
Source Line
119
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java

                fMethodName.addModifyListener(new ModifyListener() {
                        public void modifyText(ModifyEvent e) {
                                fMethodNameStatus = getUseFactoryRefactoring().setNewMethodName(fMethodName.getText());
                                validateInput(true);
                                /*
                                boolean                         nameOk= status.isOK();

                                if (status.hasFatalError()) {
                                        IntroduceFactoryInputPage.this.setPageComplete(false);
                                        
                                }
                                IntroduceFactoryInputPage.this.setPageComplete(!status.hasFatalError());
                                IntroduceFactoryInputPage.this.setErrorMessage(nameOk ?
                                        "" : //$NON-NLS-1$
                                        status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
                                        */
                        }
                                              } );


Clone Instance
2
Line Count
4
Source Line
145
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceFactoryInputPage.java

                factoryTypeName.addModifyListener(new ModifyListener() {
                        public void modifyText(ModifyEvent e) {
                                fDestinationStatus = getUseFactoryRefactoring().setFactoryClass(factoryTypeName.getText());
                                validateInput(false);
                                /*
                                boolean nameOk= status.isOK();

                                IntroduceFactoryInputPage.this.setPageComplete(nameOk);
                                IntroduceFactoryInputPage.this.setErrorMessage(nameOk ? "" : //$NON-NLS-1$
                                                                                                                           status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
                                                                                                                           */
                        }
                                                  } );


Clone AbstractionParameter Count: 4Parameter Bindings

 [[#variable53e2af80]].addModifyListener(new ModifyListener() {
                                           public void modifyText(ModifyEvent e) {
                                              [[#variable53e2afe0]]= getUseFactoryRefactoring(). [[#variable53e2ade0]]( [[#variable53e2af80]].getText());
                                             validateInput( [[#variable53e2b080]]);
                                           /*
                                                                           boolean                         nameOk= status.isOK();

                                                                           if (status.hasFatalError()) {
                                                                                   IntroduceFactoryInputPage.this.setPageComplete(false);
                                                                                   
                                                                           }
                                                                           IntroduceFactoryInputPage.this.setPageComplete(!status.hasFatalError());
                                                                           IntroduceFactoryInputPage.this.setErrorMessage(nameOk ?
                                                                                   "" : //$NON-NLS-1$
                                                                                   status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
                                                                                   */
                                           /*
                                                                           boolean nameOk= status.isOK();

                                                                           IntroduceFactoryInputPage.this.setPageComplete(nameOk);
                                                                           IntroduceFactoryInputPage.this.setErrorMessage(nameOk ? "" : //$NON-NLS-1$
                                                                                                                                                                      status.getMessageMatchingSeverity(RefactoringStatus.ERROR));
                                                                                                                                                                      */
                                           }
                                         } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53e2af80]]
fMethodName 
12[[#53e2af80]]
factoryTypeName 
21[[#53e2afe0]]
fMethodNameStatus 
22[[#53e2afe0]]
fDestinationStatus 
31[[#53e2ade0]]
setNewMethodName 
32[[#53e2ade0]]
setFactoryClass 
41[[#53e2b080]]
true 
42[[#53e2b080]]
false