Jump to: navigation, search

Difference between revisions of "MemoryAnalyzer/MAT Capabilities"

m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This document provides some sample capability definitions for the Memory Analyzer. It desctibes:
+
This document provides some sample [[Eclipse/Capabilities|capability]] definitions for the Memory Analyzer (MAT). It describes:
 
#Where to find the existing Capabilities plug-in in SVN
 
#Where to find the existing Capabilities plug-in in SVN
 
#Or how to implement your own Capabilities for Memory Analyzer
 
#Or how to implement your own Capabilities for Memory Analyzer
Line 5: Line 5:
 
=== Existing Capabilities Plug-in  ===
 
=== Existing Capabilities Plug-in  ===
  
The existing Capabilities plug-in can be found in SVN...  
+
The plug-in org.eclipse.mat.ui.capabilities contains Capabilities definition for Memory Analyzer
  
Anonymous SVN server info:  
+
The plug-in can be found in MAT's SVN source repository:  
  
 
     * Host: dev.eclipse.org
 
     * Host: dev.eclipse.org
Line 16: Line 16:
 
     * Path (in trunk) /plugins/org.eclipse.mat.ui.capabilities
 
     * Path (in trunk) /plugins/org.eclipse.mat.ui.capabilities
 
   
 
   
 
 
=== Capabilities Implementation  ===
 
=== Capabilities Implementation  ===
  
The code snippet below takes care to turn off Memory Analyzer functionality in the workbench via Capabilities:
+
The code snippet below shows how to turn off Memory Analyzer functionality in the workbench via Capabilities:
  
 
   <nowiki>
 
   <nowiki>
   <extension
+
   <extension point="org.eclipse.ui.activities">
        point="org.eclipse.ui.activities">
+
<activity  
<activity
+
id="org.eclipse.mat"  
      description="%activity.description"
+
name="%activity.name"
          id="org.eclipse.datatools.capabilities.activity"
+
description="%activity.description" />                                  
          name="%activity.name"/>
+
     
    <activityPatternBinding
+
<activityPatternBinding  
          activityId="org.eclipse.datatools.capabilities.activity"
+
activityId="org.eclipse.mat"  
          pattern="org\.eclipse\.datatools\..*/.*">
+
pattern="org\.eclipse\.mat\..*"/>  
    </activityPatternBinding>
+
 
   </extension>
 
   </extension>
 
   </nowiki>
 
   </nowiki>
 +
 +
[[Category:Memory Analyzer]]

Latest revision as of 09:22, 10 June 2013

This document provides some sample capability definitions for the Memory Analyzer (MAT). It describes:

  1. Where to find the existing Capabilities plug-in in SVN
  2. Or how to implement your own Capabilities for Memory Analyzer

Existing Capabilities Plug-in

The plug-in org.eclipse.mat.ui.capabilities contains Capabilities definition for Memory Analyzer

The plug-in can be found in MAT's SVN source repository:

   * Host: dev.eclipse.org
   * Repository Path: /svnroot/tools/org.eclipse.mat
   * User: anonymous
   * Password: <empty>
   * Connection URL (http): http://dev.eclipse.org/svnroot/tools/org.eclipse.mat
   * Path (in trunk) /plugins/org.eclipse.mat.ui.capabilities

Capabilities Implementation

The code snippet below shows how to turn off Memory Analyzer functionality in the workbench via Capabilities:

  
   <extension point="org.eclipse.ui.activities">
	<activity 
		id="org.eclipse.mat" 
		name="%activity.name" 
		description="%activity.description" />                                    
      
	<activityPatternBinding 
		activityId="org.eclipse.mat" 
		pattern="org\.eclipse\.mat\..*"/> 
   </extension>