private TreePath currentPath; private ActionListener actionHandler; private JMeterTreeModel model; private JTree tree; private boolean dragging = false; private JMeterTreeNode[] draggedNodes; private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif")); // $NON-NLS-1$ /** * Constructor for the JMeterTreeListener object. */ public JMeterTreeListener(JMeterTreeModel model) { this.model = model; dragIcon.validate(); dragIcon.setVisible(true); } public JMeterTreeListener() { dragIcon.validate(); dragIcon.setVisible(true); } public void setModel(JMeterTreeModel m) { model = m; } /** * Sets the ActionHandler attribute of the JMeterTreeListener object. * * @param ah * the new ActionHandler value */ public void setActionHandler(ActionListener ah) { actionHandler = ah; } /** * Sets the JTree attribute of the JMeterTreeListener object. * * @param tree * the new JTree value */ public void setJTree(JTree tree) { this.tree = tree; } /** * Sets the EndWindow attribute of the JMeterTreeListener object. * * @param window * the new EndWindow value */ public void setEndWindow(Container window) { // endWindow = window; } /** * Gets the JTree attribute of the JMeterTreeListener object. * * @return tree the current JTree value. */ public JTree getJTree() { return tree
private TreePath currentPath; private ActionListener actionHandler; private ReportTreeModel model; private JTree tree; private boolean dragging = false; private ReportTreeNode[] draggedNodes; private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif")); /** * Constructor for the JMeterTreeListener object. */ public ReportTreeListener(ReportTreeModel model) { this.model = model; dragIcon.validate(); dragIcon.setVisible(true); } public ReportTreeListener() { dragIcon.validate(); dragIcon.setVisible(true); } public void setModel(ReportTreeModel m) { model = m; } /** * Sets the ActionHandler attribute of the JMeterTreeListener object. * * @param ah * the new ActionHandler value */ public void setActionHandler(ActionListener ah) { actionHandler = ah; } /** * Sets the JTree attribute of the JMeterTreeListener object. * * @param tree * the new JTree value */ public void setJTree(JTree tree) { this.tree = tree; } /** * Sets the EndWindow attribute of the JMeterTreeListener object. * * @param window * the new EndWindow value */ public void setEndWindow(Container window) { // endWindow = window; } /** * Gets the JTree attribute of the JMeterTreeListener object. * * @return tree the current JTree value. */ public JTree getJTree() { return tree
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/tree/JMeterTreeListener.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/tree/ReportTreeListener.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private TreePath currentPath;
1
private TreePath currentPath;
2
	private ActionListener actionHandler;
2
	private ActionListener actionHandler;
3
	private JMeterTreeModel model;
3
	private ReportTreeModel model;
4
	private JTree tree;
4
	private JTree tree;
5
	private boolean dragging = false;
5
	private boolean dragging = false;
6
	private JMeterTreeNode[] draggedNodes;
6
	private ReportTreeNode[] draggedNodes;
7
	private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif")); // $NON-NLS-1$
7
	private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif"));
8
	/**
8
	/**
9
	 * Constructor for the JMeterTreeListener object.
9
	 * Constructor for the JMeterTreeListener object.
10
	 */
10
	 */
11
	public JMeterTreeListener(JMeterTreeModel model) {
11
	public ReportTreeListener(ReportTreeModel model) {
12
		this.model = model;
12
		this.model = model;
13
		dragIcon.validate();
13
		dragIcon.validate();
14
		dragIcon.setVisible(true);
14
		dragIcon.setVisible(true);
15
	}
15
	}
16
	public JMeterTreeListener() {
16
	public ReportTreeListener() {
17
		dragIcon.validate();
17
		dragIcon.validate();
18
		dragIcon.setVisible(true);
18
		dragIcon.setVisible(true);
19
	}
19
	}
20
	public void setModel(JMeterTreeModel m) {
20
	public void setModel(ReportTreeModel m) {
21
		model = m;
21
		model = m;
22
	}
22
	}
23
	/**
23
	/**
24
	 * Sets the ActionHandler attribute of the JMeterTreeListener object.
24
	 * Sets the ActionHandler attribute of the JMeterTreeListener object.
25
	 * 
25
	 * 
26
	 * @param ah
26
	 * @param ah
27
	 *            the new ActionHandler value
27
	 *            the new ActionHandler value
28
	 */
28
	 */
29
	public void setActionHandler(ActionListener ah) {
29
	public void setActionHandler(ActionListener ah) {
30
		actionHandler = ah;
30
		actionHandler = ah;
31
	}
31
	}
32
	/**
32
	/**
33
	 * Sets the JTree attribute of the JMeterTreeListener object.
33
	 * Sets the JTree attribute of the JMeterTreeListener object.
34
	 * 
34
	 * 
35
	 * @param tree
35
	 * @param tree
36
	 *            the new JTree value
36
	 *            the new JTree value
37
	 */
37
	 */
38
	public void setJTree(JTree tree) {
38
	public void setJTree(JTree tree) {
39
		this.tree = tree;
39
		this.tree = tree;
40
	}
40
	}
41
	/**
41
	/**
42
	 * Sets the EndWindow attribute of the JMeterTreeListener object.
42
	 * Sets the EndWindow attribute of the JMeterTreeListener object.
43
	 * 
43
	 * 
44
	 * @param window
44
	 * @param window
45
	 *            the new EndWindow value
45
	 *            the new EndWindow value
46
	 */
46
	 */
47
	public void setEndWindow(Container window) {
47
	public void setEndWindow(Container window) {
48
		// endWindow = window;
48
		// endWindow = window;
49
	}
49
	}
50
	/**
50
	/**
51
	 * Gets the JTree attribute of the JMeterTreeListener object.
51
	 * Gets the JTree attribute of the JMeterTreeListener object.
52
	 * 
52
	 * 
53
	 * @return tree the current JTree value.
53
	 * @return tree the current JTree value.
54
	 */
54
	 */
55
	public JTree getJTree() {
55
	public JTree getJTree() {
56
		return tree
56
		return tree
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