/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key the resourcebundle key * @param parameter the parameter for the message * @return the formated string */ public String formatMessage( final String key, final Object parameter ) { return formatMessage( key, new Object[] { parameter } ); }
/** * Formats the message stored in the resource bundle (using a * MessageFormat). * * @param key the resourcebundle key * @param parameter the parameter for the message * @return the formated string */ public String formatMessage(final String key, final Object parameter) { return formatMessage(key, new Object[]{parameter}); }
/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key the resourcebundle key * @param par1 the first parameter for the message * @param par2 the second parameter for the message * @return the formated string */ public String formatMessage( final String key, final Object par1, final Object par2 ) { return formatMessage( key, new Object[] { par1, par2 } ); }
/** * Formats the message stored in the resource bundle (using a * MessageFormat). * * @param key the resourcebundle key * @param par1 the first parameter for the message * @param par2 the second parameter for the message * @return the formated string */ public String formatMessage(final String key, final Object par1, final Object par2) { return formatMessage(key, new Object[]{par1, par2}); }
public String getString( final String key, final Object par1 ) { try { return formatMessage( key, par1 ); } catch ( MissingResourceException mre ) { logger.warn( "ResourceBundleSupport#getString(,,)", mre ); return '!' + key + '!'; } }
public String getString( final String key, final Object par1, final Object par2 ) { try { return formatMessage( key, par1, par2 ); } catch ( MissingResourceException mre ) { logger.warn( "ResourceBundleSupport#getString(,,)", mre ); return '!' + key + '!'; } }
public String getString( final String key, final Object[] parameters ) { try { return formatMessage( key, parameters ); } catch ( MissingResourceException mre ) { logger.warn( "ResourceBundleSupport#getString(,,)", mre ); return '!' + key + '!'; } }
public String getString(final String key, final Object[] parameters) { try { return formatMessage(key, parameters); } catch (MissingResourceException mre) { logger.warn("ResourceBundleSupport#getString(,,)", mre); return '!' + key + '!'; } }
public String getString(final String key, final Object par1) { try { return formatMessage(key, par1); } catch (MissingResourceException mre) { logger.warn("ResourceBundleSupport#getString(,,)", mre); return '!' + key + '!'; } }
public String getString(final String key, final Object par1, final Object par2) { try { return formatMessage(key, par1, par2); } catch (MissingResourceException mre) { logger.warn("ResourceBundleSupport#getString(,,)", mre); return '!' + key + '!'; } }
/** * Formats the message stored in the resource bundle (using a MessageFormat). * * @param key * the resourcebundle key * @param param1 * the parameter for the message * @return the formated string */ public static String getString( final String key, final Object... param1 ) { try { return bundle.formatMessage( key, param1 ); } catch ( MissingResourceException e ) { logger.warn( "Missing localization: " + key, e ); return '!' + key + '!'; } }
/** * Exports a report. * * @param report * the report. * @return true, if the export was successful, false otherwise. */ public boolean performExport( final MasterReport report ) { // need to connect to the report pane to receive state updates ... final ReportProgressDialog progressDialog; if ( "true".equals( report.getReportConfiguration().getConfigProperty( PrintingPlugin.PROGRESS_DIALOG_ENABLE_KEY, "false" ) ) ) { //$NON-NLS-1$ //$NON-NLS-2$ progressDialog = createProgressDialog(); if ( report.getTitle() == null ) { progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) ); } } else { progressDialog = null; } final PrintExportTask task = new PrintExportTask( report, progressDialog, getContext() ); final Thread worker = new Thread( task ); worker.start(); return true; }
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", title ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );
progressDialog.setTitle( getResources().getString( "ProgressDialog.EMPTY_TITLE" ) ); } else { progressDialog.setTitle( getResources().formatMessage( "ProgressDialog.TITLE", report.getTitle() ) );