public void formatChanged(FormatChangedEvent event) { FormatInfo info = event.getInfo(); 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);
public void formatChanged(FormatChangedEvent event) { // select the menu item corresponding to present format FormatInfo info = event.getInfo(); 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
public void formatChanged(FormatChangedEvent event) {
1
public void formatChanged(FormatChangedEvent event) {
2
		// select the menu item corresponding to present format
2
		FormatInfo info = event.getInfo();
3
		FormatInfo info = event.getInfo();
3
		if (info.isHeading1()) {
4
		if (info.isHeading1()) {
4
			selectInParagraphComboBox(HTML.Tag.H1);
5
			selectMenuItem(HTML.Tag.H1);
5
		} else if (info.isHeading2()) {
6
		} else if (info.isHeading2()) {
6
			selectInParagraphComboBox(HTML.Tag.H2);
7
			selectMenuItem(HTML.Tag.H2);
7
		} else if (info.isHeading3()) {
8
		} else if (info.isHeading3()) {
8
			selectInParagraphComboBox(HTML.Tag.H3);
9
			selectMenuItem(HTML.Tag.H3);
9
		} else if (info.isPreformattet()) {
10
		} else if (info.isPreformattet()) {
10
			selectInParagraphComboBox(HTML.Tag.PRE);
11
			selectMenuItem(HTML.Tag.PRE);
11
		} else if (info.isAddress()) {
12
		} else if (info.isAddress()) {
12
			selectInParagraphComboBox(HTML.Tag.ADDRESS);
13
			selectMenuItem(HTML.Tag.ADDRESS);
13
		} else {
14
		} else {
14
			// select the "Normal" entry as default
15
			// select the "Normal" entry as default
15
			selectInParagraphComboBox(HTML.Tag.P);
16
			selectMenuItem(HTML.Tag.P);
16
		
17
		
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