public static String getFormattedString(String key, Object arg) { return MessageFormat.format(getString(key), new Object[] { arg }); }
@Override public String getDisplayString() { if (fDisplayString == null) { String[] arguments= new String[] { fTemplate.getName(), fTemplate.getDescription() }; fDisplayString= JFaceTextTemplateMessages.getFormattedString("TemplateProposal.displayString", arguments); //$NON-NLS-1$ } return fDisplayString; }
@Override public String getDisplayString() { if (fDisplayString == null) { String[] arguments= new String[] { fTemplate.getName(), fTemplate.getDescription() }; fDisplayString= JFaceTextTemplateMessages.getFormattedString("TemplateProposal.displayString", arguments); //$NON-NLS-1$ } return fDisplayString; }
public static String getFormattedString(String key, Object[] args) { return MessageFormat.format(getString(key), args); } }
public static String getFormattedString(String key, Object[] args) { return MessageFormat.format(getString(key), args); } }
private void openErrorDialog(Shell shell, Exception e) { MessageDialog.openError(shell, JFaceTextTemplateMessages.getString("TemplateProposal.errorDialog.title"), e.getMessage()); //$NON-NLS-1$ }
public static String getFormattedString(String key, Object arg) { return MessageFormat.format(getString(key), new Object[] { arg }); }
private void openErrorDialog(Shell shell, Exception e) { MessageDialog.openError(shell, JFaceTextTemplateMessages.getString("TemplateProposal.errorDialog.title"), e.getMessage()); //$NON-NLS-1$ }