diff options
author | bvosburgh | 2011-03-02 23:59:47 +0000 |
---|---|---|
committer | bvosburgh | 2011-03-02 23:59:47 +0000 |
commit | 7d2dcd8f071b28f54548acb0399bfb9d625ce79a (patch) | |
tree | 5ffb42a71b614563f63d1d0d03045de8c0d2e05e /common | |
parent | 4dd63a433d21f0b49518d55292dd6076d3e3806d (diff) | |
download | webtools.dali-7d2dcd8f071b28f54548acb0399bfb9d625ce79a.tar.gz webtools.dali-7d2dcd8f071b28f54548acb0399bfb9d625ce79a.tar.xz webtools.dali-7d2dcd8f071b28f54548acb0399bfb9d625ce79a.zip |
tweak comment
Diffstat (limited to 'common')
2 files changed, 9 insertions, 1 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/NameTools.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/NameTools.java index dd7d65f0bf..11cf1ea5e3 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/NameTools.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/NameTools.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 Oracle. All rights reserved. + * Copyright (c) 2005, 2011 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -347,6 +347,7 @@ public final class NameTools { /** * Convert the specified method name to a property name. + * @see Introspector#decapitalize(String) */ public static String convertGetterSetterMethodNameToPropertyName(String methodName) { int beginIndex = 0; diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java index e3c238dc4d..b4a4f03307 100644 --- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java +++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/Tools.java @@ -72,6 +72,13 @@ public final class Tools { return osIs("Linux"); } + /** + * Return whether the current operating system is Mac OS X. + */ + public static boolean osIsMac() { + return osIs("Mac"); + } + private static boolean osIs(String osName) { return System.getProperty("os.name").indexOf(osName) != -1; } |