public abstract class AbstractControllerGui extends AbstractJMeterGuiComponent { /** * When a user right-clicks on the component in the test tree, or selects * the edit menu when the component is selected, the component will be asked * to return a JPopupMenu that provides all the options available to the * user from this component. * <p> * This implementation returns menu items appropriate for most controller * components. * * @return a JPopupMenu appropriate for the component. */ public JPopupMenu createPopupMenu() { return MenuFactory.getDefaultControllerMenu(); } /** * This is the list of menu categories this gui component will be available * under. This implementation returns * {@link org.apache.jmeter.gui.util.MenuFactory#CONTROLLERS}, which is * appropriate for most controller components. * * @return a Collection of Strings, where each element is one of the * constants defined in MenuFactory */ public Collection getMenuCategories() { return Arrays.asList(new String[] { MenuFactory.CONTROLLERS });
public abstract class AbstractTimerGui extends AbstractJMeterGuiComponent { /** * When a user right-clicks on the component in the test tree, or selects * the edit menu when the component is selected, the component will be asked * to return a JPopupMenu that provides all the options available to the * user from this component. * <p> * This implementation returns menu items appropriate for most timer * components. * * @return a JPopupMenu appropriate for the component. */ public JPopupMenu createPopupMenu() { return MenuFactory.getDefaultTimerMenu(); } /** * This is the list of menu categories this gui component will be available * under. This implementation returns * {@link org.apache.jmeter.gui.util.MenuFactory#TIMERS}, which is * appropriate for most timer components. * * @return a Collection of Strings, where each element is one of the * constants defined in MenuFactory */ public Collection getMenuCategories() { return Arrays.asList(new String[] { MenuFactory.TIMERS });
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/AbstractControllerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/timers/gui/AbstractTimerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public abstract class AbstractControllerGui extends AbstractJMeterGuiComponent {
1
public abstract class AbstractTimerGui extends AbstractJMeterGuiComponent {
2
	/**
2
	/**
3
	 * When a user right-clicks on the component in the test tree, or selects
3
	 * When a user right-clicks on the component in the test tree, or selects
4
	 * the edit menu when the component is selected, the component will be asked
4
	 * the edit menu when the component is selected, the component will be asked
5
	 * to return a JPopupMenu that provides all the options available to the
5
	 * to return a JPopupMenu that provides all the options available to the
6
	 * user from this component.
6
	 * user from this component.
7
	 * <p>
7
	 * <p>
8
	 * This implementation returns menu items appropriate for most controller
8
	 * This implementation returns menu items appropriate for most timer
9
	 * components.
9
	 * components.
10
	 * 
10
	 * 
11
	 * @return a JPopupMenu appropriate for the component.
11
	 * @return a JPopupMenu appropriate for the component.
12
	 */
12
	 */
13
	public JPopupMenu createPopupMenu() {
13
	public JPopupMenu createPopupMenu() {
14
		return MenuFactory.getDefaultControllerMenu();
14
		return MenuFactory.getDefaultTimerMenu();
15
	}
15
	}
16
	/**
16
	/**
17
	 * This is the list of menu categories this gui component will be available
17
	 * This is the list of menu categories this gui component will be available
18
	 * under. This implementation returns
18
	 * under. This implementation returns
19
	 * {@link org.apache.jmeter.gui.util.MenuFactory#CONTROLLERS}, which is
19
	 * {@link org.apache.jmeter.gui.util.MenuFactory#TIMERS}, which is
20
	 * appropriate for most controller components.
20
	 * appropriate for most timer components.
21
	 * 
21
	 * 
22
	 * @return a Collection of Strings, where each element is one of the
22
	 * @return a Collection of Strings, where each element is one of the
23
	 *         constants defined in MenuFactory
23
	 *         constants defined in MenuFactory
24
	 */
24
	 */
25
	public Collection getMenuCategories() {
25
	public Collection getMenuCategories() {
26
		return Arrays.asList(new String[] { MenuFactory.CONTROLLERS });
26
		return Arrays.asList(new String[] { MenuFactory.TIMERS });
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