CloneSet1381


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16260.975statement_sequence
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116225
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocSpecificsWizardPage.java
216325
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocStandardWizardPage.java
Clone Instance
1
Line Count
16
Source Line
225
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocSpecificsWizardPage.java

                                fOverviewStatus = new StatusInfo();
                                if (fOverViewButton.getSelection()) {
                                        String filename = fOverViewText.getText();
                                        if (filename.length() == 0) {
                                                fOverviewStatus.setError(JavadocExportMessages.JavadocSpecificsWizardPage_overviewnotfound_error);
                                        }
                                        else   {
                                                File file = new File(filename);
                                                String ext = filename.substring(filename.lastIndexOf('.') + 1);
                                                if ( !file.isFile()) {
                                                        fOverviewStatus.setError(JavadocExportMessages.JavadocSpecificsWizardPage_overviewnotfound_error);
                                                }
                                                else   if ( !ext.equalsIgnoreCase("html")) { //$NON-NLS-1$
                                                        fOverviewStatus.setError(JavadocExportMessages.JavadocSpecificsWizardPage_overviewincorrect_error);
                                                       }
                                        }
                                }
                                break;


Clone Instance
2
Line Count
16
Source Line
325
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocStandardWizardPage.java

                                fStyleSheetStatus = new StatusInfo();
                                if (fStyleSheetButton.getSelection()) {
                                        String filename = fStyleSheetText.getText();
                                        if (filename.length() == 0) {
                                                fStyleSheetStatus.setError(JavadocExportMessages.JavadocSpecificsWizardPage_overviewnotfound_error);
                                        }
                                        else   {
                                                File file = new File(filename);
                                                String ext = filename.substring(filename.lastIndexOf('.') + 1);
                                                if ( !file.isFile()) {
                                                        fStyleSheetStatus.setError(JavadocExportMessages.JavadocStandardWizardPage_stylesheetnopath_error);
                                                }
                                                else   if ( !ext.equalsIgnoreCase("css")) { //$NON-NLS-1$
                                                        fStyleSheetStatus.setError(JavadocExportMessages.JavadocStandardWizardPage_stylesheetnotcss_error);
                                                       }
                                        }
                                }
                                break;


Clone AbstractionParameter Count: 6Parameter Bindings

 [[#variable99b51580]]= new StatusInfo();
if ( [[#variable99b51500]].getSelection()) {
  String filename = [[#variable99b51460]].getText();
  if (filename.length() == 0) {
     [[#variable99b51580]].setError(JavadocExportMessages.JavadocSpecificsWizardPage_overviewnotfound_error);
  }
  else {
    File file = new File(filename);
    String ext = filename.substring(filename.lastIndexOf('.') + 1);
    if ( !file.isFile()) {
       [[#variable99b51580]].setError(JavadocExportMessages. [[#variable99b513a0]]);
    }
    else
      if ( !ext.equalsIgnoreCase( [[#variable99b51320]])) { //$NON-NLS-1$
         [[#variable99b51580]].setError(JavadocExportMessages. [[#variable99b512c0]]);
      }
  }
}
break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99b51580]]
fOverviewStatus 
12[[#99b51580]]
fStyleSheetStatus 
21[[#99b51500]]
fOverViewButton 
22[[#99b51500]]
fStyleSheetButton 
31[[#99b51460]]
fOverViewText 
32[[#99b51460]]
fStyleSheetText 
41[[#99b513a0]]
JavadocSpecificsWizardPage_overviewnotfound_error 
42[[#99b513a0]]
JavadocStandardWizardPage_stylesheetnopath_error 
51[[#99b51320]]
"html" 
52[[#99b51320]]
"css" 
61[[#99b512c0]]
JavadocSpecificsWizardPage_overviewincorrect_error 
62[[#99b512c0]]
JavadocStandardWizardPage_stylesheetnotcss_error