CloneSet4633


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113177
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistConfigurationBlock.java
21384
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
Clone Instance
1
Line Count
13
Source Line
177
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeAssistConfigurationBlock.java

        /**
         * Creates a selection dependency between a master and a slave control.
         * 
         * @param master
         *                   The master button that controls the state of the slave
         * @param slave
         *                   The slave control that is enabled only if the master is
         *                   selected
         */
        protected static void createSelectionDependency( final Button master, final Control slave) {

                master.addSelectionListener(new SelectionListener() {

                        public void widgetDefaultSelected(SelectionEvent event) {
                                // Do nothing
                        }

                        public void widgetSelected(SelectionEvent event) {
                                slave.setEnabled(master.getSelection());
                        }
                                            } );
                slave.setEnabled(master.getSelection());
        }


Clone Instance
2
Line Count
13
Source Line
84
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java

        /**
         * Creates a selection dependency between a master and a slave control.
         * 
         * @param master
         *                   The master button that controls the state of the slave
         * @param slave
         *                   The slave control that is enabled only if the master is
         *                   selected
         */
        protected static void createSelectionDependency( final Button master, final Control slave) {

                master.addSelectionListener(new SelectionListener() {

                        public void widgetDefaultSelected(SelectionEvent event) {
                                // Do nothing
                        }

                        public void widgetSelected(SelectionEvent event) {
                                slave.setEnabled(master.getSelection());
                        }
                                            } );
                slave.setEnabled(master.getSelection());
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Creates a selection dependency between a master and a slave control.
         * 
         * @param master
         *                   The master button that controls the state of the slave
         * @param slave
         *                   The slave control that is enabled only if the master is
         *                   selected
         */
protected static void createSelectionDependency( final Button master, final Control slave) {
  master.addSelectionListener(new SelectionListener() {
                                public void widgetDefaultSelected(SelectionEvent event) {
                                // Do nothing
                                }

                                public void widgetSelected(SelectionEvent event) {
                                  slave.setEnabled(master.getSelection());
                                }
                              } );
  slave.setEnabled(master.getSelection());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None