public JPopupMenu createPopupMenu() {
   JPopupMenu menu = new JPopupMenu();
   JMenu addMenu =
       MenuFactory.makeMenus(
           new String[] {
             MenuFactory.CONFIG_ELEMENTS,
             MenuFactory.ASSERTIONS,
             MenuFactory.TIMERS,
             MenuFactory.LISTENERS,
           },
           JMeterUtils.getResString("add"), // $NON-NLS-1$
           ActionNames.ADD);
   menu.add(addMenu);
   MenuFactory.addEditMenu(menu, true);
   MenuFactory.addFileMenu(menu);
   return menu;
 }
 /**
  * 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>The TestPlan will return a popup menu allowing you to add ThreadGroups, Listeners,
  * Configuration Elements, Assertions, PreProcessors, PostProcessors, and Timers.
  *
  * @return a JPopupMenu appropriate for the component.
  */
 @Override
 public JPopupMenu createPopupMenu() {
   JPopupMenu pop = new JPopupMenu();
   JMenu addMenu = new JMenu(JMeterUtils.getResString("add")); // $NON-NLS-1$
   addMenu.add(MenuFactory.makeMenu(MenuFactory.THREADS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.FRAGMENTS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.CONFIG_ELEMENTS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.TIMERS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.PRE_PROCESSORS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.POST_PROCESSORS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.ASSERTIONS, ActionNames.ADD));
   addMenu.add(MenuFactory.makeMenu(MenuFactory.LISTENERS, ActionNames.ADD));
   pop.add(addMenu);
   MenuFactory.addPasteResetMenu(pop);
   MenuFactory.addFileMenu(pop, false);
   return pop;
 }