CloneSet2214


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113184
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.java
213597
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/PropertiesFileEditorPreferencePage.java
Clone Instance
1
Line Count
13
Source Line
184
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MarkOccurrencesConfigurationBlock.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);
        }


Clone Instance
2
Line Count
13
Source Line
597
Source File
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 = 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);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9402ae0]]
fOverlayStore 
12[[#b9402ae0]]
fStore