menuMap.put(SAMPLERS, samplers);
Collections.sort(guiClasses);
Iterator iter = guiClasses.iterator();
while(iter.hasNext())
{
JMeterGUIComponent item;
try
{
item = (JMeterGUIComponent)Class.forName(
(String)iter.next()).newInstance();
}
catch(Throwable e)
{
continue;
}
if(elementsToSkip.contains(item.getClass().getName()) ||
elementsToSkip.contains(item.getStaticLabel()))
{
continue;
}
Collection categories = item.getMenuCategories();
if(categories == null)
{
continue;
}
if(categories.contains(TIMERS))
{
timers.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(CONTROLLERS))
{
controllers.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(SAMPLERS))
{
samplers.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(RESPONSE_BASED_MODIFIERS))
{
responseBasedModifiers.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(NON_TEST_ELEMENTS))
{
nonTestElements.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(MODIFIERS))
{
modifiers.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(LISTENERS))
{
listeners.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(CONFIG_ELEMENTS))
{
configElements.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
if(categories.contains(ASSERTIONS))
{
assertions.add(new MenuInfo(item.getStaticLabel(),
item.getClass().getName()));
}
}
}
catch(Exception e)