public class QueryContextMenu extends Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryContextMenu.QueryAction |
Constructor and Description |
---|
QueryContextMenu(AbstractEditorPane pane,
ContextProvider provider) |
QueryContextMenu(AbstractEditorPane pane,
QueryResult result) |
QueryContextMenu(MultiPaneEditor editor,
ContextProvider provider) |
QueryContextMenu(MultiPaneEditor editor,
QueryResult result) |
Modifier and Type | Method and Description |
---|---|
void |
addContextActions(PopupMenu manager,
org.eclipse.jface.viewers.IStructuredSelection selection,
org.eclipse.swt.widgets.Control control) |
boolean |
anyInstances(ISnapshot snapshot,
String cn) |
boolean |
anySubInstances(IClass cls) |
boolean |
instanceOf(ISnapshot snapshot,
IClass cls,
String className)
Instanceof test which works for simple object and array types
|
boolean |
instanceOf(ISnapshot snapshot,
int o,
String className)
Instanceof test which works for simple objects and arrays
|
boolean |
unsuitableSubjects(QueryDescriptor query,
List<IContextObject> menuContext)
See if the menuContext cannot possibly satisfy the requirements of the query.
|
public QueryContextMenu(AbstractEditorPane pane, QueryResult result)
public QueryContextMenu(MultiPaneEditor editor, QueryResult result)
public QueryContextMenu(MultiPaneEditor editor, ContextProvider provider)
public QueryContextMenu(AbstractEditorPane pane, ContextProvider provider)
public final void addContextActions(PopupMenu manager, org.eclipse.jface.viewers.IStructuredSelection selection, org.eclipse.swt.widgets.Control control)
public boolean instanceOf(ISnapshot snapshot, int o, String className) throws SnapshotException
snapshot
- o
- the object to be testedclassName
- is an instance of this class?SnapshotException
public boolean instanceOf(ISnapshot snapshot, IClass cls, String className) throws SnapshotException
snapshot
- cls
- className
- SnapshotException
public boolean anyInstances(ISnapshot snapshot, String cn) throws SnapshotException
SnapshotException
public boolean anySubInstances(IClass cls)
public boolean unsuitableSubjects(QueryDescriptor query, List<IContextObject> menuContext)
query
- menuContext
-