//----- ActionListener interface : start -----
public void actionPerformed(ActionEvent e)
{
String command = e.getActionCommand();
ReflectionJMeterEngine engine = null;
GuiPackage guiPackage = null;
if (log.isDebugEnabled())
{
log.debug("actionPerformed1 : command - " + command);
}
if (command.equals(REFLECT))
{
guiPackage = GuiPackage.getInstance();
Collection groups = TestPlan.createTestPlan(null).compileTestPlan();
engine = new ReflectionJMeterEngine();
for (Iterator i = groups.iterator(); i.hasNext();)
{
ThreadGroup tg = (ThreadGroup) i.next();
if (log.isDebugEnabled())
{
log.debug("actionPerformed1 : threadgroup - " + tg);
}
engine.addThreadGroup(tg);
}
guiPackage.getMainFrame().setRunning(true);
model.setReflectionStatus(true);
engine.runTest();
guiPackage.getMainFrame().setRunning(false);
model.setReflectionStatus(false);
updateGui();
}
if (command.equals(INVOKE))
{