Bug 41903 - ViewResultsFullVisualizer : status column looks bad when you do copy and paste

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@520560 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: b538b19ccd
This commit is contained in:
Sebastian Bazley 2007-03-20 20:33:01 +00:00
parent 9e8b579e5a
commit b54f175d02
4 changed files with 27 additions and 2 deletions

View File

@ -63,10 +63,12 @@ public class TableVisualizer extends AbstractVisualizer implements Clearable {
private static final Logger log = LoggingManager.getLoggerForClass();
private static final ImageIcon imageSuccess = JMeterUtils.getImage(
JMeterUtils.getPropDefault("viewResultsTree.success", "icon_success_sml.gif"));
JMeterUtils.getPropDefault("viewResultsTree.success", "icon_success_sml.gif"),
JMeterUtils.getResString("table_visualizer_success"));
private static final ImageIcon imageFailure = JMeterUtils.getImage(
JMeterUtils.getPropDefault("viewResultsTree.failure", "icon_warning_sml.gif"));
JMeterUtils.getPropDefault("viewResultsTree.failure", "icon_warning_sml.gif"),
JMeterUtils.getResString("table_visualizer_warning"));
private final String[] COLUMNS = new String[] {
JMeterUtils.getResString("table_visualizer_sample_num"), // $NON-NLS-1$

View File

@ -694,7 +694,9 @@ table_visualizer_sample_num=Sample #
table_visualizer_sample_time=Sample Time(ms)
table_visualizer_start_time=Start Time
table_visualizer_status=Status
table_visualizer_success=Success
table_visualizer_thread_name=Thread Name
table_visualizer_warning=Warning
tcp_config_title=TCP Sampler Config
tcp_nodelay=Set NoDelay
tcp_port=Port Number\:

View File

@ -438,6 +438,26 @@ public class JMeterUtils implements UnitTestManager {
return null;
}
}
/**
* This looks for the requested image in the classpath under
* org.apache.jmeter.images. <name>, and also sets the description
* of the image, which is useful if the icon is going to be placed
* on the clipboard.
*
* @param name
* the name of the image
* @param description
* the description of the image
* @return The Image value
*/
public static ImageIcon getImage(String name, String description) {
ImageIcon icon = getImage(name);
if(icon != null) {
icon.setDescription(description);
}
return icon;
}
public static String getResourceFileAsText(String name) {
BufferedReader fileReader = null;

View File

@ -190,6 +190,7 @@ Removed deprecated method JMeterUtils.split() - use JOrphanUtils version instead
<li>Bug 40371 - response assertion "pattern to test" scrollbar problem</li>
<li>Bug 40589 - Unescape XML entities in embedded URLs</li>
<li>Bug 41902 - NPE in HTTPSampler when responseCode = -1</li>
<li>Bug 41903 - ViewResultsFullVisualizer : status column looks bad when you do copy and paste</li>
</ul>
<h3>Version 2.2</h3>