File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HTTPFileArgsPanel.java | |||
Method name: void deleteArgument()
|
Method name: void runCommandOnSelectedFile(String)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (rowSelected >= 0) {↵ | 1 | if (rowSelected >= 0) {↵ | |
2 | tableModel.removeRow(rowSelected);↵ | 2 | runCommandOnRow(command, rowSelected);↵ | |
3 | tableModel.fireTableDataChanged();↵ | 3 | tableModel.fireTableDataChanged();↵ | |
4 | // Disable DELETE if there are no rows in the table to delete.↵ | 4 | // Disable DELETE and BROWSE if there are no rows in the table to delete.↵ | |
5 | if (tableModel.getRowCount() == 0) {↵ | |||
6 | delete.setEnabled(false);↵ | |||
7 | }↵ | |||
8 | ↵ | 5 | checkDeleteAndBrowseStatus();↵ | |
9 | // Table still contains one or more rows, so highlight (select)↵ | 6 | // Table still contains one or more rows, so highlight (select)↵ | |
10 | // the appropriate one.↵ | 7 | // the appropriate one.↵ | |
11 | else {↵ | |||
12 | ↵ | 8 | if (tableModel.getRowCount() != 0) {↵ | |
13 | int rowToSelect = rowSelected;↵ | 9 | int rowToSelect = rowSelected;↵ | |
14 | if (rowSelected >= tableModel.getRowCount()) {↵ | 10 | if (rowSelected >= tableModel.getRowCount()) {↵ | |
15 | rowToSelect = rowSelected - 1;↵ | 11 | rowToSelect = rowSelected - 1;↵ | |
16 | }↵ | |||
17 | ↵ | 12 | }↵ | |
18 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | 13 | table.setRowSelectionInterval(rowToSelect, rowToSelect);↵ | |
19 | }↵ | |||
20 | ↵ | 14 | }↵ | |
21 | } | 15 | } | |
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 different classes having the same super class |
Number of node comparisons | 5 |
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.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
10 | int rowToSelect = rowSelected; | 10 | int rowToSelect = rowSelected; | |
11 | if (rowSelected >= tableModel.getRowCount()) | 11 | if (rowSelected >= tableModel.getRowCount()) | |
12 | rowToSelect = rowSelected - 1; | 12 | rowToSelect = rowSelected - 1; |
Row | Violation |
---|