CloneSet2398


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.988statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111102
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ConvertAnonymousToNestedWizard.java
211209
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PromoteTempWizard.java
Clone Instance
1
Line Count
11
Source Line
102
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ConvertAnonymousToNestedWizard.java

                        int[] availableVisibilities = getConvertRefactoring().getAvailableVisibilities();
                        int currectVisibility = getConvertRefactoring().getVisibility();
                        IVisibilityChangeListener visibilityChangeListener = new IVisibilityChangeListener() {
                                 public void visibilityChanged(int newVisibility) {
                                         getConvertRefactoring().setVisibility(newVisibility);
                                 }

                                 public void modifierChanged(int modifier, boolean isChecked) {
                                 }
                                                                             };
                        Composite visibilityComposite = VisibilityControlUtil.createVisibilityControl(result, visibilityChangeListener, availableVisibilities, currectVisibility);


Clone Instance
2
Line Count
11
Source Line
209
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PromoteTempWizard.java

                        int[] availableVisibilities = getPromoteTempRefactoring().getAvailableVisibilities();
                        int currectVisibility = getPromoteTempRefactoring().getVisibility();
                        IVisibilityChangeListener visibilityChangeListener = new IVisibilityChangeListener() {
                                 public void visibilityChanged(int newVisibility) {
                                         getPromoteTempRefactoring().setVisibility(newVisibility);
                                 }

                                 public void modifierChanged(int modifier, boolean isChecked) {
                                 }
                                                                             };
                        Composite visibilityComposite = VisibilityControlUtil.createVisibilityControl(result, visibilityChangeListener, availableVisibilities, currectVisibility);


Clone AbstractionParameter Count: 1Parameter Bindings

int[] availableVisibilities = [[#variableb50e2800]]().getAvailableVisibilities();
int currectVisibility = [[#variableb50e2800]]().getVisibility();
IVisibilityChangeListener visibilityChangeListener = new IVisibilityChangeListener() {
                                                       public void visibilityChanged(int newVisibility) {
                                                          [[#variableb50e2800]]().setVisibility(newVisibility);
                                                       }

                                                       public void modifierChanged(int modifier, boolean isChecked) {
                                                       }
                                                     };
Composite visibilityComposite = VisibilityControlUtil.createVisibilityControl(result, visibilityChangeListener, availableVisibilities, currectVisibility);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b50e2800]]
getPromoteTempRefactoring 
12[[#b50e2800]]
getConvertRefactoring