org.eclipse.mat.ui.internal.browser
Class Policy
java.lang.Object
org.eclipse.mat.ui.internal.browser.Policy
- All Implemented Interfaces:
- IPolicy
public class Policy
- extends java.lang.Object
- implements IPolicy
Constructor Summary |
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) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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()
accept
public boolean accept(QueryDescriptor query)
- Specified by:
accept
in interface IPolicy
fillInObjectArguments
public void fillInObjectArguments(ISnapshot snapshot,
QueryDescriptor query,
ArgumentSet set)
- Specified by:
fillInObjectArguments
in interface IPolicy