public class MemoryAnalyserPlugin extends AbstractUIPlugin
Modifier and Type | Class and Description |
---|---|
static interface |
MemoryAnalyserPlugin.ISharedImages |
Modifier and Type | Field and Description |
---|---|
static String |
EDITOR_ID |
static String |
PLUGIN_ID |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
MemoryAnalyserPlugin() |
Modifier and Type | Method and Description |
---|---|
static MemoryAnalyserPlugin |
getDefault() |
IExtensionTracker |
getExtensionTracker() |
Image |
getImage(ImageDescriptor descriptor) |
Image |
getImage(QueryDescriptor query) |
static Image |
getImage(String name) |
Image |
getImage(URL path) |
ImageDescriptor |
getImageDescriptor(QueryDescriptor query) |
static ImageDescriptor |
getImageDescriptor(String path) |
ImageDescriptor |
getImageDescriptor(URL path) |
String |
getImageText(Image image) |
static void |
log(IStatus status) |
static void |
log(Throwable e) |
static void |
log(Throwable e,
String message) |
static void |
main(String[] args) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public static final String PLUGIN_ID
public static final String EDITOR_ID
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public static MemoryAnalyserPlugin getDefault()
public static ImageDescriptor getImageDescriptor(String path)
public Image getImage(ImageDescriptor descriptor)
public ImageDescriptor getImageDescriptor(URL path)
public ImageDescriptor getImageDescriptor(QueryDescriptor query)
public Image getImage(QueryDescriptor query)
public String getImageText(Image image)
image
- The Image for which descriptive text is to be retrieved.public IExtensionTracker getExtensionTracker()
public static void log(IStatus status)
public static void log(Throwable e)
public static void main(String[] args)
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.