Package org.eclipse.mat.ui.util
Class QueryContextMenu
java.lang.Object
org.eclipse.mat.ui.util.QueryContextMenu
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQueryContextMenu
(AbstractEditorPane pane, ContextProvider provider) QueryContextMenu
(AbstractEditorPane pane, QueryResult result) QueryContextMenu
(MultiPaneEditor editor, ContextProvider provider) QueryContextMenu
(MultiPaneEditor editor, QueryResult result) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addContextActions
(PopupMenu manager, IStructuredSelection selection, Control control) boolean
anyInstances
(ISnapshot snapshot, String cn) boolean
anySubInstances
(IClass cls) boolean
instanceOf
(ISnapshot snapshot, int o, String className) Instanceof test which works for simple objects and arraysboolean
instanceOf
(ISnapshot snapshot, IClass cls, String className) Instanceof test which works for simple object and array typesboolean
unsuitableSubjects
(QueryDescriptor query, List<IContextObject> menuContext) See if the menuContext cannot possibly satisfy the requirements of the query.
-
Constructor Details
-
QueryContextMenu
-
QueryContextMenu
-
QueryContextMenu
-
QueryContextMenu
-
-
Method Details
-
addContextActions
public final void addContextActions(PopupMenu manager, IStructuredSelection selection, Control control) -
instanceOf
Instanceof test which works for simple objects and arrays- Parameters:
snapshot
-o
- the object to be testedclassName
- is an instance of this class?- Returns:
- true if an instance
- Throws:
SnapshotException
-
instanceOf
public boolean instanceOf(ISnapshot snapshot, IClass cls, String className) throws SnapshotException Instanceof test which works for simple object and array types- Parameters:
snapshot
-cls
-className
-- Returns:
- true if an instance
- Throws:
SnapshotException
-
anyInstances
- Throws:
SnapshotException
-
anySubInstances
-
unsuitableSubjects
See if the menuContext cannot possibly satisfy the requirements of the query. Needs to be reasonably efficient, so if the calculation would take too long then it is okay to return false.- Parameters:
query
-menuContext
-- Returns:
- true if the menuContext is unsuitable.
-