JFileChooser fc = new JFileChooser(); fc.setMultiSelectionEnabled(true); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); fc.setFileHidingEnabled(false);
JFileChooser fc = new JFileChooser(); fc.setMultiSelectionEnabled(true); // bug #996381 (fdietz), directories only!! fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fc.setFileHidingEnabled(false);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/externaltools/LocationStep.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileManagerDialog.java
Method name: void actionPerformed(ActionEvent) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 4 Number of AST nodes: 4
1
JFileChooser fc = new JFileChooser();
1
JFileChooser fc = new JFileChooser();
2
            fc.setMultiSelectionEnabled(true);
2
			fc.setMultiSelectionEnabled(true);
3
            
3
			// bug #996381 (fdietz), directories only!!
4
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
4
			fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
5
            fc.setFileHidingEnabled(false);
5
			fc.setFileHidingEnabled(false);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    JFileChooser fc = new JFileChooser();
    7
    JFileChooser fc = new JFileChooser();
    4
    fc.setMultiSelectionEnabled(true);
    8
    fc.setMultiSelectionEnabled(true);
    5
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
    5
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
    9
    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    Differences
    Expression1Expression2Difference
    FILES_ONLYDIRECTORIES_ONLYVARIABLE_NAME_MISMATCH
    9
    fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    6
    fc.setFileHidingEnabled(false);
    10
    fc.setFileHidingEnabled(false);
    Precondition Violations (0)
    Row Violation