void ok()
{
dispose();
} //}}}
//{{{ cancel() method
public void cancel()
{
dispose();
} //}}}
// private members
private JButton close;
//{{{ ActionHandler class
class ActionHandler implements ActionListener
{
public void actionPerformed(ActionEvent evt)
{
dispose();
}
}
void ok()
{
dispose();
} //}}}
//{{{ cancel() method
public void cancel()
{
dispose();
} //}}}
//{{{ ActionHandler class
class ActionHandler implements ActionListener
{
//{{{ actionPerformed() method
public void actionPerformed(ActionEvent evt)
{
dispose();
} //}}}
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/AboutDialog.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/TextAreaDialog.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void ok()↵ | | 1 | void ok()↵
|
2 | {↵ | | 2 | {↵
|
3 | dispose();↵ | | 3 | dispose();↵
|
4 | } //}}}↵ | | 4 | } //}}}↵
|
|
5 | //{{{ cancel() method↵ | | 5 | //{{{ cancel() method↵
|
6 | public void cancel()↵ | | 6 | public void cancel()↵
|
7 | {↵ | | 7 | {↵
|
8 | dispose();↵ | | 8 | dispose();↵
|
9 | } //}}}↵ | | 9 | } //}}}↵
|
|
10 | // private members↵ | | |
|
11 | private JButton close;↵ | | |
|
|
12 | //{{{ ActionHandler class↵ | | 10 | //{{{ ActionHandler class↵
|
13 | class ActionHandler implements ActionListener↵ | | 11 | class ActionHandler implements ActionListener↵
|
14 | {↵ | | 12 | {↵
|
15 | ↵ | | 13 | //{{{ actionPerformed() method↵
|
16 | public void actionPerformed(ActionEvent evt)↵ | | 14 | public void actionPerformed(ActionEvent evt)↵
|
17 | {↵ | | 15 | {↵
|
18 | dispose();↵ | | 16 | dispose();↵
|
19 | }↵ | | 17 | } //}}}↵
|
20 | } | | 18 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |