|
||||||||||
| 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(String label)
Creates a ContextProvider which will be queried later to find out more details about a row in a report. |
|
ContextProvider(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(Object row)
Return the context object associated with the specified row. |
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. |
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(String label)
label - The label used for context menus.
public ContextProvider(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 String getLabel()
public final boolean isDefault()
public final boolean hasSameTarget(ContextProvider other)
other -
public ContextDerivedData.DerivedOperation[] getOperations()
public URL getIcon()
IStructuredResult.
public abstract IContextObject getContext(Object row)
row - the row requested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||