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 switchFrameMediator(IFrameMediator)
|
Method name: void setFrameMediator(IFrameMediator)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | IExtensionHandler handler = PluginManager↵ | 1 | IExtensionHandler handler = PluginManager↵ | |
2 | .getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_STATUSBAR);↵ | 2 | .getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_STATUSBAR);↵ | |
3 | Enumeration e = handler.getExtensionEnumeration();↵ | 3 | Enumeration e = handler.getExtensionEnumeration();↵ | |
4 | while (e.hasMoreElements()) {↵ | 4 | while (e.hasMoreElements()) {↵ | |
5 | Extension ext = (Extension) e.nextElement();↵ | 5 | Extension ext = (Extension) e.nextElement();↵ | |
6 | try {↵ | 6 | try {↵ | |
7 | IStatusBarExtension comp = (IStatusBarExtension) ext↵ | 7 | IStatusBarExtension comp = (IStatusBarExtension) ext↵ | |
8 | .instanciateExtension(new Object[] { m });↵ | 8 | .instanciateExtension(new Object[] { m });↵ | |
9 | statusBar.addComponent(comp);↵ | 9 | statusBar.addComponent(comp);↵ | |
10 | } catch (PluginException e1) {↵ | 10 | } catch (PluginException e1) {↵ | |
11 | e1.printStackTrace();↵ | 11 | e1.printStackTrace();↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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 | 18 |
Number of mapped statements | 7 |
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) | 2.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
17 | IExtensionHandler handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_STATUSBAR); | 12 | IExtensionHandler handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_STATUSBAR); | |
18 | Enumeration e = handler.getExtensionEnumeration(); | 13 | Enumeration e = handler.getExtensionEnumeration(); | |
19 | while (e.hasMoreElements()) | 14 | while (e.hasMoreElements()) | |
20 | Extension ext = (Extension)e.nextElement(); | 15 | Extension ext = (Extension)e.nextElement(); | |
21 | try | 16 | try | |
22 | IStatusBarExtension comp = (IStatusBarExtension)ext.instanciateExtension(new Object[] {m}); | 17 | IStatusBarExtension comp = (IStatusBarExtension)ext.instanciateExtension(new Object[] {m}); | |
23 | statusBar.addComponent(comp); | 18 | statusBar.addComponent(comp); |
Row | Violation |
---|