com.ibm.jdg2e.resources.extensions
Class ResourceExtensions
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.ibm.jdg2e.resources.extensions.ResourceExtensions
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator, org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener, org.eclipse.ui.IStartup
- public class ResourceExtensions
- extends org.eclipse.ui.plugin.AbstractUIPlugin
- implements org.eclipse.ui.IStartup, org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener
The plugin class for the Resource Programming Plugin. Instantiated by the
platform when the plug-in is started.
Note: The plug-in class name is EDUResourcePlugin to avoid a name collision
and confusion with the platform Resources Plug-in (see getWorkspace()
method).
| Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
|
Method Summary |
void |
earlyStartup()
Method Stub. |
static ResourceExtensions |
getDefault()
|
static java.lang.String |
getPluginID()
|
java.util.ResourceBundle |
getResourceBundle()
|
static java.lang.String |
getResourceString(java.lang.String key)
|
static org.eclipse.core.resources.IWorkspace |
getWorkspace()
|
void |
preferenceChange(org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent event)
React to user changes to preference tha enables or disables
recent edit tracking. |
void |
start(org.osgi.framework.BundleContext context)
Add recent edit resource change listener. |
void |
stop(org.osgi.framework.BundleContext context)
Remove the recent edit resource change listener. |
| Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup |
| Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceExtensions
public ResourceExtensions()
earlyStartup
public void earlyStartup()
- Method Stub. Does nothing specific, but supports immediate integration of
plug-in into the running Workbench.
- Specified by:
earlyStartup in interface org.eclipse.ui.IStartup
- See Also:
IStartup.earlyStartup()
getDefault
public static ResourceExtensions getDefault()
- Returns:
- Returns the shared instance.
getPluginID
public static java.lang.String getPluginID()
- Returns:
- id of plug-in from bundle; convenience method.
getResourceBundle
public java.util.ResourceBundle getResourceBundle()
- Returns:
- the plugin's resource bundle.
getResourceString
public static java.lang.String getResourceString(java.lang.String key)
- Parameters:
key -
- Returns:
- the string from the plugin's resource bundle,
or 'key' if not found.
getWorkspace
public static org.eclipse.core.resources.IWorkspace getWorkspace()
- Returns:
- the workspace instance using the platform implementation
of the Resources plugin.
preferenceChange
public void preferenceChange(org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent event)
- React to user changes to preference tha enables or disables
recent edit tracking.
- Specified by:
preferenceChange in interface org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener
- See Also:
IEclipsePreferences.IPreferenceChangeListener.preferenceChange(org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent)
start
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Add recent edit resource change listener.
- Specified by:
start in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception- See Also:
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
stop
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
- Remove the recent edit resource change listener.
- Specified by:
stop in interface org.osgi.framework.BundleActivator
- Throws:
java.lang.Exception- See Also:
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)