CloneSet279


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24230.982executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124161
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTAxisEditor.java
224249
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTAxisEditor.java
Next
Last
Clone Instance
1
Line Count
24
Source Line
161
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTAxisEditor.java

selectFontButton.addSelectionListener(new SelectionAdapter() {
                                        public void widgetSelected(SelectionEvent event) {
                                          // Create the color-change dialog
                                          FontDialog dlg = new FontDialog(getShell());
                                          dlg.setText(localizationResources.getString("Font_Selection"));
                                          dlg.setFontList(new FontData[] {
                                                                           SWTAxisEditor.this.labelFont
                                                                         } );
                                          if (dlg.open() != null) {
                                            // Dispose of any fonts we have created
                                            if (SWTAxisEditor.this.font != null) {
                                              SWTAxisEditor.this.font.dispose();
                                            }
                                            // Create the new font and set it into the title 
                                            // label
                                            SWTAxisEditor.this.font = new Font(getShell().getDisplay(), dlg.getFontList());
                                            //label.setFont(font);
                                            SWTAxisEditor.this.labelFontField.setText(SWTAxisEditor.this.font.getFontData()[0].toString());
                                            SWTAxisEditor.this.labelFont = SWTAxisEditor.this.font.getFontData()[0];
                                          }
                                        }
                                      } );


First
Previous
Clone Instance
2
Line Count
24
Source Line
249
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTAxisEditor.java

selectTickLabelFontButton.addSelectionListener(new SelectionAdapter() {
                                                 public void widgetSelected(SelectionEvent event) {
                                                   // Create the font-change dialog
                                                   FontDialog dlg = new FontDialog(getShell());
                                                   dlg.setText(localizationResources.getString("Font_Selection"));
                                                   dlg.setFontList(new FontData[] {
                                                                                    SWTAxisEditor.this.tickLabelFont
                                                                                  } );
                                                   if (dlg.open() != null) {
                                                     // Dispose of any fonts we have created
                                                     if (SWTAxisEditor.this.font != null) {
                                                       SWTAxisEditor.this.font.dispose();
                                                     }
                                                     // Create the new font and set it into the title 
                                                     // label
                                                     SWTAxisEditor.this.font = new Font(getShell().getDisplay(), dlg.getFontList());
                                                     //tickLabelFontField.setFont(font);
                                                     SWTAxisEditor.this.tickLabelFontField.setText(SWTAxisEditor.this.font.getFontData()[0].toString());
                                                     SWTAxisEditor.this.tickLabelFont = SWTAxisEditor.this.font.getFontData()[0];
                                                   }
                                                 }
                                               } );


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable1a89d4a0]].addSelectionListener(new SelectionAdapter() {
                                              public void widgetSelected(SelectionEvent event) {
                                                // Create the color-change dialog
                                                // Create the font-change dialog
                                                FontDialog dlg = new FontDialog(getShell());
                                                dlg.setText(localizationResources.getString("Font_Selection"));
                                                dlg.setFontList(new FontData[] {
                                                                                 SWTAxisEditor.this. [[#variable1a89d540]]
                                                                               } );
                                                if (dlg.open() != null) {
                                                  // Dispose of any fonts we have created
                                                  if (SWTAxisEditor.this.font != null) {
                                                    SWTAxisEditor.this.font.dispose();
                                                  }
                                                  // Create the new font and set it into the title 
                                                  // label
                                                  SWTAxisEditor.this.font = new Font(getShell().getDisplay(), dlg.getFontList());
                                                  //label.setFont(font);
                                                  //tickLabelFontField.setFont(font);
                                                  SWTAxisEditor.this. [[#variable1a89d4e0]].setText(SWTAxisEditor.this.font.getFontData()[0].toString());
                                                  SWTAxisEditor.this. [[#variable1a89d540]]= SWTAxisEditor.this.font.getFontData()[0];
                                                }
                                              }
                                            } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a89d4a0]]
selectFontButton 
12[[#1a89d4a0]]
selectTickLabelFontButton 
21[[#1a89d540]]
labelFont 
22[[#1a89d540]]
tickLabelFont 
31[[#1a89d4e0]]
labelFontField 
32[[#1a89d4e0]]
tickLabelFontField