Class Policy
- java.lang.Object
-
- org.eclipse.mat.ui.internal.browser.Policy
-
-
Constructor Summary
Constructors Constructor Description Policy()
Policy(java.util.List<IContextObject> menuContext, java.lang.String selectionLabel)
Determine whether to show this query: Global context (no selection or heap available) any context arg - disallow Local context context arg doesn't match available context - disallow no context arg and no heap arg - disallow (no point in operating on a selection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(QueryDescriptor query)
void
fillInObjectArguments(ISnapshot snapshot, QueryDescriptor query, ArgumentSet set)
-
-
-
Constructor Detail
-
Policy
public Policy(java.util.List<IContextObject> menuContext, java.lang.String selectionLabel)
Determine whether to show this query: Global context (no selection or heap available) any context arg - disallow Local context context arg doesn't match available context - disallow no context arg and no heap arg - disallow (no point in operating on a selection)- Parameters:
menuContext
-selectionLabel
-
-
Policy
public Policy()
-
-
Method Detail
-
accept
public boolean accept(QueryDescriptor query)
-
fillInObjectArguments
public void fillInObjectArguments(ISnapshot snapshot, QueryDescriptor query, ArgumentSet set)
- Specified by:
fillInObjectArguments
in interfaceIPolicy
-
-