CloneSet343


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14301.000statement_sequence[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114334
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java
214306
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/code/ExtractMethodInputPage.java
314160
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceParameterWizard.java
Clone Instance
1
Line Count
14
Source Line
334
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeSignatureWizard.java

                        fSignaturePreview = new JavaSourceViewer(composite, null, null, false, SWT.READ_ONLY|  SWT.V_SCROLL|  SWT.WRAP
                                                                                                                                       /*| SWT.BORDER*/
                                                                                                                                      ,                  store);
                        fSignaturePreview.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
                        fSignaturePreview.getTextWidget().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
                        fSignaturePreview.getTextWidget().setBackground(composite.getBackground());
                        fSignaturePreview.setDocument(fSignaturePreviewDocument);
                        fSignaturePreview.setEditable(false);
                        //Layouting problems with wrapped text: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
                        Control signaturePreviewControl = fSignaturePreview.getControl();
                        PixelConverter pixelConverter = new PixelConverter(signaturePreviewControl);
                        GridData gdata = new GridData(GridData.FILL_BOTH);
                        gdata.widthHint = pixelConverter.convertWidthInCharsToPixels(50);
                        gdata.heightHint = pixelConverter.convertHeightInCharsToPixels(2);
                        signaturePreviewControl.setLayoutData(gdata);


Clone Instance
2
Line Count
14
Source Line
306
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/code/ExtractMethodInputPage.java

                fSignaturePreview = new JavaSourceViewer(composite, null, null, false, SWT.READ_ONLY|  SWT.V_SCROLL|  SWT.WRAP
                                                                                                                               /*| SWT.BORDER*/
                                                                                                                              ,                  store);
                fSignaturePreview.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
                fSignaturePreview.getTextWidget().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
                fSignaturePreview.getTextWidget().setBackground(composite.getBackground());
                fSignaturePreview.setDocument(fSignaturePreviewDocument);
                fSignaturePreview.setEditable(false);
                //Layouting problems with wrapped text: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
                Control signaturePreviewControl = fSignaturePreview.getControl();
                PixelConverter pixelConverter = new PixelConverter(signaturePreviewControl);
                GridData gdata = new GridData(GridData.FILL_BOTH);
                gdata.widthHint = pixelConverter.convertWidthInCharsToPixels(50);
                gdata.heightHint = pixelConverter.convertHeightInCharsToPixels(2);
                signaturePreviewControl.setLayoutData(gdata);


Clone Instance
3
Line Count
14
Source Line
160
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/IntroduceParameterWizard.java

                        fSignaturePreview = new JavaSourceViewer(composite, null, null, false, SWT.READ_ONLY|  SWT.V_SCROLL|  SWT.WRAP
                                                                                                                                       /*| SWT.BORDER*/
                                                                                                                                      ,                  store);
                        fSignaturePreview.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
                        fSignaturePreview.getTextWidget().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
                        fSignaturePreview.getTextWidget().setBackground(composite.getBackground());
                        fSignaturePreview.setDocument(fSignaturePreviewDocument);
                        fSignaturePreview.setEditable(false);
                        //Layouting problems with wrapped text: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
                        Control signaturePreviewControl = fSignaturePreview.getControl();
                        PixelConverter pixelConverter = new PixelConverter(signaturePreviewControl);
                        GridData gdata = new GridData(GridData.FILL_BOTH);
                        gdata.widthHint = pixelConverter.convertWidthInCharsToPixels(50);
                        gdata.heightHint = pixelConverter.convertHeightInCharsToPixels(2);
                        signaturePreviewControl.setLayoutData(gdata);


Clone AbstractionParameter Count: 0Parameter Bindings

fSignaturePreview = new JavaSourceViewer(composite, null, null, false, SWT.READ_ONLY|SWT.V_SCROLL|SWT.WRAP
                                                                                                          /*| SWT.BORDER*/
                                                                                                          , store);
fSignaturePreview.configure(new JavaSourceViewerConfiguration(JavaPlugin.getDefault().getJavaTextTools().getColorManager(), store, null, null));
fSignaturePreview.getTextWidget().setFont(JFaceResources.getFont(PreferenceConstants.EDITOR_TEXT_FONT));
fSignaturePreview.getTextWidget().setBackground(composite.getBackground());
fSignaturePreview.setDocument(fSignaturePreviewDocument);
fSignaturePreview.setEditable(false);
//Layouting problems with wrapped text: see https://bugs.eclipse.org/bugs/show_bug.cgi?id=9866
Control signaturePreviewControl = fSignaturePreview.getControl();
PixelConverter pixelConverter = new PixelConverter(signaturePreviewControl);
GridData gdata = new GridData(GridData.FILL_BOTH);
gdata.widthHint = pixelConverter.convertWidthInCharsToPixels(50);
gdata.heightHint = pixelConverter.convertHeightInCharsToPixels(2);
signaturePreviewControl.setLayoutData(gdata);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None