View | Details | Raw Unified | Return to bug 41903
Collapse All | Expand All

(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/components/org/apache/jmeter/visualizers/TableVisualizer.java (-2 / +4 lines)
Lines 63-72 Link Here
63
	private static final Logger log = LoggingManager.getLoggerForClass();
63
	private static final Logger log = LoggingManager.getLoggerForClass();
64
	
64
	
65
	private static final ImageIcon imageSuccess = JMeterUtils.getImage(
65
	private static final ImageIcon imageSuccess = JMeterUtils.getImage(
66
	        JMeterUtils.getPropDefault("viewResultsTree.success", "icon_success_sml.gif"));
66
            JMeterUtils.getPropDefault("viewResultsTree.success", "icon_success_sml.gif"),
67
            JMeterUtils.getResString("table_visualizer_success"));
67
68
68
	private static final ImageIcon imageFailure = JMeterUtils.getImage(
69
	private static final ImageIcon imageFailure = JMeterUtils.getImage(
69
			JMeterUtils.getPropDefault("viewResultsTree.failure", "icon_warning_sml.gif"));
70
            JMeterUtils.getPropDefault("viewResultsTree.failure", "icon_warning_sml.gif"),
71
            JMeterUtils.getResString("table_visualizer_warning"));
70
72
71
	private final String[] COLUMNS = new String[] {
73
	private final String[] COLUMNS = new String[] {
72
            JMeterUtils.getResString("table_visualizer_sample_num"), // $NON-NLS-1$
74
            JMeterUtils.getResString("table_visualizer_sample_num"), // $NON-NLS-1$
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/core/org/apache/jmeter/util/JMeterUtils.java (+20 lines)
Lines 438-443 Link Here
438
			return null;
438
			return null;
439
		}
439
		}
440
	}
440
	}
441
    
442
    /**
443
     * This looks for the requested image in the classpath under
444
     * org.apache.jmeter.images. <name>, and also sets the description
445
     * of the image, which is useful if the icon is going to be placed 
446
     * on the clipboard.
447
     * 
448
     * @param name
449
     *            the name of the image
450
     * @param description
451
     *            the description of the image
452
     * @return The Image value
453
     */
454
    public static ImageIcon getImage(String name, String description) {
455
        ImageIcon icon = getImage(name);
456
        if(icon != null) {
457
            icon.setDescription(description);
458
        }
459
        return icon;
460
    }
441
461
442
	public static String getResourceFileAsText(String name) {
462
	public static String getResourceFileAsText(String name) {
443
		BufferedReader fileReader = null;
463
		BufferedReader fileReader = null;
(-)C:/Documents and Settings/alf.hogemark/workspace/Jmeter 2.2/src/core/org/apache/jmeter/resources/messages.properties (+2 lines)
Lines 694-700 Link Here
694
table_visualizer_sample_time=Sample Time(ms)
694
table_visualizer_sample_time=Sample Time(ms)
695
table_visualizer_start_time=Start Time
695
table_visualizer_start_time=Start Time
696
table_visualizer_status=Status
696
table_visualizer_status=Status
697
table_visualizer_success=Success
697
table_visualizer_thread_name=Thread Name
698
table_visualizer_thread_name=Thread Name
699
table_visualizer_warning=Warning
698
tcp_config_title=TCP Sampler Config
700
tcp_config_title=TCP Sampler Config
699
tcp_nodelay=Set NoDelay
701
tcp_nodelay=Set NoDelay
700
tcp_port=Port Number\:
702
tcp_port=Port Number\:

Return to bug 41903