|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractUIPlugin
com.ibm.lpex.alef.LpexPlugin
public class LpexPlugin
LPEX Editor plug-in runtime class.
| Field Summary | |
|---|---|
static String |
PLUGIN_ID
LPEX Editor plug-in id (value "com.ibm.lpex"). |
| Constructor Summary | |
|---|---|
LpexPlugin()
Constructs an LPEX plug-in runtime object. |
|
| Method Summary | |
|---|---|
static LpexPlugin |
getDefault()
Returns an instance of this plug-in. |
static ResourceBundle |
getResourceBundle()
Returns the resource bundle for this plug-in. |
static String |
getResourceLpexString(String key)
Returns the string with the specified key from the LpexPlugin resource bundle. |
static String |
getResourceLpexString(String key,
String arg)
Returns the string with the specified key and substitution argument from the LpexPlugin resource bundle. |
static String |
getResourceString(String key)
Returns a string from the LpexPlugin resource bundle. |
void |
start(BundleContext context)
Starts up the LPEX plug-in. |
void |
stop(BundleContext context)
Stops the LPEX plug-in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PLUGIN_ID
"com.ibm.lpex").
| Constructor Detail |
|---|
public LpexPlugin()
| Method Detail |
|---|
public static LpexPlugin getDefault()
public static ResourceBundle getResourceBundle()
com.ibm.lpex.alef.PluginResources.properties.
public static String getResourceString(String key)
key if not foundgetResourceLpexString(String),
getResourceLpexString(String,String)public static String getResourceLpexString(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 String getResourceLpexString(String key,
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 start(BundleContext context)
throws Exception
If this method throws an exception, it is taken as an indication that the plug-in initialization has failed; as a result, the plug-in will not be activated; moreover, the plug-in will be marked as disabled and ineligible for activation for the duration.
Plug-in startup code should be robust. In the event of a startup failure, the plug-in's stop() method will be invoked automatically, in an attempt to close open files, etc.
context - the bundle context that represents the plug-in to the OSGi
framework; for security reasons, it is strongly recommended that
this object should not be divulged
Exception - if this plug-in did not start up properlyAbstractUIPlugin
public void stop(BundleContext context)
throws Exception
This method may be re-implemented in subclasses that need to do something when the plug-in is shut down. Implementors should call the super method, and as late as possible to ensure that any system requirements can be met. A try-finally statement should be used where necessary to ensure that super.stop() is always done.
Plug-in shutdown code should be robust. In particular, this method should always make an effort to shut down the plug-in. Furthermore, the code should not assume that the plug-in was started successfully, as this method will be invoked in the event of a failure during startup.
ExceptionAbstractUIPlugin
|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||