org.netbeans.lib.cvsclient.util
Class BundleUtilities

java.lang.Object
  extended by org.netbeans.lib.cvsclient.util.BundleUtilities

public class BundleUtilities
extends Object

Version:
Sep 26, 2001
Author:
Thomas Singer

Constructor Summary
BundleUtilities()
           
 
Method Summary
static String getPackageName(Class clazz)
          Returns the package name of the specified class.
static ResourceBundle getResourceBundle(Class classInSamePackage, String shortName)
          Returns the resource bundle for the specified resource' shortName relative to classInSamePackage.
static String getResourceName(Class classInSamePackage, String shortName)
          Returns the resourcename for the resource' shortName relative to the classInSamePackage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleUtilities

public BundleUtilities()
Method Detail

getPackageName

public static String getPackageName(Class clazz)
Returns the package name of the specified class. An empty String is returned, if the class is in the default package.


getResourceName

public static String getResourceName(Class classInSamePackage,
                                     String shortName)
Returns the resourcename for the resource' shortName relative to the classInSamePackage.


getResourceBundle

public static ResourceBundle getResourceBundle(Class classInSamePackage,
                                               String shortName)
Returns the resource bundle for the specified resource' shortName relative to classInSamePackage.



Copyright © 2011. All Rights Reserved.