1 | public abstract class AbstractPostProcessorGui extends AbstractJMeterGuiComponent {↵ | | 1 | public abstract class AbstractTimerGui 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 timer↵
|
| | | 10 | * components.↵
|
| | | 11 | * ↵
|
| | | 12 | * @return a JPopupMenu appropriate for the component.↵
|
| | | 13 | */↵
|
| | | 14 | public JPopupMenu createPopupMenu() {↵
|
| | | 15 | return MenuFactory.getDefaultTimerMenu();↵
|
| | | 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#TIMERS}, which is↵
|
| | | 21 | * appropriate for most timer 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.TIMERS });
|