org.eclipse.xsd.provider
Class XSDEditPlugin

java.lang.Object
  |
  +--org.eclipse.core.runtime.Plugin
        |
        +--org.eclipse.xsd.provider.XSDEditPlugin

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

The Plugin for the item providers. 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()

Fields inherited from class org.eclipse.core.runtime.Plugin
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
XSDEditPlugin(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 java.lang.Object getImage(java.lang.String key)
          Returns a URL for an image resource in the icons folder.
static XSDEditPlugin 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
 

Constructor Detail

XSDEditPlugin

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

getPlugin

public static XSDEditPlugin 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/org.eclipse.xsd/"
Returns:
the base location at which to find resources.
See Also:
IPluginDescriptor.getInstallURL()

getImage

public static java.lang.Object getImage(java.lang.String key)
Returns a URL for an image resource in the icons folder.
Parameters:
key - the key of the image to fetch.
Returns:
a URL for an image resource in the icons folder.

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[])

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.