|
Author: mrisaliti
Date: Fri Jan 7 20:39:47 2011 New Revision: 1056496 URL: http://svn.apache.org/viewvc?rev=1056496&view=rev Log: Replace tabs to 4 spaces Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/FrameImage.java ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/WatermarkImage.java ofbiz/trunk/applications/product/src/org/ofbiz/product/subscription/SubscriptionServices.java Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/FrameImage.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/FrameImage.java?rev=1056496&r1=1056495&r2=1056496&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/FrameImage.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/FrameImage.java Fri Jan 7 20:39:47 2011 @@ -328,7 +328,7 @@ public class FrameImage { String frameDataResourceId = (String) request.getParameter("frameDataResourceId"); if (UtilValidate.isEmpty(request.getParameter("imageWidth")) || UtilValidate.isEmpty(request.getParameter("imageHeight"))) { - String errMsg = "Image Width and Image Height are required to preview the image. Please enter in Image Width and Image Height fields."; + String errMsg = "Image Width and Image Height are required to preview the image. Please enter in Image Width and Image Height fields."; session.setAttribute("frameContentId", frameContentId); session.setAttribute("frameDataResourceId", frameDataResourceId); request.setAttribute("_ERROR_MESSAGE_", errMsg); Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/WatermarkImage.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/WatermarkImage.java?rev=1056496&r1=1056495&r2=1056496&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/WatermarkImage.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/WatermarkImage.java Fri Jan 7 20:39:47 2011 @@ -360,7 +360,7 @@ public class WatermarkImage{ File file = new File(imageServerPath + "/products/management/previewImage" + count + ".jpg"); file.delete(); - return "success"; + return "success"; } private static Color setFontColor(String color) { Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/subscription/SubscriptionServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/subscription/SubscriptionServices.java?rev=1056496&r1=1056495&r2=1056496&view=diff ============================================================================== --- ofbiz/trunk/applications/product/src/org/ofbiz/product/subscription/SubscriptionServices.java (original) +++ ofbiz/trunk/applications/product/src/org/ofbiz/product/subscription/SubscriptionServices.java Fri Jan 7 20:39:47 2011 @@ -49,9 +49,9 @@ import org.ofbiz.common.uom.UomWorker; public class SubscriptionServices { public static final String module = SubscriptionServices.class.getName(); - public static final String resource = "ProductUiLabels"; - public static final String resourceOrderError = "OrderErrorUiLabels"; - + public static final String resource = "ProductUiLabels"; + public static final String resourceOrderError = "OrderErrorUiLabels"; + public static Map<String, Object> processExtendSubscription(DispatchContext dctx, Map<String, ? extends Object> context) { Delegator delegator = dctx.getDelegator(); LocalDispatcher dispatcher = dctx.getDispatcher(); @@ -65,7 +65,7 @@ public class SubscriptionServices { Integer useTime = (Integer) context.get("useTime"); String useTimeUomId = (String) context.get("useTimeUomId"); String alwaysCreateNewRecordStr = (String) context.get("alwaysCreateNewRecord"); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); boolean alwaysCreateNewRecord = !"N".equals(alwaysCreateNewRecordStr); GenericValue lastSubscription = null; @@ -183,7 +183,7 @@ public class SubscriptionServices { LocalDispatcher dispatcher = dctx.getDispatcher(); String productId = (String) context.get("productId"); Integer qty = (Integer) context.get("quantity"); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); if (qty == null) { qty = Integer.valueOf(1); } @@ -199,7 +199,7 @@ public class SubscriptionServices { if (productSubscriptionResourceList.size() == 0) { Debug.logError("No ProductSubscriptionResource found for productId: " + productId, module); - return ServiceUtil.returnError(UtilProperties.getMessage(resource, + return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ProductSubscriptionResourceNotFound", UtilMisc.toMap("productId", productId), locale)); } @@ -241,7 +241,7 @@ public class SubscriptionServices { LocalDispatcher dispatcher = dctx.getDispatcher(); Map<String, Object> subContext = UtilMisc.makeMapWritable(context); String orderId = (String) context.get("orderId"); - Locale locale = (Locale) context.get("locale"); + Locale locale = (Locale) context.get("locale"); Debug.logInfo("In processExtendSubscriptionByOrder service with orderId: " + orderId, module); |
| Free forum by Nabble | Edit this page |
