You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/11/12 02:20:48 UTC
svn commit: r713237 -
/jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java
Author: sebb
Date: Tue Nov 11 17:20:48 2008
New Revision: 713237
URL: http://svn.apache.org/viewvc?rev=713237&view=rev
Log:
Probably not used, but add I18N support anyway
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java?rev=713237&r1=713236&r2=713237&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/config/gui/SimpleConfigGui.java Tue Nov 11 17:20:48 2008
@@ -47,6 +47,8 @@
// TODO: This class looks a lot like ArgumentsPanel. What exactly is the
// difference? Could they be combined?
+ // Note: it seems that this class is not actually used ...
+
/** The table of configuration parameters. */
private JTable table;
@@ -70,15 +72,12 @@
* If true, this is a standalone component. If false, this component is
* intended to be used as a subpanel for another component.
*/
- private boolean displayName = true;
+ private final boolean displayName;
- /** The names of the columns in the table. */
- private static final String COLUMN_NAMES_0 = JMeterUtils.getResString("name"); // $NON-NLS-1$
+ /** The resource names of the columns in the table. */
+ private static final String COLUMN_NAMES_0 = "name"; // $NON-NLS-1$
- private static final String COLUMN_NAMES_1 = JMeterUtils.getResString("value"); // $NON-NLS-1$
-
- // NOTUSED private static final String COLUMN_NAMES_2 =
- // JMeterUtils.getResString("metadata");
+ private static final String COLUMN_NAMES_1 = "value"; // $NON-NLS-1$
/**
* Create a new standalone SimpleConfigGui.
@@ -195,8 +194,9 @@
* @return a GUI panel containing the parameter table
*/
private Component createTablePanel() {
- tableModel = new PowerTableModel(new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 }, new Class[] { String.class,
- String.class });
+ tableModel = new PowerTableModel(
+ new String[] { COLUMN_NAMES_0, COLUMN_NAMES_1 },
+ new Class[] { String.class, String.class }, true);
table = new JTable(tableModel);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org