/** * Get the description that shows up in JFileChooser filter menu. * * @return description */ @Override public String getDescription() { return JMeterUtils.getResString("keystore_desc"); //$NON-NLS-1$ }
/** {@inheritDoc} */ @Override public String toString() { return JMeterUtils.getResString("view_results_render_html_embedded"); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public String toString() { return JMeterUtils.getResString("view_results_render_document"); // $NON-NLS-1$ }
/** * Returns a String for the title of the attributes-panel as set up in the * properties-file using the lookup-constant "mailer_attributes_panel". * * @return The title of the component. */ public String getAttributesTitle() { return JMeterUtils.getResString("mailer_attributes_panel"); //$NON-NLS-1$ }
/** * {@inheritDoc} */ @Override protected String getTimerRangeLabelKey() { return JMeterUtils.getResString("gaussian_timer_range"); //$NON-NLS-1$ }
/** {@inheritDoc} */ @Override public String toString() { return JMeterUtils.getResString("xpath_tester"); // $NON-NLS-1$ }
/** {@inheritDoc} */ @Override public String toString() { return JMeterUtils.getResString("view_results_render_html_formatted"); // $NON-NLS-1$ }
/** * Shows a message using a DialogBox. */ private void displayMessage(String message, boolean isError) { int type = isError ? JOptionPane.ERROR_MESSAGE : JOptionPane.INFORMATION_MESSAGE; JOptionPane.showMessageDialog(null, message, isError ? JMeterUtils.getResString("mailer_msg_title_error") : // $NON-NLS-1$ JMeterUtils.getResString("mailer_msg_title_information"), type); // $NON-NLS-1$ }
/** * Set the group label from the resource name. * * @param label_resource The text to be looked up and set */ @Override public final void setLabel(String label_resource) { this.mLabel.setText(JMeterUtils.getResString(label_resource)); }
public static Map<String, String> getFontNameMap() { Map<String, String> fontNameMap = new LinkedHashMap<>(2); fontNameMap.put(JMeterUtils.getResString("font.sansserif"), "SansSerif"); //$NON-NLS-1$ //$NON-NLS-1$ fontNameMap.put(JMeterUtils.getResString("font.serif"), "Serif"); //$NON-NLS-1$ return fontNameMap; }
private JPanel createMessagePositionPanel(){ JPanel panel = new JPanel(); panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils .getResString("smime_assertion_message_position"))); // $NON-NLS-1$ panel.add(messagePositionTf); return panel; } @Override
static String[] getLabels(String[] keys) { String[] labels = new String[keys.length]; for (int i = 0; i < labels.length; i++) { labels[i]=MessageFormat.format(JMeterUtils.getResString(keys[i]), getColumnsMsgParameters()[i]); } return labels; }
public RowDetailDialog(ObjectTableModel tableModel, int selectedRow) { super((JFrame) null, JMeterUtils.getResString("detail"), true); //$NON-NLS-1$ this.tableModel = tableModel; this.selectedRow = selectedRow; init(); }
/** * Make a menu from a resource string. * @param resource used to name menu and set text. * @return the menu */ private static JMenu makeMenuRes(String resource) { JMenu menu = new JMenu(JMeterUtils.getResString(resource)); menu.setName(resource); return menu; }
protected void initializeTableModel() { tableModel = new ObjectTableModel(new String[] { JMeterUtils.getResString(LABEL_LIBRARY) }, new Functor[0] , new Functor[0] , // i.e. bypass the Functors new Class[] { String.class }); }
private JPanel createResetPanel() { resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$ resetInterpreter.setName(BeanShellAssertion.PARAMETERS); JPanel resetInterpreterPanel = new JPanel(new BorderLayout()); resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST); return resetInterpreterPanel; }
private JPanel createParameterPanel() { JLabel label = new JLabel(JMeterUtils.getResString("bsh_script_parameters")); //$NON-NLS-1$ parameters = new JTextField(10); parameters.setName(BeanShellAssertion.PARAMETERS); label.setLabelFor(parameters); JPanel parameterPanel = new JPanel(new BorderLayout(5, 0)); parameterPanel.add(label, BorderLayout.WEST); parameterPanel.add(parameters, BorderLayout.CENTER); return parameterPanel; }
/** {@inheritDoc} */ @Override public void renderImage(SampleResult sampleResult) { clearData(); xmlDataField.setText(JMeterUtils.getResString("xpath_tester_no_text")); // $NON-NLS-1$ }
private void initializeFunctionList() { String[] functionNames = CompoundVariable.getFunctionNames(); Arrays.sort(functionNames, String::compareToIgnoreCase); functionList = new JLabeledChoice(JMeterUtils.getResString("choose_function"), functionNames); //$NON-NLS-1$ functionList.addChangeListener(this); }
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) setLayout(new VerticalLayout(5, VerticalLayout.BOTH, VerticalLayout.TOP)); setBorder(makeBorder()); add(makeTitlePanel()); style = new JCheckBox(JMeterUtils.getResString("ignore_subcontrollers")); // $NON-NLS-1$ add(CheckBoxPanel.wrap(style)); } }