CloneSet1263


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.997class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120630
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java
22183
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java
Clone Instance
1
Line Count
20
Source Line
630
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java

        private KeyAdapter getKeyAdapter() {
                if (fKeyAdapter == null) {
                        fKeyAdapter = new KeyAdapter() {
                                 public void keyPressed(KeyEvent e) {
                                         int accelerator = SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
                                         KeySequence keySequence = KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator));
                                         KeySequence[] sequences = getInvokingCommandKeySequences();
                                         if (sequences == null)
                                                 return;
                                         for (int i = 0; i < sequences.length; i++) {
                                                 if (sequences[i].equals(keySequence)) {
                                                         e.doit = false;
                                                         toggleShowInheritedMembers();
                                                         return;
                                                 }
                                         }
                                 }
                                      };
                }
                return fKeyAdapter;
        }


Clone Instance
2
Line Count
21
Source Line
83
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HierarchyInformationControl.java

        private KeyAdapter getKeyAdapter() {
                if (fKeyAdapter == null) {
                        fKeyAdapter = new KeyAdapter() {
                                 public void keyPressed(KeyEvent e) {
                                         int accelerator = SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
                                         KeySequence keySequence = KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator));
                                         KeySequence[] sequences = getInvokingCommandKeySequences();
                                         if (sequences == null)
                                                 return;

                                         for (int i = 0; i < sequences.length; i++) {
                                                 if (sequences[i].equals(keySequence)) {
                                                         e.doit = false;
                                                         toggleHierarchy();
                                                         return;
                                                 }
                                         }
                                 }
                                      };
                }
                return fKeyAdapter;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

private KeyAdapter getKeyAdapter() {
  if (fKeyAdapter == null) {
    fKeyAdapter = new KeyAdapter() {
                    public void keyPressed(KeyEvent e) {
                      int accelerator = SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
                      KeySequence keySequence = KeySequence.getInstance(SWTKeySupport.convertAcceleratorToKeyStroke(accelerator));
                      KeySequence[] sequences = getInvokingCommandKeySequences();
                      if (sequences == null)
                        return;
                      for (int i = 0; i < sequences.length; i++) {
                        if (sequences[i].equals(keySequence)) {
                          e.doit = false;
                           [[#variable95e9c9a0]]();
                          return;
                        }
                      }
                    }
                  };
  }
  return fKeyAdapter;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95e9c9a0]]
toggleHierarchy 
12[[#95e9c9a0]]
toggleShowInheritedMembers