CloneSet156


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23220.991statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123104
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTOtherEditor.java
223169
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTPlotAppearanceEditor.java
Next
Last
Clone Instance
1
Line Count
23
Source Line
104
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTOtherEditor.java

//row 2: background paint for the chart
new Label(general, SWT.NONE).setText(localizationResources.getString("Background_paint"));
this.backgroundPaintCanvas = new SWTPaintCanvas(general, SWT.NONE, SWTUtils.toSwtColor(getDisplay(), chart.getBackgroundPaint()));
GridData bgGridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
bgGridData.heightHint = 20;
this.backgroundPaintCanvas.setLayoutData(bgGridData);
Button selectBgPaint = new Button(general, SWT.PUSH);
selectBgPaint.setText(localizationResources.getString("Select..."));
selectBgPaint.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
selectBgPaint.addSelectionListener(new SelectionAdapter() {
                                     public void widgetSelected(SelectionEvent event) {
                                       ColorDialog dlg = new ColorDialog(getShell());
                                       dlg.setText(localizationResources.getString("Background_paint"));
                                       dlg.setRGB(SWTOtherEditor.this.backgroundPaintCanvas.getColor().getRGB());
                                       RGB rgb = dlg.open();
                                       if (rgb != null) {
                                         SWTOtherEditor.this.backgroundPaintCanvas.setColor(new Color(getDisplay(), rgb));
                                       }
                                     }
                                   } );


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

// row 3: background paint
new Label(general, SWT.NONE).setText(localizationResources.getString("Background_paint"));
this.backgroundPaintCanvas = new SWTPaintCanvas(general, SWT.NONE, SWTUtils.toSwtColor(getDisplay(), plot.getBackgroundPaint()));
GridData bgGridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
bgGridData.heightHint = 20;
this.backgroundPaintCanvas.setLayoutData(bgGridData);
Button selectBgPaint = new Button(general, SWT.PUSH);
selectBgPaint.setText(localizationResources.getString("Select..."));
selectBgPaint.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
selectBgPaint.addSelectionListener(new SelectionAdapter() {
                                     public void widgetSelected(SelectionEvent event) {
                                       ColorDialog dlg = new ColorDialog(getShell());
                                       dlg.setText(localizationResources.getString("Background_paint"));
                                       dlg.setRGB(SWTPlotAppearanceEditor.this.backgroundPaintCanvas.getColor().getRGB());
                                       RGB rgb = dlg.open();
                                       if (rgb != null) {
                                         SWTPlotAppearanceEditor.this.backgroundPaintCanvas.setColor(new Color(getDisplay(), rgb));
                                       }
                                     }
                                   } );


Clone AbstractionParameter Count: 2Parameter Bindings

//row 2: background paint for the chart
// row 3: background paint
new Label(general, SWT.NONE).setText(localizationResources.getString("Background_paint"));
this.backgroundPaintCanvas = new SWTPaintCanvas(general, SWT.NONE, SWTUtils.toSwtColor(getDisplay(),  [[#variable1aa9fac0]].getBackgroundPaint()));
GridData bgGridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
bgGridData.heightHint = 20;
this.backgroundPaintCanvas.setLayoutData(bgGridData);
Button selectBgPaint = new Button(general, SWT.PUSH);
selectBgPaint.setText(localizationResources.getString("Select..."));
selectBgPaint.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false));
selectBgPaint.addSelectionListener(new SelectionAdapter() {
                                     public void widgetSelected(SelectionEvent event) {
                                       ColorDialog dlg = new ColorDialog(getShell());
                                       dlg.setText(localizationResources.getString("Background_paint"));
                                       dlg.setRGB( [[#variable1aa9f9c0]].this.backgroundPaintCanvas.getColor().getRGB());
                                       RGB rgb = dlg.open();
                                       if (rgb != null) {
                                          [[#variable1aa9f9c0]].this.backgroundPaintCanvas.setColor(new Color(getDisplay(), rgb));
                                       }
                                     }
                                   } );
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aa9fac0]]
chart 
12[[#1aa9fac0]]
plot 
21[[#1aa9f9c0]]
SWTOtherEditor 
22[[#1aa9f9c0]]
SWTPlotAppearanceEditor