calendarButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String s = calendarTextField.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 | calendarButton.addActionListener(new ActionListener() {↵ | | |
|
2 | public void actionPerf↵ | | 1 | javax.swing.SwingUtilities.invokeLater(new Runnable() {↵
|
| | | 2 | public void run() {↵
|
|
3 | ormed(ActionEvent e) {↵ | | 3 | IFrameMediator med↵
|
4 | String s = calendarTextField.getText↵ | | 4 | iator = getFrameMediator();↵
|
|
5 | ();↵ | | 5 | IContainer container = mediator.getContainer();↵
|
|
6 | try {↵ | | 6 | try {↵
|
7 | URL url = new URL(s);↵ | | 7 | ↵
|
8 | ColumbaDesktop.getInstance().browse(url);↵ | | |
|
9 | } catch (MalformedURL↵ | | 8 | FrameManager.getInstance().switchView(container, action);↵
|
10 | Exception e1) {↵ | | 9 | } catch (PluginLoadingFailedException e) {↵
|
11 | e1.printStackTrace();↵ | | 10 | e.printStackTrace();↵
|
12 | }↵ | | 11 | }↵
|
13 | }↵ | | 12 | }↵
|
14 | }); | | 13 | });
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 1 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |