From 3cd2ee4be6d599de772f18eede37ddd90a82a7ca Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sat, 21 Mar 2009 23:24:43 +0000 Subject: [PATCH] Fix purely empty whitespace lines, and remove trailing whitespace. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757076 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/guiapp/xui/XuiContainer.java | 18 +++++++++--------- .../src/org/ofbiz/guiapp/xui/XuiSession.java | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiContainer.java b/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiContainer.java index 8224f69a2f..40e31f5a37 100644 --- a/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiContainer.java +++ b/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiContainer.java @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -44,7 +44,7 @@ public abstract class XuiContainer implements Container { protected String configFile = null; public void init(String[] args, String configFile) throws ContainerException { - this.configFile = configFile; + this.configFile = configFile; } public boolean start() throws ContainerException { @@ -78,7 +78,7 @@ public abstract class XuiContainer implements Container { UIManager.setLookAndFeel(laf); } catch (Exception e) { throw new ContainerException(e); - } + } } // create and cache the session @@ -96,7 +96,7 @@ public abstract class XuiContainer implements Container { String classPackageName = ContainerConfig.getPropertyValue(cc, "class-package-name", "net.xoetrope.swing"); JFrame jframe = new JFrame(); - jframe.setUndecorated(true); + jframe.setUndecorated(true); new XuiScreen( new String[] { this.startupDir + this.startupFile, classPackageName}, jframe); @@ -131,9 +131,9 @@ public abstract class XuiContainer implements Container { class XuiScreen extends XApplet { protected String startupProperties = ""; - + public XuiScreen(String[] args, JFrame frame) { - super(args, frame); + super(args, frame); if (args.length > 0) { startupProperties = args[0]; } @@ -146,10 +146,10 @@ public abstract class XuiContainer implements Container { String language = UtilProperties.getPropertyValue(startupProperties, "Language"); if (language.compareTo("XuiLabels" + suffix ) != 0) { UtilProperties.setPropertyValue(startupProperties, "Language", "XuiLabels" + suffix); - } + } frame.setVisible(true); frame.getContentPane().add(this); frame.validate(); - } + } } } diff --git a/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java b/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java index 205a18763e..3155adee67 100644 --- a/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java +++ b/framework/guiapp/src/org/ofbiz/guiapp/xui/XuiSession.java @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -60,7 +60,7 @@ public class XuiSession { public XuiContainer getContainer() { return this.container; } - + public GenericDelegator getDelegator() { return this.delegator; } @@ -110,8 +110,8 @@ public class XuiSession { public void login(String username, String password) throws UserLoginFailure { // if already logged in; verify for lock. Depends on SAME_LOGIN, false by default - if (this.userLogin != null) { - if (IS_SAME_LOGIN == true && !userLogin.getString("userLoginId").equals(username)) { + if (this.userLogin != null) { + if (IS_SAME_LOGIN == true && !userLogin.getString("userLoginId").equals(username)) { throw new UserLoginFailure(UtilProperties.getMessage("XuiUiLabels", "XuiUsernameDoesNotMatchLoggedUser", locale)); } }