Package org.eclipse.mat.ui
Class MemoryAnalyserPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.mat.ui.MemoryAnalyserPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryAnalyserPluginstatic ImagegetImage(ImageDescriptor descriptor) getImage(QueryDescriptor query) static ImageDescriptorgetImageDescriptor(String path) getImageDescriptor(URL path) getImageText(Image image) static voidstatic voidstatic voidstatic voidvoidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startupMethods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
EDITOR_ID
- See Also:
-
-
Constructor Details
-
MemoryAnalyserPlugin
public MemoryAnalyserPlugin()
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classAbstractUIPlugin- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classAbstractUIPlugin- Throws:
Exception
-
getDefault
-
getImageDescriptor
-
getImage
-
getImage
-
getImageDescriptor
-
getImage
-
getImageDescriptor
-
getImage
-
getImageText
- Parameters:
image- The Image for which descriptive text is to be retrieved.- Returns:
- Descriptive text for the Image object, retrieved from imageTextMap, or text indicating "unknown image" if not found.
-
getExtensionTracker
-
log
-
log
-
log
-
main
- Parameters:
args- Input arguments are ignored. This Java program generates a properties file "iconlabels.properties" automatically, based on the content of the MAT icons directories. The locations of the /icons directories are hardcoded to be those under org.eclipse.mat.api and org.eclipse.mat.ui, relative to the current working directory which is assumed to be a project in the workspace. This is the case if this program is "Run as Java Application" within Eclipse, using the default working directory org.eclipse.mat.ui. The output is written to "iconlabels.properties" in the current working directory, which can then be copied to the required location for the properties file, org.eclipse.mat.ui/src/org/eclipse/mat/ui/. Error handling is coarse-grained: any Exception is caught and details are printed to System.out. Some other diagnostics are written to System.out if errors occur.
-