org.eclipse.xsd.provider
Class XSDEditPlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended byorg.eclipse.xsd.provider.XSDEditPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class XSDEditPlugin
extends 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()

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

Constructor Detail

XSDEditPlugin

public XSDEditPlugin()
Creates an instance.

Method Detail

getPlugin

public static XSDEditPlugin getPlugin()
Returns the singleton instance.

Returns:
the singleton instance.

getBaseURL

public static 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 Object getImage(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 String getString(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 String getString(String key,
                               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-2004 IBM Corporation and others.
All Rights Reserved.