JPanel createPortPanel() { JPanel portPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("port")); // $NON-NLS-1$ label.setLabelFor(port); portPanel.add(label, BorderLayout.WEST); portPanel.add(port, BorderLayout.CENTER); return portPanel; } /*************************************************************************** * This will create the Root distinguised name panel in the LdapConfigGui **************************************************************************/ private JPanel createRootdnPanel() { JPanel rootdnPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("ddn")); // $NON-NLS-1$ label.setLabelFor(rootdn); rootdnPanel.add(label, BorderLayout.WEST); rootdnPanel.add(rootdn, BorderLayout.CENTER); return rootdnPanel;
JPanel createPortPanel() { JPanel portPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("port")); // $NON-NLS-1$ label.setLabelFor(port); portPanel.add(label, BorderLayout.WEST); portPanel.add(port, BorderLayout.CENTER); return portPanel; } /** * This will create the Root distinguised name panel in the LdapConfigGui. */ private JPanel createRootdnPanel() { JPanel rootdnPanel = new JPanel(new BorderLayout(5, 0)); JLabel label = new JLabel(JMeterUtils.getResString("dn")); // $NON-NLS-1$ label.setLabelFor(rootdn); rootdnPanel.add(label, BorderLayout.WEST); rootdnPanel.add(rootdn, BorderLayout.CENTER); return rootdnPanel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapExtConfigGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LdapConfigGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
JPanel createPortPanel() {
1
JPanel createPortPanel() {
2
		JPanel portPanel = new JPanel(new BorderLayout(5, 0));
2
		JPanel portPanel = new JPanel(new BorderLayout(5, 0));
3
		JLabel label = new JLabel(JMeterUtils.getResString("port")); // $NON-NLS-1$
3
		JLabel label = new JLabel(JMeterUtils.getResString("port")); // $NON-NLS-1$
4
		label.setLabelFor(port);
4
		label.setLabelFor(port);
5
		portPanel.add(label, BorderLayout.WEST);
5
		portPanel.add(label, BorderLayout.WEST);
6
		portPanel.add(port, BorderLayout.CENTER);
6
		portPanel.add(port, BorderLayout.CENTER);
7
		return portPanel;
7
		return portPanel;
8
	}
8
	}
9
	/***************************************************************************
9
	/**
10
	 * This will create the Root distinguised name panel in the LdapConfigGui
10
	 * This will create the Root distinguised name panel in the LdapConfigGui.
11
	 **************************************************************************/
11
	 */
12
	private JPanel createRootdnPanel() {
12
	private JPanel createRootdnPanel() {
13
		JPanel rootdnPanel = new JPanel(new BorderLayout(5, 0));
13
		JPanel rootdnPanel = new JPanel(new BorderLayout(5, 0));
14
		JLabel label = new JLabel(JMeterUtils.getResString("ddn")); // $NON-NLS-1$
14
		JLabel label = new JLabel(JMeterUtils.getResString("dn")); // $NON-NLS-1$
15
		label.setLabelFor(rootdn);
15
		label.setLabelFor(rootdn);
16
		rootdnPanel.add(label, BorderLayout.WEST);
16
		rootdnPanel.add(label, BorderLayout.WEST);
17
		rootdnPanel.add(rootdn, BorderLayout.CENTER);
17
		rootdnPanel.add(rootdn, BorderLayout.CENTER);
18
		return rootdnPanel;
18
		return rootdnPanel;
19
	
19
	
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