ReportFilePanel(String title) { this.title = title; init(); } public ReportFilePanel(String title, String filetype) { this(title); this.filetype = filetype; } /** * Constructor for the FilePanel object. */ public ReportFilePanel(ChangeListener l, String title) { this.title = title; init(); listeners.add(l); } public void addChangeListener(ChangeListener l) { listeners.add(l); } private void init() { setBorder(BorderFactory.createTitledBorder(title)); add(label); add(Box.createHorizontalStrut(5)); add(filename); add(Box.createHorizontalStrut(5)); filename.addActionListener(this); add(browse); browse.setActionCommand
FilePanel(String title) { this.title = title; init(); } public FilePanel(String title, String filetype) { this(title); this.filetype = filetype; } /** * Constructor for the FilePanel object. */ public FilePanel(ChangeListener l, String title) { this.title = title; init(); listeners.add(l); } public void addChangeListener(ChangeListener l) { listeners.add(l); } private void init() { setBorder(BorderFactory.createTitledBorder(title)); add(label); add(Box.createHorizontalStrut(5)); add(filename); add(Box.createHorizontalStrut(5)); filename.addActionListener(this); add(browse); browse.setActionCommand
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportFilePanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FilePanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
ReportFilePanel(String title) {
1
FilePanel(String title) {
2
		this.title = title;
2
		this.title = title;
3
		init();
3
		init();
4
	}
4
	}
5
	public ReportFilePanel(String title, String filetype) {
5
	public FilePanel(String title, String filetype) {
6
		this(title);
6
		this(title);
7
		this.filetype = filetype;
7
		this.filetype = filetype;
8
	}
8
	}
9
	/**
9
	/**
10
	 * Constructor for the FilePanel object.
10
	 * Constructor for the FilePanel object.
11
	 */
11
	 */
12
	public ReportFilePanel(ChangeListener l, String title) {
12
	public FilePanel(ChangeListener l, String title) {
13
		this.title = title;
13
		this.title = title;
14
		init();
14
		init();
15
		listeners.add(l);
15
		listeners.add(l);
16
	}
16
	}
17
	public void addChangeListener(ChangeListener l) {
17
	public void addChangeListener(ChangeListener l) {
18
		listeners.add(l);
18
		listeners.add(l);
19
	}
19
	}
20
	private void init() {
20
	private void init() {
21
		setBorder(BorderFactory.createTitledBorder(title));
21
		setBorder(BorderFactory.createTitledBorder(title));
22
		add(label);
22
		add(label);
23
		add(Box.createHorizontalStrut(5));
23
		add(Box.createHorizontalStrut(5));
24
		add(filename);
24
		add(filename);
25
		add(Box.createHorizontalStrut(5));
25
		add(Box.createHorizontalStrut(5));
26
		filename.addActionListener(this);
26
		filename.addActionListener(this);
27
		add(browse);
27
		add(browse);
28
		browse.setActionCommand
28
		browse.setActionCommand
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0