View | Details | Raw Unified | Return to bug 254200 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/dsf/mi/service/command/AbstractMIControl.java (-1 / +1 lines)
Lines 678-684 Link Here
678
        		clientMsg.append("Error message from debugger back end:\n"); //$NON-NLS-1$
678
        		clientMsg.append("Error message from debugger back end:\n"); //$NON-NLS-1$
679
        		if (parameters != null) {
679
        		if (parameters != null) {
680
        			try {
680
        			try {
681
        				clientMsg.append(MessageFormat.format(message, (Object[])parameters));
681
        				clientMsg.append(MessageFormat.format(message, parameters));
682
        			} catch(IllegalArgumentException e2) {
682
        			} catch(IllegalArgumentException e2) {
683
        				// Message format string invalid.  Fallback to just appending the strings. 
683
        				// Message format string invalid.  Fallback to just appending the strings. 
684
        				clientMsg.append(message);
684
        				clientMsg.append(message);
(-)src/org/eclipse/cdt/dsf/gdb/launching/LaunchMessages.java (-2 / +2 lines)
Lines 32-42 Link Here
32
	private LaunchMessages() {}
32
	private LaunchMessages() {}
33
33
34
	public static String getFormattedString(String key, String arg) {
34
	public static String getFormattedString(String key, String arg) {
35
		return MessageFormat.format(getString(key), (Object[])new String[]{arg});
35
		return MessageFormat.format(getString(key), new String[]{arg});
36
	}
36
	}
37
37
38
	public static String getFormattedString(String key, String[] args) {
38
	public static String getFormattedString(String key, String[] args) {
39
		return MessageFormat.format(getString(key), (Object[])args);
39
		return MessageFormat.format(getString(key), args);
40
	}
40
	}
41
41
42
	public static String getString(String key) {
42
	public static String getString(String key) {
(-)src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/LaunchUIMessages.java (-2 / +2 lines)
Lines 31-41 Link Here
31
	private LaunchUIMessages() {}
31
	private LaunchUIMessages() {}
32
32
33
	public static String getFormattedString(String key, String arg) {
33
	public static String getFormattedString(String key, String arg) {
34
		return MessageFormat.format(getString(key), (Object[])new String[]{arg});
34
		return MessageFormat.format(getString(key), new String[]{arg});
35
	}
35
	}
36
36
37
	public static String getFormattedString(String key, String[] args) {
37
	public static String getFormattedString(String key, String[] args) {
38
		return MessageFormat.format(getString(key), (Object[])args);
38
		return MessageFormat.format(getString(key), args);
39
	}
39
	}
40
40
41
	public static String getString(String key) {
41
	public static String getString(String key) {

Return to bug 254200