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