private String getDisplayValue() { if (cbExternalize.getSelection()) { if ( defaultValue == null || defaultValue.equals("" ) ) return new MessageFormat(Messages.getString("ExternalizedTextEditorDialog.Lbl.Value")).format(new Object[] { getKeyComponent(sResult)}); else return defaultValue; } return getValueComponent(sResult); }
private String getDisplayValue( ) { if ( cbExternalize.getSelection( ) ) { if ( defaultValue == null || defaultValue.length( ) == 0 ) { return new MessageFormat( Messages.getString( "ExternalizedTextEditorDialog.Lbl.Value" ) ).format( new Object[]{getKeyComponent( sResult )} ); } return defaultValue; } return getValueComponent( sResult ); }
    private String getDisplayValue()    {        if (cbExternalize.getSelection())        {        	if ( defaultValue == null || defaultValue.equals("" ) )        		return new MessageFormat(Messages.getString("ExternalizedTextEditorDialog.Lbl.Value")).format(new Object[] { getKeyComponent(sResult)}); //$NON-NLS-1$        	else        		return defaultValue;        }        return getValueComponent(sResult);    }