From e1af094dd3a64fc7c0059aad0fddc59850c00a86 Mon Sep 17 00:00:00 2001 From: Marco Risaliti Date: Tue, 4 Jan 2011 20:34:18 +0000 Subject: [PATCH] Replace tabs to spaces git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055175 13f79535-47bb-0310-9956-ffa450edef68 --- .../marketing/src/org/ofbiz/sfa/vcard/VCard.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java index 4fef7c3898..b634bc6fc7 100644 --- a/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java +++ b/applications/marketing/src/org/ofbiz/sfa/vcard/VCard.java @@ -71,12 +71,12 @@ import org.ofbiz.service.ServiceUtil; public class VCard { public static final String module = VCard.class.getName(); - public static final String resourceError = "MarketingUiLabels"; + public static final String resourceError = "MarketingUiLabels"; public static Map importVCard(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); Delegator delegator = dctx.getDelegator(); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); Map result = ServiceUtil.returnSuccess(); Address workAddress = null; String email = null; @@ -207,11 +207,11 @@ public class VCard { } } catch (GenericEntityException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } catch (GenericServiceException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaImportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } return result; @@ -220,7 +220,7 @@ public class VCard { public static Map exportVCard(DispatchContext dctx, Map context) { Delegator delegator = dctx.getDelegator(); String partyId = (String) context.get("partyId"); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); File file = null; try { ContactModelFactory cmf = Pim.getContactModelFactory(); @@ -280,14 +280,14 @@ public class VCard { outputStream.close(); } catch (FileNotFoundException e) { Debug.logError(e, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardErrorOpeningFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale)); } catch (IOException e) { Debug.logError(e, module); return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardErrorWritingFile", UtilMisc.toMap("errorString", file.getAbsolutePath()), locale)); } catch (GenericEntityException e) { - return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, + return ServiceUtil.returnError(UtilProperties.getMessage(resourceError, "SfaExportVCardError", UtilMisc.toMap("errorString", e.getMessage()), locale)); } return ServiceUtil.returnSuccess();