File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/ReplaceAction.java | File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/SqlScriptAcessor.java | |||
Method name: void doActionPerformed(ISQLEntryPanel, ActionEvent)
|
Method name: void scriptTablesToSQLEntryArea(ISession, ITableInfo[])
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | String msg =↵ | 1 | String msg =↵ | |
2 | //i18n[syntax.replaceNetbeansOnly=Replace is only available when the Netbeans editor is used.\nSee menu File --> New Session Properties --> Tab Syntax]↵ | |||
3 | s_stringMgr.getString("syntax.replaceNetbeansOnly");↵ | 2 | s_stringMgr.getString("graph.scriptPlugNeeded");↵ | |
4 | JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg);↵ | 3 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg);↵ | |
5 | return; | 4 |
| |
See real code fragment | See real code fragment |
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 |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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 | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | String msg = s_stringMgr.getString("syntax.replaceNetbeansOnly"); |
| 3 | String msg = s_stringMgr.getString("graph.scriptPlugNeeded"); | ||||||||||
3 | JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); |
| 4 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), msg); | ||||||||||
4 | return; |
| 5 | return; |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |