Author: sebb Date: Wed Nov 12 10:01:47 2008 New Revision: 713441 URL: http://svn.apache.org/viewvc?rev=713441&view=rev Log: Make AUth Manager Locale-aware
Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java?rev=713441&r1=713440&r2=713441&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java (original) +++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/AuthManager.java Wed Nov 12 10:01:47 2008 @@ -58,12 +58,12 @@ private final static String AUTH_LIST = "AuthManager.auth_list"; //$NON-NLS-1$ - private final static String[] columnNames = { - JMeterUtils.getResString("auth_base_url"), //$NON-NLS-1$ - JMeterUtils.getResString("username"), //$NON-NLS-1$ - JMeterUtils.getResString("password"), //$NON-NLS-1$ - JMeterUtils.getResString("domain"), //$NON-NLS-1$ - JMeterUtils.getResString("realm"), //$NON-NLS-1$ + private final static String[] COLUMN_RESOURCE_NAMES = { + "auth_base_url", //$NON-NLS-1$ + "username", //$NON-NLS-1$ + "password", //$NON-NLS-1$ + "domain", //$NON-NLS-1$ + "realm", //$NON-NLS-1$ }; // Column numbers - must agree with order above @@ -73,7 +73,7 @@ public final static int COL_DOMAIN = 3; public final static int COL_REALM = 4; - private final static int columnCount = columnNames.length; + private final static int COLUMN_COUNT = COLUMN_RESOURCE_NAMES.length; /** * Default Constructor. @@ -104,15 +104,15 @@ } public int getColumnCount() { - return columnCount; + return COLUMN_COUNT; } public String getColumnName(int column) { - return columnNames[column]; + return COLUMN_RESOURCE_NAMES[column]; } public Class getColumnClass(int column) { - return columnNames[column].getClass(); + return COLUMN_RESOURCE_NAMES[column].getClass(); } public Authorization getAuthObjectAt(int row) { Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java?rev=713441&r1=713440&r2=713441&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java (original) +++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/AuthPanel.java Wed Nov 12 10:01:47 2008 @@ -43,6 +43,7 @@ import org.apache.jmeter.config.gui.AbstractConfigGui; import org.apache.jmeter.gui.util.FileDialoger; +import org.apache.jmeter.gui.util.HeaderAsPropertyRenderer; import org.apache.jmeter.protocol.http.control.AuthManager; import org.apache.jmeter.protocol.http.control.Authorization; import org.apache.jmeter.testelement.TestElement; @@ -241,6 +242,7 @@ public JPanel createAuthTablePanel() { // create the JTable that holds auth per row authTable = new JTable(tableModel); + authTable.getTableHeader().setDefaultRenderer(new HeaderAsPropertyRenderer()); authTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); authTable.setPreferredScrollableViewportSize(new Dimension(100, 70)); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]