| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 3 | 3 | 0.992 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 267 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java |
| 2 | 14 | 972 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java |
| 3 | 14 | 282 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddUnimplementedConstructorsAction.java |
| ||||
/*
* @see org.eclipse.jdt.internal.ui.dialogs.SourceActionDialog#createLinkControl(org.eclipse.swt.widgets.Composite)
*/
protected Control createLinkControl(Composite composite) {
Link link = new Link(composite, SWT.WRAP);
link.setText(JavaUIMessages.DelegateMethodDialog_link_message);
link.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
openCodeTempatePage(CodeTemplateContextType.OVERRIDECOMMENT_ID);
}
} );
link.setToolTipText(JavaUIMessages.DelegateMethodDialog_link_tooltip);
GridData gridData = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
gridData.widthHint = convertWidthInCharsToPixels(40); // only expand further if anyone else requires it
link.setLayoutData(gridData);
return link;
}
|
| ||||
/*
* @see org.eclipse.jdt.internal.ui.dialogs.SourceActionDialog#createLinkControl(org.eclipse.swt.widgets.Composite)
*/
protected Control createLinkControl(Composite composite) {
Link link = new Link(composite, SWT.WRAP);
link.setText(JavaUIMessages.GetterSetterMethodDialog_link_message);
link.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
openCodeTempatePage(CodeTemplateContextType.GETTERCOMMENT_ID);
}
} );
link.setToolTipText(JavaUIMessages.GetterSetterMethodDialog_link_tooltip);
GridData gridData = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
gridData.widthHint = convertWidthInCharsToPixels(40); // only expand further if anyone else requires it
link.setLayoutData(gridData);
return link;
}
|
| ||||
/*
* @see org.eclipse.jdt.internal.ui.dialogs.SourceActionDialog#createLinkControl(org.eclipse.swt.widgets.Composite)
*/
protected Control createLinkControl(Composite composite) {
Link link = new Link(composite, SWT.WRAP);
link.setText(JavaUIMessages.GenerateConstructorDialog_link_message);
link.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
openCodeTempatePage(CodeTemplateContextType.CONSTRUCTORCOMMENT_ID);
}
} );
link.setToolTipText(JavaUIMessages.GenerateConstructorDialog_link_tooltip);
GridData gridData = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
gridData.widthHint = convertWidthInCharsToPixels(40); // only expand further if anyone else requires it
link.setLayoutData(gridData);
return link;
}
|
| |||
/*
* @see org.eclipse.jdt.internal.ui.dialogs.SourceActionDialog#createLinkControl(org.eclipse.swt.widgets.Composite)
*/
protected Control createLinkControl(Composite composite) {
Link link = new Link(composite, SWT.WRAP);
link.setText(JavaUIMessages. [[#variable58679de0]]);
link.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
openCodeTempatePage(CodeTemplateContextType. [[#variable58679d40]]);
}
} );
link.setToolTipText(JavaUIMessages. [[#variable58679e00]]);
GridData gridData = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
gridData.widthHint = convertWidthInCharsToPixels(40); // only expand further if anyone else requires it
link.setLayoutData(gridData);
return link;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#58679de0]] | GenerateConstructorDialog_link_message |
| 1 | 2 | [[#58679de0]] | GetterSetterMethodDialog_link_message |
| 1 | 3 | [[#58679de0]] | DelegateMethodDialog_link_message |
| 2 | 1 | [[#58679d40]] | CONSTRUCTORCOMMENT_ID |
| 2 | 2 | [[#58679d40]] | GETTERCOMMENT_ID |
| 2 | 3 | [[#58679d40]] | OVERRIDECOMMENT_ID |
| 3 | 1 | [[#58679e00]] | GenerateConstructorDialog_link_tooltip |
| 3 | 2 | [[#58679e00]] | GetterSetterMethodDialog_link_tooltip |
| 3 | 3 | [[#58679e00]] | DelegateMethodDialog_link_tooltip |