File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ActionBar.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CompleteWord.java | |||
Method name: void CompletionPopup(String[])
|
Method name: void CompleteWord(View, String, Completion[], Point, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | JScrollPane scroller = new JScrollPane(list,↵ | 1 | JScrollPane scroller = new JScrollPane(words,↵ | |
2 | JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,↵ | 2 | JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,↵ | |
3 | JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);↵ | 3 | JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);↵ | |
4 | getContentPane().add(scroller, BorderLayout.CENTER);↵ | 4 | getContentPane().add(scroller, BorderLayout.CENTER);↵ | |
5 | GUIUtilities.requestFocus(this,list);↵ | 5 | GUIUtilities.requestFocus(this,words);↵ | |
6 | pack(); | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | JScrollPane scroller = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); |
| 14 | JScrollPane scroller = new JScrollPane(words, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); | |||||||||||||
9 | getContentPane().add(scroller, BorderLayout.CENTER); | 15 | getContentPane().add(scroller, BorderLayout.CENTER); | ||||||||||||||
10 | GUIUtilities.requestFocus(this, list); |
| 16 | GUIUtilities.requestFocus(this, words); | |||||||||||||
11 | pack(); | 17 | pack(); |
Row | Violation |
---|