if (info.isHeading1()) { selectInParagraphComboBox(HTML.Tag.H1); } else if (info.isHeading2()) { selectInParagraphComboBox(HTML.Tag.H2); } else if (info.isHeading3()) { selectInParagraphComboBox(HTML.Tag.H3); } else if (info.isPreformattet()) { selectInParagraphComboBox(HTML.Tag.PRE); } else if (info.isAddress()) { selectInParagraphComboBox(HTML.Tag.ADDRESS); } else { // select the "Normal" entry as default selectInParagraphComboBox(HTML.Tag.P);
if (info.isHeading1()) { selectMenuItem(HTML.Tag.H1); } else if (info.isHeading2()) { selectMenuItem(HTML.Tag.H2); } else if (info.isHeading3()) { selectMenuItem(HTML.Tag.H3); } else if (info.isPreformattet()) { selectMenuItem(HTML.Tag.PRE); } else if (info.isAddress()) { selectMenuItem(HTML.Tag.ADDRESS); } else { // select the "Normal" entry as default selectMenuItem(HTML.Tag.P);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/HtmlToolbar.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/html/action/ParagraphMenu.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (info.isHeading1()) {
1
if (info.isHeading1()) {
2
			selectInParagraphComboBox(HTML.Tag.H1);
2
			selectMenuItem(HTML.Tag.H1);
3
		} else if (info.isHeading2()) {
3
		} else if (info.isHeading2()) {
4
			selectInParagraphComboBox(HTML.Tag.H2);
4
			selectMenuItem(HTML.Tag.H2);
5
		} else if (info.isHeading3()) {
5
		} else if (info.isHeading3()) {
6
			selectInParagraphComboBox(HTML.Tag.H3);
6
			selectMenuItem(HTML.Tag.H3);
7
		} else if (info.isPreformattet()) {
7
		} else if (info.isPreformattet()) {
8
			selectInParagraphComboBox(HTML.Tag.PRE);
8
			selectMenuItem(HTML.Tag.PRE);
9
		} else if (info.isAddress()) {
9
		} else if (info.isAddress()) {
10
			selectInParagraphComboBox(HTML.Tag.ADDRESS);
10
			selectMenuItem(HTML.Tag.ADDRESS);
11
		} else {
11
		} else {
12
			// select the "Normal" entry as default
12
			// select the "Normal" entry as default
13
			selectInParagraphComboBox(HTML.Tag.P);
13
			selectMenuItem(HTML.Tag.P);
14
		
14
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0