/**
* Return the plugin ID.
*/
/**
* Return the plugin ID.
*/
public String getSymbolicName() {
return helper.getSymbolicName();
}
/*
* Javadoc copied from interface.
*/
/*
* Javadoc copied from interface.
*/
public URL getBaseURL() {
return helper.getBaseURL();
}
/*
* Javadoc copied from interface.
*/
/*
* Javadoc copied from interface.
*/
public Object getImage(String key) {
try {
return doGetImage(key);
}
catch (MalformedURLException
exception) {
throw new WrappedException(exception);
}
catch (IOException
exception) {
throw new MissingResourceException(CommonPlugin.INSTANCE.getString("_UI_StringResourceNotFound_exception", new Object[] {
key
} ), getClass().getName(), key);
}
}
/**
* Does the work of fetching the image associated with the key.
* It ensures that the image exists.
* @param key the key of the image to fetch.
* @exception IOException if an image doesn't exist.
* @return the description of the image associated with the key.
*/
/**
* Does the work of fetching the image associated with the key.
* It ensures that the image exists.
* @param key the key of the image to fetch.
* @exception IOException if an image doesn't exist.
* @return the description of the image associated with the key.
*/
protected Object doGetImage(String key) throws IOException {
return helper.getImage(key);
}
public String getString(String key) {
return helper.getString(key, true);
}
public String getString(String key, boolean translate) {
return helper.getString(key, translate);
}
public String getString(String key, Object[] substitutions) {
return helper.getString(key, substitutions, true);
}
public String getString(String key, Object[] substitutions, boolean translate) {
return helper.getString(key, substitutions, translate);
}
public void log(Object logEntry) {
helper.log(logEntry);
}
|