freebusyButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String s = freebusyTextField.getText(); try { URL url = new URL(s); ColumbaDesktop.getInstance().browse(url); } catch (MalformedURLException e1) { e1.printStackTrace(); } } });
javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { IFrameMediator mediator = getFrameMediator(); IContainer container = mediator.getContainer(); try { FrameManager.getInstance().switchView(container, action); } catch (PluginLoadingFailedException e) { e.printStackTrace(); } } });
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/globalactions/SwitchPerspectiveSubmenu.java
Method name: void initComponents() Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 1 Number of AST nodes: 1
1
freebusyButton.addActionListener(new ActionListener() {
2
			public void actionPerformed(ActionEvent e) {
3
				String s = freebusyTextField.getText
1
javax.swing.SwingUtilities.invokeLater(new Runnable() {
2
			public void run() {
3
				IFrameMediator mediator = getFrameMediator();
4
();
4
				IContainer container = mediator.getContainer();
5
				try {
5
				try {
6
					URL url = new URL(s);
6
					
7
					ColumbaDesktop.getInstance().browse(url);
8
				} catch (MalformedURL
7
FrameManager.getInstance().switchView(container, action);
9
Exception e1) {
8
				} catch (PluginLoadingFailedException e) {
10
					e1.printStackTrace();
9
					e.printStackTrace();
11
				}
10
				}
12
			}
11
			}
13
		});
12
		});
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation