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

(-)src/org/eclipse/wst/jsdt/core/LibrarySuperType.java (-2 / +2 lines)
Lines 139-146 Link Here
139
			return getLibraryName();
139
			return getLibraryName();
140
140
141
		}
141
		}
142
142
		
143
		return superTypeName + "() in " + getLibraryName(); //$NON-NLS-1$
143
		return  Messages.getString("LibrarySuperType.0", new Object[]{superTypeName, getLibraryName()}); //$NON-NLS-1$
144
	}
144
	}
145
145
146
	public boolean equals(Object o) {
146
	public boolean equals(Object o) {
(-)src/org/eclipse/wst/jsdt/core/Messages.java (+24 lines)
Added Link Here
1
package org.eclipse.wst.jsdt.core;
2
3
import java.util.MissingResourceException;
4
import java.util.ResourceBundle;
5
6
import com.ibm.icu.text.MessageFormat;
7
8
public class Messages {
9
	private static final String BUNDLE_NAME = "org.eclipse.wst.jsdt.core.messages"; //$NON-NLS-1$
10
11
	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
12
			.getBundle(BUNDLE_NAME);
13
14
	private Messages() {
15
	}
16
17
	public static String getString(String key, Object[] objects) {
18
		try {
19
			return  MessageFormat.format( RESOURCE_BUNDLE.getString(key),  objects);
20
		} catch (MissingResourceException e) {
21
			return '!' + key + '!';
22
		}
23
	}
24
}
(-)src/org/eclipse/wst/jsdt/core/messages.properties (+1 lines)
Added Link Here
1
LibrarySuperType.0={0}() in {1} 

Return to bug 232391