private StringBuffer createGetStringMethod(){ String ld= fgLineDelimiter; StringBuffer b= new StringBuffer(); b.append("public static String getString(String key) {").append(ld) .append("try {").append(ld) .append("return ") .append(getResourceBundleConstantName()) .append(".getString(key);").append(ld) .append("} catch (MissingResourceException e) {").append(ld) .append("return '!' + key + '!';").append(ld) .append("}").append(ld) .append("}").append(ld); return b;
private String createGetStringMethod() throws CoreException{ String bodyStatement = 	new StringBuffer() .append("try {").append(fgLineDelimiter) .append("return ") .append(getResourceBundleConstantName()) .append(".getString(key);").append(fgLineDelimiter) .append("} catch (MissingResourceException e) {").append(fgLineDelimiter) .append("return '!' + key + '!';").append(fgLineDelimiter) .append("}").toString();  String methodBody= StubUtility.getMethodBodyContent(false, fCu.getJavaProject(), fAccessorClassName, "getString", bodyStatement); if (methodBody == null) methodBody= ""; return createNewGetStringMethodComment() + "public static String getString(String key) {" + fgLineDelimiter + methodBody + fgLineDelimiter + '}';
	private StringBuffer createGetStringMethod(){		String ld= fgLineDelimiter; //want shorter name		StringBuffer b= new StringBuffer();		b.append("public static String getString(String key) {").append(ld) //$NON-NLS-1$		 .append("try {").append(ld) //$NON-NLS-1$		 .append("return ") //$NON-NLS-1$		 .append(getResourceBundleConstantName())		 .append(".getString(key);").append(ld) //$NON-NLS-1$		 .append("} catch (MissingResourceException e) {").append(ld) //$NON-NLS-1$		 .append("return '!' + key + '!';").append(ld) //$NON-NLS-1$		 .append("}").append(ld) //$NON-NLS-1$		 .append("}").append(ld); //$NON-NLS-1$		return b;	}