Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.990 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 482 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java |
2 | 15 | 411 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java |
| ||||
// ------ enable / disable management /* * @see DialogField#dialogFieldChanged */ public void dialogFieldChanged() { super.dialogFieldChanged(); updateButtonState(); } /* * Updates the enable state of the all buttons */ protected void updateButtonState() { if (fButtonControls != null && isOkToUse(fTableControl) && fTableControl.isEnabled()) { ISelection sel = fTable.getSelection(); for (int i = 0; i < fButtonControls.length; i++) { Button button = fButtonControls[i]; if (isOkToUse(button)) { button.setEnabled(isButtonEnabled(sel, i)); } } } } |
| ||||
// ------ enable / disable management /* * @see DialogField#dialogFieldChanged */ public void dialogFieldChanged() { super.dialogFieldChanged(); updateButtonState(); } /* * Updates the enable state of the all buttons */ protected void updateButtonState() { if (fButtonControls != null && isOkToUse(fTreeControl) && fTreeControl.isEnabled()) { ISelection sel = fTree.getSelection(); for (int i = 0; i < fButtonControls.length; i++) { Button button = fButtonControls[i]; if (isOkToUse(button)) { button.setEnabled(isButtonEnabled(sel, i)); } } } } |
| |||
// ------ enable / disable management /* * @see DialogField#dialogFieldChanged */ /* * @see DialogField#dialogFieldChanged */ public void dialogFieldChanged() { super.dialogFieldChanged(); updateButtonState(); } /* * Updates the enable state of the all buttons */ /* * Updates the enable state of the all buttons */ protected void updateButtonState() { if (fButtonControls != null && isOkToUse( [[#variable9fea1d00]]) && [[#variable9fea1d00]].isEnabled()) { ISelection sel = [[#variable9fea1dc0]].getSelection(); for (int i = 0; i < fButtonControls.length; i++) { Button button = fButtonControls[i]; if (isOkToUse(button)) { button.setEnabled(isButtonEnabled(sel, i)); } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9fea1d00]] | fTableControl |
1 | 2 | [[#9fea1d00]] | fTreeControl |
2 | 1 | [[#9fea1dc0]] | fTable |
2 | 2 | [[#9fea1dc0]] | fTree |