File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ColumnDetailDialog.java | |||
Method name: void itemStateChanged(ItemEvent)
|
Method name: void itemStateChanged(ItemEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (!dialect.supportsColumnComment()) {↵ | 1 | if (!dialect.supportsRenameColumn()) {↵ | |
2 | commentTextArea.setEditable(false);↵ | 2 | ↵ | |
3 | //i18n[ColumnDetailsDialog.columnCommentLabel={0} does not ↵ | 3 | //i18n[ColumnDetailsDialog.columnNameTootTip={0} does not ↵ | |
4 | //support column comments]↵ | 4 | //support ↵ | |
5 | altering column name]↵ | |||
5 | String noColumnSupportMsg =↵ | 6 | String noCol↵ | |
7 | NameChange = ↵ | |||
6 | s_stringMgr.getString(↵ | 8 | s_stringMgr.getString(↵ | |
7 | "ColumnDetailsDialog.columnCommentToolTip",↵ | 9 | "ColumnDetailsDialog.columnNameTootTip",↵ | |
10 | ↵ | |||
8 | dbName);↵ | 11 | dbName);↵ | |
9 | commentTextArea↵ | 12 | columnNameTextField.setEditable(false);↵ | |
10 | .setToolTipText(noColumnSupportMsg);↵ | 13 | columnNameTextField.setToolTipText(noColNameChange);↵ | |
11 | } else {↵ | 14 | } else {↵ | |
12 | commentTextArea.setEditable(true);↵ | 15 | columnNameTextField.setEditable(true);↵ | |
13 | commentTextArea.setToolTipText(null);↵ | 16 | ↵ | |
17 | columnNameTextField.setToolTipText(null); ↵ | |||
14 | } | 18 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 36 |
Number of mapped statements | 6 |
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) | 945.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!dialect.supportsColumnComment()) |
| 16 | if (!dialect.supportsRenameColumn()) | ||||||||||||||||
4 | commentTextArea.setEditable(false); |
| 18 | columnNameTextField.setEditable(false); | ||||||||||||||||
5 | String noColumnSupportMsg = s_stringMgr.getString("ColumnDetailsDialog.columnCommentToolTip", dbName); |
| 17 | String noColNameChange = s_stringMgr.getString("ColumnDetailsDialog.columnNameTootTip", dbName); | ||||||||||||||||
6 | commentTextArea.setToolTipText(noColumnSupportMsg); |
| 19 | columnNameTextField.setToolTipText(noColNameChange); | ||||||||||||||||
else | else | |||||||||||||||||||
7 | commentTextArea.setEditable(true); |
| 20 | columnNameTextField.setEditable(true); | ||||||||||||||||
8 | commentTextArea.setToolTipText(null); |
| 21 | columnNameTextField.setToolTipText(null); |
Row | Violation |
---|