|
Rational Developer for Power Systems Software V8.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystemBasePlugin
com.ibm.etools.iseries.edit.IBMiEditPlugin
public class IBMiEditPlugin
The activator class controls the plug-in life cycle
Field Summary | |
---|---|
static String |
copyright
|
static String |
HELPPREFIX
|
static int |
NONE
|
static String |
PLUGIN_ID
|
static int |
STRONG
|
static int |
WEAK
|
Constructor Summary | |
---|---|
IBMiEditPlugin()
The constructor |
Method Summary | |
---|---|
static IBMiEditPlugin |
getDefault()
Returns the shared instance |
static ImageDescriptor |
getImageDescriptorByFileName(String strImage)
Returns the image descriptor given the file name. |
static URL |
getPluginInstallURL()
Return the file path where this plugin is installed. |
static String |
getString(ResourceBundle resourceBundle,
String key,
String defaultString)
Get a string from a given resource bundle, with an english string to use a default if the given key is not found. |
static String |
getStringForTemplate(String key)
Get a string from this plugin's resource bundle. |
protected void |
initializeImageRegistry()
|
protected static InputStream |
loadInputStream(String strFilename)
iserieseditor Returns the resource bundle given its filename without file extension. |
static Properties |
loadProperties(String strFilename)
iserieseditor Returns the properties object given its filename without file extension. |
ResourceBundle |
loadResourceBundle(String fileName)
Sets the resource bundle. |
boolean |
showView(String strViewId)
iserieseditor Shows the view given a view identifier. |
void |
start(BundleContext context)
|
void |
stop(BundleContext context)
|
static int |
supportLevel(IProject project,
IFile file)
Given a project and file, determines how associated they are with this plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
public static final String PLUGIN_ID
public static final String HELPPREFIX
public static final int NONE
public static final int WEAK
public static final int STRONG
Constructor Detail |
---|
public IBMiEditPlugin()
Method Detail |
---|
public void start(BundleContext context) throws Exception
Exception
public void stop(BundleContext context) throws Exception
Exception
public static IBMiEditPlugin getDefault()
public static URL getPluginInstallURL()
protected void initializeImageRegistry()
public static ImageDescriptor getImageDescriptorByFileName(String strImage)
public boolean showView(String strViewId)
public final ResourceBundle loadResourceBundle(String fileName)
name
- of .properties file, without the '.properties' specified
public static String getStringForTemplate(String key)
public static String getString(ResourceBundle resourceBundle, String key, String defaultString)
If not found, stack trace info is placed in the plugin's log file to help pinpoint the offending code.
public static Properties loadProperties(String strFilename)
protected static InputStream loadInputStream(String strFilename)
public static int supportLevel(IProject project, IFile file)
project
- The project that contains the IFile source.file
- The file in question
|
Rational Developer for Power Systems Software V8.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |