The Memory Analyzer uses an extended Eclipse editor to display the heap dump. This extension point can be used to contribute items to the toolbar of the editor.
<!ELEMENT extension (contribution+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT contribution EMPTY>
<!ATTLIST contribution
editorClass CDATA #REQUIRED
class CDATA #REQUIRED
sequenceNr CDATA #REQUIRED
>
<extension point="org.eclipse.mat.ui.editorContributions"> <contribution class="org.eclipse.mat.ui.snapshot.editor.HeapEditorContributions" editorClass="org.eclipse.mat.ui.snapshot.editor.HeapEditor" sequenceNr="1" /> </extension>
Copyright (c) 2008,2010 SAP AG and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/