Package org.eclipse.mat.query
Class DetailResultProvider
java.lang.Object
org.eclipse.mat.query.DetailResultProvider
Used to give more detailed information about rows in a table as another IResult.
-
Constructor Summary
ConstructorDescriptionDetailResultProvider
(String label) Constructor of object to enhance details of rows of a table. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
The icon associated with this provider.final String
getLabel()
The description, which can be used as an extra menu item name.abstract IResult
getResult
(Object row, IProgressListener listener) Get more data about the row.abstract boolean
Whether there is any data for this row
-
Constructor Details
-
DetailResultProvider
Constructor of object to enhance details of rows of a table. Used to give more detailed information about rows in a table as another IResult.- Parameters:
label
- the description used for example as a query menu item or as a link in an HTML report.
-
-
Method Details
-
getLabel
The description, which can be used as an extra menu item name.- Returns:
- the description
-
getIcon
The icon associated with this provider. This could be used on a context menu.- Returns:
- a URL which can be used to get the icon, can be null
- Since:
- 1.1
-
hasResult
Whether there is any data for this row- Parameters:
row
- the opaque data representing the row- Returns:
- true if getResult is to be called
-
getResult
Get more data about the row.- Parameters:
row
- the opaque object for finding the rowlistener
- to indicate progress or errors- Returns:
- the extra generated results
- Throws:
SnapshotException
- if there was a problem getting the result
-