|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.ContextProvider
public abstract class ContextProvider
Base class for context provider which is an object which returns the heap
objects represented by an arbitrary row in a table/tree.
This is used by IResult.getResultMetaData()
to provide additional information
about rows in a report.
IContextObject
,
IContextObjectSet
Constructor Summary | |
---|---|
ContextProvider(ContextProvider template)
Constructor using copying values from the give template context provider. |
|
ContextProvider(java.lang.String label)
Creates a ContextProvider which will be queried later to find out more details about a row in a report. |
|
ContextProvider(java.lang.String label,
ContextDerivedData.DerivedOperation... operations)
Creates a ContextProvider which will be queried later to find out more details about a row in a report. |
Method Summary | |
---|---|
abstract IContextObject |
getContext(java.lang.Object row)
Return the context object associated with the specified row. |
java.net.URL |
getIcon()
Returns an icon which could be used on context menus as a top level to represent this entire type of data available from an IStructuredResult . |
java.lang.String |
getLabel()
The label for this context provider. |
ContextDerivedData.DerivedOperation[] |
getOperations()
Extra operations to calculate more columns. |
boolean |
hasSameTarget(ContextProvider other)
Used to see if two context providers are the same. |
boolean |
isDefault()
The default context provider is that for the whole snapshot. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextProvider(java.lang.String label)
label
- The label used for context menus.public ContextProvider(java.lang.String label, ContextDerivedData.DerivedOperation... operations)
label
- The label used for context menus.operations
- operations which can be used to calculate extra column informationpublic ContextProvider(ContextProvider template)
Method Detail |
---|
public java.lang.String getLabel()
public final boolean isDefault()
public final boolean hasSameTarget(ContextProvider other)
other
-
public ContextDerivedData.DerivedOperation[] getOperations()
public java.net.URL getIcon()
IStructuredResult
.
public abstract IContextObject getContext(java.lang.Object row)
row
- the row requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |