public JMeterTreeModel() { this(new TestPlanGui().createTestElement()); }
/** * Initialize the components and layout of this component. */ private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new BorderLayout(10, 10)); setBorder(makeBorder()); add(makeTitlePanel(), BorderLayout.NORTH); add(argsPanel, BorderLayout.CENTER); VerticalPanel southPanel = new VerticalPanel(); southPanel.add(serializedMode); southPanel.add(tearDownOnShutdown); southPanel.add(functionalMode); JTextArea explain = new JTextArea(JMeterUtils.getResString("functional_mode_explanation")); // $NON-NLS-1$ explain.setEditable(false); explain.setBackground(this.getBackground()); southPanel.add(explain); southPanel.add(browseJar); add(southPanel, BorderLayout.SOUTH); }
@Override public TestElement createTestElement() { TestPlan tp = new TestPlan(); modifyTestElement(tp); return tp; }
/** * Create a new TestPlanGui. */ public TestPlanGui() { browseJar = new FileListPanel(JMeterUtils.getResString("test_plan_classpath_browse"), ".jar"); // $NON-NLS-1$ $NON-NLS-2$ argsPanel = new ArgumentsPanel(JMeterUtils.getResString("user_defined_variables")); // $NON-NLS-1$ serializedMode = new JCheckBox(JMeterUtils.getResString("testplan.serialized")); // $NON-NLS-1$ functionalMode = new JCheckBox(JMeterUtils.getResString("functional_mode")); // $NON-NLS-1$ tearDownOnShutdown = new JCheckBox(JMeterUtils.getResString("teardown_on_shutdown"), true); // $NON-NLS-1$ init(); }
/** * Clear the test plan, and use default node for test plan. * * N.B. Should only be called by {@link GuiPackage#clearTestPlan()} */ public void clearTestPlan() { TestElement tp = new TestPlanGui().createTestElement(); clearTestPlan(tp); }