@Override protected String calculateString( String packageName, String key, Object[] parameters, Class<?> resourceClass ) { if ( replaceWith != null ) { final String[] pkgNames = new String[] { replacePackage( packageName ), replaceSysBundle }; final String string = super.calculateString( pkgNames, key, parameters, resourceClass ); if ( !GlobalMessageUtil.isMissingKey( string ) ) { return string; } } final String[] pkgNames = new String[] { packageName, SYSTEM_BUNDLE_PACKAGE }; return GlobalMessageUtil.calculateString( pkgNames, key, parameters, resourceClass, BUNDLE_NAME, false ); } }
public static String getString( String packageName, String key, String... parameters ) { return getInstanceHandler().getString( packageName, key, parameters ); }
/** * * @param key * the key. * @param param1 * the param1. * @return the message. */ public String getString( final String key, final String param1 ) { return BaseMessages.getString( this.packageName, key, param1 ); }
public static synchronized MessageHandler getInstance() { if ( GMinstance == null ) { GMinstance = new GlobalMessages(); } return GMinstance; }
@Override public String getString( String packageName, String key ) { Object[] parameters = new Object[] {}; return calculateString( packageName, key, parameters ); }
public static synchronized MessageHandler getInstance() { if ( GMinstance == null ) { GMinstance = new LAFMessageHandler(); } return GMinstance; }
/** * Calls {@link #calculateString(String[], String, Object[], Class, String, boolean)} with the {@code * logNotFoundError} parameter set to {@code true} to ensure proper error logging when the localized string cannot be * found. */ public static String calculateString( final String[] pkgNames, final String key, final Object[] parameters, final Class<?> resourceClass, final String bundleName ) { return calculateString( pkgNames, key, parameters, resourceClass, bundleName, false, false ); }
/** * @return The objects referenced in the step, like a mapping, a transformation, a job, ... */ public String[] getReferencedObjectDescriptions() { return new String[] { BaseMessages.getString( PKG, "SingleThreaderMeta.ReferencedObject.Description" ), }; }
public static String getString( String packageName, String key ) { return getInstanceHandler().getString( packageName, key, new String[] {} ); }
@Override protected Object handleGetObject( String key ) { return BaseMessages.getString( PKG, key ); } };
public GetFieldsSampleDataDialog( final Shell parentShell, final GetFieldsCapableStepDialog parentDialog, final boolean reloadAllFields ) { super( parentShell, SAMPLE_SIZE, BaseMessages.getString( PKG, "System.GetFields.SampleSize.Dialog.Title" ), BaseMessages.getString( PKG, "System.GetFields.SampleSize.Dialog.Message" ), BaseMessages.getString( PKG, "System.GetFields.SampleSize.Dialog.ShowSample.Message" ), SHELL_WIDTH ); this.parentDialog = parentDialog; this.reloadAllFields = reloadAllFields; }
/** * @return The objects referenced in the step, like a mapping, a transformation, a job, ... */ @Override public String[] getReferencedObjectDescriptions() { return new String[] { BaseMessages.getString( PKG, "JobExecutorMeta.ReferencedObject.Description" ), }; }
/** * * @param key * the key. * @return the message. */ public String getString( final String key ) { return BaseMessages.getString( this.packageName, key ); }
private String getLocalizedColumn( int columnIndex ) { switch ( columnIndex ) { case 0: return BaseMessages.getString( PKG, "OpenERPObjectInputDialog.TableViewLabel" ); case 1: return BaseMessages.getString( PKG, "OpenERPObjectInputDialog.TableViewModelName" ); case 2: return BaseMessages.getString( PKG, "OpenERPObjectInputDialog.TableViewFieldName" ); default: return ""; } }
/** * Provides the base documentation url (top-level help) * * @return the fully qualified base documentation URL */ public static String getBaseDocUrl() { return BaseMessages.getString( PKG, "Const.BaseDocUrl" ); }
/** * @return The objects referenced in the step, like a a transformation, a job, a mapper, a reducer, a combiner, ... */ @Override public String[] getReferencedObjectDescriptions() { return new String[] { BaseMessages.getString( PKG, "JobEntryTrans.ReferencedObject.Description" ), }; }
/** * @return The objects referenced in the step, like a a transformation, a job, a mapper, a reducer, a combiner, ... */ @Override public String[] getReferencedObjectDescriptions() { return new String[] { BaseMessages.getString( PKG, "JobEntryJob.ReferencedObject.Description" ), }; }
@Override protected Object handleGetObject( String key ) { return BaseMessages.getString( PKG, key ); } }
public static String[] getTransformationFilterNames() { if ( STRING_TRANS_FILTER_NAMES == null ) { STRING_TRANS_FILTER_NAMES = new String[] { BaseMessages.getString( PKG, "Const.FileFilter.Transformations" ), BaseMessages.getString( PKG, "Const.FileFilter.XML" ), BaseMessages.getString( PKG, "Const.FileFilter.All" ) }; } return STRING_TRANS_FILTER_NAMES; }