|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.eclipse.core.runtime.Plugin
|
+--com.ibm.lpex.alef.LpexPlugin
Plugin runtime class for LPEX.
A plugin usually extends the startup() and shutdown() methods in order to react to life cycle requests automatically issued by the Eclipse platform.
| Constructor Summary | |
LpexPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Constructs an LPEX plugin runtime object for the given plugin descriptor. |
|
| Method Summary | |
static LpexPlugin |
getDefault()
Return an instance of this plugin. |
static java.util.jar.JarFile |
getLpexJar()
Get access to the LPEX jar file. |
static java.util.ResourceBundle |
getResourceBundle()
Retrieve the resource bundle for this plugin. |
static java.lang.String |
getResourceLpexString(java.lang.String key)
Retrieve from the LpexPlugin resource bundle the string with the specified key. |
static java.lang.String |
getResourceLpexString(java.lang.String key,
java.lang.String arg)
Retrieve from the LpexPlugin resource bundle the string with the specified key and a single substitution argument. |
static java.lang.String |
getResourceString(java.lang.String key)
Retrieve a string from the LpexPlugin resource bundle. |
void |
startup()
Starts up the LPEX plugin. |
| Methods inherited from class org.eclipse.core.runtime.Plugin |
find, getDescriptor, getLog, getStateLocation, isDebugging, openStream, openStream, setDebugging, shutdown, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LpexPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Instances of plugin runtime classes are automatically created by the Eclipse platform in the course of plugin activation.
descriptor - the plugin descriptor (information about the plugin
obtained from its manifest file, plugin.xml)| Method Detail |
public static LpexPlugin getDefault()
public static java.util.ResourceBundle getResourceBundle()
com.ibm.lpex.alef.PluginResources.properties.public static java.lang.String getResourceString(java.lang.String key)
key if not foundgetResourceLpexString(String),
getResourceLpexString(String,String)public static java.lang.String getResourceLpexString(java.lang.String key)
LpexResources to retrieve the value,
which assumes certain syntax rules for the text in the resource.key if not foundLpexResources,
getResourceString(String),
getResourceLpexString(String,String)
public static java.lang.String getResourceLpexString(java.lang.String key,
java.lang.String arg)
LpexResources to retrieve the value,
which assumes certain syntax rules for the text in the resource.key if not foundLpexResources,
getResourceString(String),
getResourceLpexString(String)
public void startup()
throws org.eclipse.core.runtime.CoreException
If this method throws an exception, it is taken as an indication that the plugin initialization has failed; as a result, the plugin will not be activated; moreover, the plugin will be marked as disabled and ineligible for activation for the duration.
Plugin startup code should be robust. In the event of a startup failure, the plugin's shutdown() method will be invoked automatically, in an attempt to close open files, etc.
startup in class org.eclipse.core.runtime.Pluginorg.eclipse.core.runtime.CoreException - if this plugin did not start up properlypublic static java.util.jar.JarFile getLpexJar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||