CloneSet339


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16460.986switch_group
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116104
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
216120
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
316136
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
416152
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java
Clone Instance
1
Line Count
16
Source Line
104
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java

                case K_CLASS:
                        setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS));
                        if (isInnerType) {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerclass_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerclass_intype_description, new String[] {
                                                                                                                                                                                 typeName, containerName
                                                                                                                                                                               } ));
                                }
                        }
                        else   {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createclass_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createclass_inpackage_description, new String[] {
                                                                                                                                                                               typeName, containerName
                                                                                                                                                                             } ));
                                }
                        }
                        break;


Clone Instance
2
Line Count
16
Source Line
120
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java

                case K_INTERFACE:
                        setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE));
                        if (isInnerType) {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerinterface_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerinterface_intype_description, new String[] {
                                                                                                                                                                                     typeName, containerName
                                                                                                                                                                                   } ));
                                }
                        }
                        else   {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinterface_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinterface_inpackage_description, new String[] {
                                                                                                                                                                                   typeName, containerName
                                                                                                                                                                                 } ));
                                }
                        }
                        break;


Clone Instance
3
Line Count
16
Source Line
136
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java

                case K_ENUM:
                        setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_ENUM));
                        if (isInnerType) {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerenum_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerenum_intype_description, new String[] {
                                                                                                                                                                                typeName, containerName
                                                                                                                                                                              } ));
                                }
                        }
                        else   {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createenum_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createenum_inpackage_description, new String[] {
                                                                                                                                                                              typeName, containerName
                                                                                                                                                                            } ));
                                }
                        }
                        break;


Clone Instance
4
Line Count
16
Source Line
152
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewCUCompletionUsingWizardProposal.java

                case K_ANNOTATION:
                        setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_ANNOTATION));
                        if (isInnerType) {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerannotation_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createinnerannotation_intype_description, new String[] {
                                                                                                                                                                                      typeName, containerName
                                                                                                                                                                                    } ));
                                }
                        }
                        else   {
                                if (containerName.length() == 0) {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createannotation_description, typeName));
                                }
                                else   {
                                        setDisplayName(Messages.format(CorrectionMessages.NewCUCompletionUsingWizardProposal_createannotation_inpackage_description, new String[] {
                                                                                                                                                                                    typeName, containerName
                                                                                                                                                                                  } ));
                                }
                        }
                        break;


Clone AbstractionParameter Count: 6Parameter Bindings

case [[#variable5a4f9a00]]:
  setImage(JavaPluginImages.get(JavaPluginImages. [[#variable5a4f9920]]));
  if (isInnerType) {
    if (containerName.length() == 0) {
      setDisplayName(Messages.format(CorrectionMessages. [[#variable5a4f9880]], typeName));
    }
    else {
      setDisplayName(Messages.format(CorrectionMessages. [[#variable5a4f9820]], new String[] {
                                                                                               typeName,
                                                                                               containerName
                                                                                             } ));
    }
  }
  else {
    if (containerName.length() == 0) {
      setDisplayName(Messages.format(CorrectionMessages. [[#variable57c0f5e0]], typeName));
    }
    else {
      setDisplayName(Messages.format(CorrectionMessages. [[#variable5a4f98c0]], new String[] {
                                                                                               typeName,
                                                                                               containerName
                                                                                             } ));
    }
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a4f9a00]]
K_CLASS 
12[[#5a4f9a00]]
K_INTERFACE 
13[[#5a4f9a00]]
K_ENUM 
14[[#5a4f9a00]]
K_ANNOTATION 
21[[#5a4f9920]]
IMG_OBJS_CLASS 
22[[#5a4f9920]]
IMG_OBJS_INTERFACE 
23[[#5a4f9920]]
IMG_OBJS_ENUM 
24[[#5a4f9920]]
IMG_OBJS_ANNOTATION 
31[[#5a4f9880]]
NewCUCompletionUsingWizardProposal_createinnerclass_description 
32[[#5a4f9880]]
NewCUCompletionUsingWizardProposal_createinnerinterface_description 
33[[#5a4f9880]]
NewCUCompletionUsingWizardProposal_createinnerenum_description 
34[[#5a4f9880]]
NewCUCompletionUsingWizardProposal_createinnerannotation_description 
41[[#5a4f9820]]
NewCUCompletionUsingWizardProposal_createinnerclass_intype_description 
42[[#5a4f9820]]
NewCUCompletionUsingWizardProposal_createinnerinterface_intype_description 
43[[#5a4f9820]]
NewCUCompletionUsingWizardProposal_createinnerenum_intype_description 
44[[#5a4f9820]]
NewCUCompletionUsingWizardProposal_createinnerannotation_intype_description 
51[[#57c0f5e0]]
NewCUCompletionUsingWizardProposal_createclass_description 
52[[#57c0f5e0]]
NewCUCompletionUsingWizardProposal_createinterface_description 
53[[#57c0f5e0]]
NewCUCompletionUsingWizardProposal_createenum_description 
54[[#57c0f5e0]]
NewCUCompletionUsingWizardProposal_createannotation_description 
61[[#5a4f98c0]]
NewCUCompletionUsingWizardProposal_createclass_inpackage_description 
62[[#5a4f98c0]]
NewCUCompletionUsingWizardProposal_createinterface_inpackage_description 
63[[#5a4f98c0]]
NewCUCompletionUsingWizardProposal_createenum_inpackage_description 
64[[#5a4f98c0]]
NewCUCompletionUsingWizardProposal_createannotation_inpackage_description