File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/DefaultContainer.java | |||
Method name: void setFrameMediator(IFrameMediator)
|
Method name: void switchFrameMediator(IFrameMediator)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | while (e.hasMoreElements()) {↵ | 1 | while (e.hasMoreElements()) {↵ | |
2 | Extension ext = (Extension) e.nextElement();↵ | 2 | Extension ext = (Extension) e.nextElement();↵ | |
3 | try {↵ | 3 | try {↵ | |
4 | IStatusBarExtension comp = (IStatusBarExtension) ext↵ | 4 | IStatusBarExtension comp = (IStatusBarExtension) ext↵ | |
5 | .instanciateExtension(new Object[] { m });↵ | 5 | .instanciateExtension(new Object[] { m });↵ | |
6 | statusBar.addComponent(comp);↵ | 6 | statusBar.addComponent(comp);↵ | |
7 | } catch (PluginException e1) {↵ | 7 | } catch (PluginException e1) {↵ | |
8 | e1.printStackTrace();↵ | 8 | e1.printStackTrace();↵ | |
9 | }↵ | 9 | }↵ | |
10 | } | 10 |
| |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 3.4 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
14 | while (e.hasMoreElements()) | 19 | while (e.hasMoreElements()) | |
15 | Extension ext = (Extension)e.nextElement(); | 20 | Extension ext = (Extension)e.nextElement(); | |
16 | try | 21 | try | |
17 | IStatusBarExtension comp = (IStatusBarExtension)ext.instanciateExtension(new Object[] {m}); | 22 | IStatusBarExtension comp = (IStatusBarExtension)ext.instanciateExtension(new Object[] {m}); | |
18 | statusBar.addComponent(comp); | 23 | statusBar.addComponent(comp); |
Row | Violation |
---|