summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-12-28 16:15:09 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-12-28 16:15:09 +0000
commit5f480b13943d76acef2ce897b0c91a03b0f90b5c (patch)
tree63c3f268a30ffbcebcf989b3da6311a6718dc7bd /wizards
parent4476b25e6d04eea5ef0b950b291456d464a57acf (diff)
INTEGRATION: CWS dbwizardpp1 (1.6.28); FILE MERGED
2005/12/06 00:44:08 bc 1.6.28.2: RESYNC: (1.6-1.7); FILE MERGED 2005/08/18 08:30:56 bc 1.6.28.1: #44613# Relations now with own class retrieved
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/JavaTools.java29
1 files changed, 27 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/JavaTools.java b/wizards/com/sun/star/wizards/common/JavaTools.java
index 59e277d310ea..3916a17fa2ab 100644
--- a/wizards/com/sun/star/wizards/common/JavaTools.java
+++ b/wizards/com/sun/star/wizards/common/JavaTools.java
@@ -4,9 +4,9 @@
*
* $RCSfile: JavaTools.java,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 09:20:30 $
+ * last change: $Author: hr $ $Date: 2005-12-28 17:15:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -617,4 +617,29 @@ public class JavaTools {
return sretlist;
}
+
+ /**
+ * compares two strings. If one of them is empty and the other one is null it also returns true
+ * @param sFirstString
+ * @param sSecondString
+ * @return
+ */
+ public static boolean isSame(String sFirstString, String sSecondString){
+ boolean bissame = false;
+ if (sFirstString == null){
+ if (sSecondString != null)
+ bissame = sSecondString.equals("");
+ else
+ bissame = (sSecondString == null);
+ }
+ else{
+ if (sFirstString.equals(""))
+ bissame = (sSecondString == null);
+ else if (sSecondString != null)
+ bissame = sFirstString.equals(sSecondString);
+ }
+ return bissame;
+ }
+
+
}