com.ibm.etools.xsd
Class XSDPlugin

java.lang.Object
  |
  +--org.eclipse.core.runtime.Plugin
        |
        +--com.ibm.etools.xsd.XSDPlugin

public class XSDPlugin
extends org.eclipse.core.runtime.Plugin

The Plugin for the model. The XML Schema model needs to be able to run within an Eclipse workbench, within a headless Eclipse workspace, or just stand-alone as part of some other application. To support this, all access is directed to the static methods, which can redirect the service as appopriate to the runtime. During stand-alone invocation no plugin initialization takes place. In this case you will need to set the VABASE or ECLIPSE environment variable to point at the location of the Eclipse installation.

See Also:
getBaseURL()

Field Summary
static java.lang.String copyright
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
XSDPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
          Creates an instance.
 
Method Summary
static java.lang.String getBaseURL()
          Returns the base location at which to find resources.
static XSDPlugin getPlugin()
          Returns the singleton instance.
static java.lang.String getString(java.lang.String key)
          Returns a resource string from the plugin.properties file.
static java.lang.String getString(java.lang.String key, java.lang.Object[] objects)
          Returns a resource string with substitutions from the plugin.properties.
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Constructor Detail

XSDPlugin

public XSDPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Creates an instance.
Parameters:
descriptor - the description of the plugin.
Method Detail

getPlugin

public static XSDPlugin getPlugin()
Returns the singleton instance.
Returns:
the singleton instance.

getBaseURL

public static java.lang.String getBaseURL()
Returns the base location at which to find resources. During a stand-lone invocation, the value of the VABASE or ECLIPSE environment variable will be used, e.g.,
  System.getProperty("VABASE") + "/plugins/com.ibm.etools.xsd/"
Returns:
the base location at which to find resources.
See Also:
IPluginDescriptor.getInstallURL()

getString

public static java.lang.String getString(java.lang.String key)
Returns a resource string from the plugin.properties file.
Parameters:
key - the key of the property to fetch.
Returns:
a resource string from the plugin.properties file.
See Also:
getString(String, Object [])

getString

public static java.lang.String getString(java.lang.String key,
                                         java.lang.Object[] objects)
Returns a resource string with substitutions from the plugin.properties.
Parameters:
key - the key of the property to fetch.
objects - the substitutions.
Returns:
a resource string with substitutions from the plugin.properties.
See Also:
getString(String), MessageFormat.format(String, Object[])