String getLabelResource() { return "runtime_controller_title"; // $NON-NLS-1$ } /** * Initialize the GUI components and layout for this component. */ private void init() { // The Loop Controller panel can be displayed standalone or inside // another panel. For standalone, we want to display the TITLE, NAME, // etc. (everything). However, if we want to display it within another // panel, we just display the Loop Count fields (not the TITLE and // NAME). // Standalone if (displayName) { setLayout(new BorderLayout(0, 5)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); JPanel mainPanel = new JPanel(new BorderLayout()); mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH); add(mainPanel, BorderLayout.CENTER); } else { // Embedded setLayout(new BorderLayout()); add(createLoopCountPanel(), BorderLayout.NORTH); }
String getLabelResource() { return "if_controller_title"; // $NON-NLS-1$ } /** * Initialize the GUI components and layout for this component. */ private void init() { // Standalone if (displayName) { setLayout(new BorderLayout(0, 5)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); JPanel mainPanel = new JPanel(new BorderLayout()); mainPanel.add(createConditionPanel(), BorderLayout.NORTH); add(mainPanel, BorderLayout.CENTER); } else { // Embedded setLayout(new BorderLayout()); add(createConditionPanel(), BorderLayout.NORTH); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/RunTimeGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/IfControllerPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getLabelResource() {
1
String getLabelResource() {
2
		return "runtime_controller_title"; // $NON-NLS-1$
2
		return "if_controller_title"; // $NON-NLS-1$
3
	}
3
	}
4
	/**
4
	/**
5
	 * Initialize the GUI components and layout for this component.
5
	 * Initialize the GUI components and layout for this component.
6
	 */
6
	 */
7
	private void init() {
7
	private void init() {
8
		// The Loop Controller panel can be displayed standalone or inside
9
		// another panel. For standalone, we want to display the TITLE, NAME,
10
		// etc. (everything). However, if we want to display it within another
11
		// panel, we just display the Loop Count fields (not the TITLE and
12
		// NAME).
13
		// Standalone
8
		// Standalone
14
		if (displayName) {
9
		if (displayName) {
15
			setLayout(new BorderLayout(0, 5));
10
			setLayout(new BorderLayout(0, 5));
16
			setBorder(makeBorder());
11
			setBorder(makeBorder());
17
			add(makeTitlePanel(), BorderLayout.NORTH);
12
			add(makeTitlePanel(), BorderLayout.NORTH);
18
			JPanel mainPanel = new JPanel(new BorderLayout());
13
			JPanel mainPanel = new JPanel(new BorderLayout());
19
			mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH);
14
			mainPanel.add(createConditionPanel(), BorderLayout.NORTH);
20
			add(mainPanel, BorderLayout.CENTER);
15
			add(mainPanel, BorderLayout.CENTER);
21
		} else {
16
		} else {
22
			// Embedded
17
			// Embedded
23
			setLayout(new BorderLayout());
18
			setLayout(new BorderLayout());
24
			add(createLoopCountPanel(), BorderLayout.NORTH);
19
			add(createConditionPanel(), BorderLayout.NORTH);
25
		}
20
		}
26
	
21
	
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