public class DuplicatedClassesQuery extends Object implements IQuery, IResultTree, IIconProvider, ITestResult, IDecorator, ISelectionProvider
ITestResult.Status
Modifier and Type | Field and Description |
---|---|
ISnapshot |
snapshot |
EMPTY
EMPTY
Constructor and Description |
---|
DuplicatedClassesQuery() |
Modifier and Type | Method and Description |
---|---|
IResult |
execute(IProgressListener listener)
The execute method is called after all arguments have been injected into
the query instance.
|
List<?> |
getChildren(Object parent)
Returns the child elements of the given parent.
|
Column[] |
getColumns()
The columns of the tree or table.
|
Object |
getColumnValue(Object element,
int columnIndex)
Returns the (unformatted) value of a table/tree cell.
|
IContextObject |
getContext(Object element)
The default context of the row which is used to display information in
the object inspector.
|
List<?> |
getElements()
Returns the root elements of the tree.
|
URL |
getIcon(Object element) |
ResultMetaData |
getResultMetaData()
(Optionally) Return meta data of the result needed to fine-tune the
display of the result.
|
ITestResult.Status |
getStatus() |
boolean |
hasChildren(Object parent)
Returns whether the given element has children.
|
boolean |
isExpanded(Object row)
Should this node be expanded.
|
boolean |
isSelected(Object row)
Has the user selected this row?
|
String |
prefix(Object row)
Add before the object for example <local>
|
String |
suffix(Object row)
Add after the object
|
public ISnapshot snapshot
public IResult execute(IProgressListener listener) throws Exception
IQuery
TextResult
, CompositeResult
, SectionSpec
etc.public ITestResult.Status getStatus()
getStatus
in interface ITestResult
public ResultMetaData getResultMetaData()
IResult
getResultMetaData
in interface IResult
public Column[] getColumns()
IStructuredResult
getColumns
in interface IStructuredResult
public List<?> getElements()
IResultTree
getElements
in interface IResultTree
IResultTree.getChildren(Object)
or
IStructuredResult.getContext(Object)
or
IStructuredResult.getColumnValue(Object, int)
.public boolean hasChildren(Object parent)
IResultTree
hasChildren
in interface IResultTree
parent
- the opaque object used to indicate which branchpublic List<?> getChildren(Object parent)
IResultTree
getChildren
in interface IResultTree
parent
- The row object as returned by the
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methods.public Object getColumnValue(Object element, int columnIndex)
IStructuredResult
getColumnValue
in interface IStructuredResult
element
- The row object as returned by the
IResultTable.getRow(int)
or
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methodscolumnIndex
- The index of the column.public String prefix(Object row)
IDecorator
prefix
in interface IDecorator
row
- used to find the rowpublic String suffix(Object row)
IDecorator
suffix
in interface IDecorator
row
- used to find the rowpublic URL getIcon(Object element)
getIcon
in interface IIconProvider
public IContextObject getContext(Object element)
IStructuredResult
ResultMetaData
, it is also used for the context menu on a row.getContext
in interface IStructuredResult
element
- The row object as returned by the
IResultTable.getRow(int)
or
IResultTree.getElements()
or
IResultTree.getChildren(Object)
methods.public boolean isExpanded(Object row)
ISelectionProvider
isExpanded
in interface ISelectionProvider
row
- the chosen rowpublic boolean isSelected(Object row)
ISelectionProvider
isSelected
in interface ISelectionProvider
row
- the chosen row