public class LogicControllerGui extends AbstractControllerGui { /** * Create a new LogicControllerGui instance. */ public LogicControllerGui() { init(); } /* Implements JMeterGUIComponent.createTestElement() */ public TestElement createTestElement() { GenericController lc = new GenericController(); configureTestElement(lc); return lc; } /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */ public void modifyTestElement(TestElement el) { configureTestElement(el); } public String getLabelResource() { return "logic_controller_title"; // $NON-NLS-1$ } /** * Initialize the GUI components and layout for this component. */ private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH);
public class AnchorModifierGui extends AbstractPreProcessorGui { public AnchorModifierGui() { init(); } public String getLabelResource() { return "anchor_modifier_title"; //$NON-NLS-1$ } public TestElement createTestElement() { AnchorModifier modifier = new AnchorModifier(); modifyTestElement(modifier); return modifier; } /** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ public void modifyTestElement(TestElement modifier) { configureTestElement(modifier); } private void init() { setLayout(new BorderLayout()); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/LogicControllerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/gui/AnchorModifierGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class LogicControllerGui extends AbstractControllerGui {
1
public class AnchorModifierGui extends Abstract
2
	/**
3
	 * Create a new LogicControllerGui instance.
4
	 */
5
	public LogicControllerGui() {
6
		init();
7
	}
8
	/* Implements JMeterGUIComponent.createTestElement() */
2
PreProcessorGui {
3
	public AnchorModifierGui() {
4
		init();
5
	}
6
	public String getLabelResource() {
7
		return "anchor_modifier_title"; //$NON-NLS-1$
8
	}
9
	public TestElement createTestElement() {
9
	public TestElement createTestElement() {
10
		GenericController lc = new GenericController();
10
		
11
		configure
11
AnchorModifier modifier = new AnchorModifier();
12
TestElement(lc);
12
		modifyTestElement(modifier);
13
		return lc;
13
		return modifier;
14
	}
14
	}
15
	/* Implements 
15
	/**
16
	 * Modifies a given TestElement to mirror the data in the gui components.
17
	 * 
16
JMeterGUIComponent.modifyTestElement(TestElement)
18
	 * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
17
 */
19
	 */
18
	public void modifyTestElement(TestElement el) {
20
	public void modifyTestElement(TestElement modifier) {
19
		configureTestElement(el);
21
		configureTestElement(
20
	}
21
	public String getLabelResource() {
22
		return "logic_controller_title"; // $NON-NLS-1$
23
	}
24
	/**
25
	 * Initialize the GUI components and layout for this component.
26
	 */
22
modifier);
23
	}
27
	private void init() {
24
	private void init() {
28
		setLayout(new BorderLayout());
25
		setLayout(new BorderLayout());
29
		setBorder(makeBorder());
26
		setBorder(makeBorder());
30
		add(makeTitlePanel(), BorderLayout.NORTH);
27
		add(makeTitlePanel(), BorderLayout.NORTH);
31
	
28
	
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