Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 184 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java |
2 | 13 | 597 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PropertiesFileEditorPreferencePage.java |
| ||||
private void createDependency( final Button master, String masterKey, final Control slave) { indent(slave); boolean masterState = fStore.getBoolean(masterKey); slave.setEnabled(masterState); SelectionListener listener = new SelectionListener() { public void widgetSelected(SelectionEvent e) { slave.setEnabled(master.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }; master.addSelectionListener(listener); fMasterSlaveListeners.add(listener); } |
| ||||
private void createDependency( final Button master, String masterKey, final Control slave) { indent(slave); boolean masterState = fOverlayStore.getBoolean(masterKey); slave.setEnabled(masterState); SelectionListener listener = new SelectionListener() { public void widgetSelected(SelectionEvent e) { slave.setEnabled(master.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }; master.addSelectionListener(listener); fMasterSlaveListeners.add(listener); } |
| |||
private void createDependency( final Button master, String masterKey, final Control slave) { indent(slave); boolean masterState = [[#variableb9402ae0]].getBoolean(masterKey); slave.setEnabled(masterState); SelectionListener listener = new SelectionListener() { public void widgetSelected(SelectionEvent e) { slave.setEnabled(master.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { } }; master.addSelectionListener(listener); fMasterSlaveListeners.add(listener); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b9402ae0]] | fOverlayStore |
1 | 2 | [[#b9402ae0]] | fStore |