# Multi Pane Editor Contributions

###### Identifier:

org.eclipse.mat.ui.editorContributions

###### Since:

0.7.0

###### Description:

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.

###### Configuration Markup:

<!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

>

- editorClass - the editor to which the contributions apply `org.eclipse.mat.ui.editor.MultiPaneEditor`
- class - implementor of `org.eclipse.mat.ui.editor.IMultiPaneEditorContributor` which adds the contributions
- sequenceNr - a sequence number indicating the order in which contributions are added

###### Examples:

Following is an example of a editor contribution declaration:

       <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>

###### API Information:

The value of the class attribute must represent an implementor of `org.eclipse.mat.ui.editor.IMultiPaneEditorContributor`.

###### Supplied Implementation:

The Memory Analyzer supplies one contribution to the heap editor itself. Check out the `org.eclipse.mat.ui.snapshot.editor.HeapEditorContributions` for more details.

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/