org.eclipse.mat.query
Class ResultMetaData.Builder

java.lang.Object
  extended by org.eclipse.mat.query.ResultMetaData.Builder
Enclosing class:
ResultMetaData

public static final class ResultMetaData.Builder
extends java.lang.Object

ResultMetaData factory


Constructor Summary
ResultMetaData.Builder()
           
 
Method Summary
 ResultMetaData.Builder addContext(ContextProvider provider)
          Add a named ContextProvider to display additional context menus.
 ResultMetaData.Builder addDerivedData(ContextDerivedData.DerivedOperation action)
           
 ResultMetaData.Builder addDetailResult(DetailResultProvider provider)
           
 ResultMetaData build()
          Creates and returns the ResultMetaData object, with the context providers list made unmodifiable.
 ResultMetaData.Builder setIsPreSortedBy(int columnIndex, Column.SortDirection direction)
          Indicates that the table or tree is already sorted by the query and (a) prevents sorting by the UI and (b) sets the sort indicators to the right columns.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultMetaData.Builder

public ResultMetaData.Builder()
Method Detail

addContext

public ResultMetaData.Builder addContext(ContextProvider provider)
Add a named ContextProvider to display additional context menus.


addDetailResult

public ResultMetaData.Builder addDetailResult(DetailResultProvider provider)

setIsPreSortedBy

public ResultMetaData.Builder setIsPreSortedBy(int columnIndex,
                                               Column.SortDirection direction)
Indicates that the table or tree is already sorted by the query and (a) prevents sorting by the UI and (b) sets the sort indicators to the right columns.


addDerivedData

public ResultMetaData.Builder addDerivedData(ContextDerivedData.DerivedOperation action)

build

public ResultMetaData build()
Creates and returns the ResultMetaData object, with the context providers list made unmodifiable. This can only be called once.