File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/action/ItalicFormatAction.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/action/UnderlineFormatAction.java | |||
Method name: void ItalicFormatAction(IFrameMediator)
|
Method name: void UnderlineFormatAction(IFrameMediator)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu",↵ | 1 | putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu",↵ | |
2 | "composer", "menu_format_italic_tooltip")↵ | 2 | "composer", "menu_format_underline_tooltip")↵ | |
3 | .replaceAll("&", ""));↵ | 3 | .replaceAll("&", ""));↵ | |
4 | putValue(LARGE_ICON, MailImageLoader↵ | 4 | putValue(LARGE_ICON, MailImageLoader↵ | |
5 | .getIcon("format-text-italic.png"));↵ | 5 | .getIcon("format-text-underline.png"));↵ | |
6 | putValue(SMALL_ICON, MailImageLoader↵ | 6 | putValue(SMALL_ICON, MailImageLoader↵ | |
7 | .getSmallIcon("format-text-italic.png"));↵ | 7 | .getSmallIcon("format-text-underline.png"));↵ | |
8 | // shortcut key↵ | 8 | // shortcut key↵ | |
9 | putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, Toolkit↵ | 9 | putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_U, Toolkit↵ | |
10 | .getDefaultToolkit().getMenuShortcutKeyMask())); | 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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "composer", "menu_format_italic_tooltip").replaceAll("&", "")); |
| 2 | putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu", "composer", "menu_format_underline_tooltip").replaceAll("&", "")); | ||||||||||
3 | putValue(LARGE_ICON, MailImageLoader.getIcon("format-text-italic.png")); |
| 3 | putValue(LARGE_ICON, MailImageLoader.getIcon("format-text-underline.png")); | ||||||||||
4 | putValue(SMALL_ICON, MailImageLoader.getSmallIcon("format-text-italic.png")); |
| 4 | putValue(SMALL_ICON, MailImageLoader.getSmallIcon("format-text-underline.png")); | ||||||||||
5 | putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); |
| 5 | putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_U, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask())); |
Row | Violation |
---|