TPTP 4.3.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.ui.forms.extensions.provisional
Class ExecutionEventSearchProvider

java.lang.Object
  extended byorg.eclipse.hyades.test.ui.forms.extensions.provisional.ExecutionEventSearchProvider
All Implemented Interfaces:
java.util.EventListener, ITestLogSearchProvider, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class ExecutionEventSearchProvider
extends java.lang.Object
implements ITestLogSearchProvider, org.eclipse.swt.events.SelectionListener

Base class of search provider classes for Execution Event element in Test Log Search.

Since:
4.2
See Also:
point "org.eclipse.hyades.test.ui.testLogSearchProvider", ITestLogSearchProvider

Constructor Summary
ExecutionEventSearchProvider()
           
 
Method Summary
protected  void combineExecutionEventAndElementExpressions(org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery query, org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression executionEventORExpression, org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression elementORExpression)
           
protected  org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression createANDExpression()
           
protected  org.eclipse.hyades.models.hierarchy.extensions.BinaryExpression createBinaryExpression(org.eclipse.emf.ecore.EAttribute feature, org.eclipse.emf.ecore.EDataType valueType, java.lang.Object value)
           
protected  org.eclipse.hyades.models.hierarchy.extensions.BinaryExpression createBinaryExpression(org.eclipse.emf.ecore.EAttribute feature, java.lang.String value)
           
 void createContents(org.eclipse.swt.widgets.Composite parent)
          This method will be called the first time the search element of this provider is selected.
protected  org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression createORExpression()
           
protected  org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery createQuery(org.eclipse.emf.ecore.EObject rootElement)
           
 org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery createSearchQuery(org.eclipse.emf.ecore.EObject rootElement, java.lang.String text, java.util.Map options)
          If the search element of this provider is selected, this method will be invoked when the "Search" button is clicked to start searching.
 org.eclipse.search.ui.ISearchPageContainer getContainer()
           
 void setContainer(org.eclipse.search.ui.ISearchPageContainer container)
           
protected  void setQueryOutputType(org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery query, org.eclipse.emf.ecore.EClass type)
           
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionEventSearchProvider

public ExecutionEventSearchProvider()
Method Detail

createContents

public void createContents(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: ITestLogSearchProvider
This method will be called the first time the search element of this provider is selected.

Specified by:
createContents in interface ITestLogSearchProvider
Parameters:
parent -

setContainer

public void setContainer(org.eclipse.search.ui.ISearchPageContainer container)
Specified by:
setContainer in interface ITestLogSearchProvider
Parameters:
container -
See Also:
ISearchPage.setContainer(ISearchPageContainer)

getContainer

public org.eclipse.search.ui.ISearchPageContainer getContainer()

createSearchQuery

public org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery createSearchQuery(org.eclipse.emf.ecore.EObject rootElement,
                                                                                          java.lang.String text,
                                                                                          java.util.Map options)
Description copied from interface: ITestLogSearchProvider
If the search element of this provider is selected, this method will be invoked when the "Search" button is clicked to start searching. The implementation of this method should create a unique SimpleSearchQuery that can be used to search the particular element based on user's choices for it.

Specified by:
createSearchQuery in interface ITestLogSearchProvider
Parameters:
rootElement - an element in the test log that this search should start from
text - the string that the user entered for searching. Depends on user's choices for the element of this provider, this string should be searched for in those fields of the element.
options - options include:
  • name - TestLogSearchPage.SEARCH_OPTION_CASE_SENSITIVE, value - Boolean
  • name - TestLogSearchPage.SEARCH_OPTION_DEPTH, value - Integer
  • See Also:
    SimpleSearchQuery

    createQuery

    protected org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery createQuery(org.eclipse.emf.ecore.EObject rootElement)

    setQueryOutputType

    protected void setQueryOutputType(org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery query,
                                      org.eclipse.emf.ecore.EClass type)

    createORExpression

    protected org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression createORExpression()

    createANDExpression

    protected org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression createANDExpression()

    combineExecutionEventAndElementExpressions

    protected void combineExecutionEventAndElementExpressions(org.eclipse.hyades.models.hierarchy.extensions.SimpleSearchQuery query,
                                                              org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression executionEventORExpression,
                                                              org.eclipse.hyades.models.hierarchy.extensions.LogicalExpression elementORExpression)

    createBinaryExpression

    protected org.eclipse.hyades.models.hierarchy.extensions.BinaryExpression createBinaryExpression(org.eclipse.emf.ecore.EAttribute feature,
                                                                                                     java.lang.String value)

    createBinaryExpression

    protected org.eclipse.hyades.models.hierarchy.extensions.BinaryExpression createBinaryExpression(org.eclipse.emf.ecore.EAttribute feature,
                                                                                                     org.eclipse.emf.ecore.EDataType valueType,
                                                                                                     java.lang.Object value)

    widgetDefaultSelected

    public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
    Specified by:
    widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

    widgetSelected

    public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
    Specified by:
    widgetSelected in interface org.eclipse.swt.events.SelectionListener

    TPTP 4.3.0 Testing Tools Project
    Public API Specification