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