public class MemoryAnalyserPlugin
extends org.eclipse.ui.plugin.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 |
Constructor and Description |
---|
MemoryAnalyserPlugin() |
Modifier and Type | Method and Description |
---|---|
static MemoryAnalyserPlugin |
getDefault() |
org.eclipse.core.runtime.dynamichelpers.IExtensionTracker |
getExtensionTracker() |
org.eclipse.swt.graphics.Image |
getImage(org.eclipse.jface.resource.ImageDescriptor descriptor) |
org.eclipse.swt.graphics.Image |
getImage(QueryDescriptor query) |
static org.eclipse.swt.graphics.Image |
getImage(String name) |
org.eclipse.swt.graphics.Image |
getImage(URL path) |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(QueryDescriptor query) |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String path) |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(URL path) |
String |
getImageText(org.eclipse.swt.graphics.Image image) |
static void |
log(org.eclipse.core.runtime.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
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 org.eclipse.ui.plugin.AbstractUIPlugin
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
Exception
public static MemoryAnalyserPlugin getDefault()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
public static org.eclipse.swt.graphics.Image getImage(String name)
public org.eclipse.swt.graphics.Image getImage(org.eclipse.jface.resource.ImageDescriptor descriptor)
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(URL path)
public org.eclipse.swt.graphics.Image getImage(URL path)
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(QueryDescriptor query)
public org.eclipse.swt.graphics.Image getImage(QueryDescriptor query)
public String getImageText(org.eclipse.swt.graphics.Image image)
image
- The Image for which descriptive text is to be retrieved.public org.eclipse.core.runtime.dynamichelpers.IExtensionTracker getExtensionTracker()
public static void log(org.eclipse.core.runtime.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.