private class CopyAction extends BaseAction
{
CopyAction()
{
super(s_stringMgr.getString("TablePopupMenu.copy"));
}
public void actionPerformed(ActionEvent evt)
{
if (_table != null)
{
new TableCopyCommand(_table, false).execute();
private class CopyInsertStatementAction extends BaseAction
{
CopyInsertStatementAction()
{
super(s_stringMgr.getString("TablePopupMenu.copyasinsertstatement"));
}
public void actionPerformed(ActionEvent evt)
{
if (_table != null)
{
new TableCopyInsertStatementCommand(_table, getStatementSeparatorFromModel()).execute();
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/TablePopupMenu.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/TablePopupMenu.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private class CopyAction extends BaseAction↵ | | 1 | private class CopyInsertStatementAction extends BaseAction↵
|
2 | {↵ | | 2 | {↵
|
3 | CopyAction()↵ | | 3 | CopyInsertStatementAction()↵
|
4 | {↵ | | 4 | {↵
|
5 | super(s_stringMgr.getString("TablePopupMenu.copy"));↵ | | 5 | super(s_stringMgr.getString("TablePopupMenu.copyasinsertstatement"));↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public void actionPerformed(ActionEvent evt)↵ | | 7 | public void actionPerformed(ActionEvent evt)↵
|
8 | {↵ | | 8 | {↵
|
9 | if (_table != null)↵ | | 9 | if (_table != null)↵
|
10 | {↵ | | 10 | {↵
|
11 | new TableCopyCommand(_table, false).execute();↵ | | 11 | new TableCopyInsertStatementCommand(_table, getStatementSeparatorFromModel()).execute();↵
|
12 | | | 12 |
|
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 |