Search in sources :

Example 1 with OSIORestQueryTypeWizardPage

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.ui.provisional.OSIORestQueryTypeWizardPage in project linuxtools by eclipse.

the class OSIORestRepositoryConnectorUI method getQueryWizard.

@Override
public IWizard getQueryWizard(TaskRepository repository, IRepositoryQuery query) {
    RepositoryQueryWizard wizard = new RepositoryQueryWizard(repository);
    AbstractRepositoryConnector connector = getConnector();
    OSIORestConnector connectorREST = (OSIORestConnector) connector;
    TaskData taskData = new TaskData(new OSIORestTaskAttributeMapper(repository, connectorREST), repository.getConnectorKind(), "Query", // $NON-NLS-1$ //$NON-NLS-2$
    "Query");
    if (query == null) {
        wizard.addPage(new OSIORestQueryTypeWizardPage(repository, connector));
    } else {
        if (isCustomQuery(query)) {
            wizard.addPage(OSIORestUIUtil.createOSIORestSearchPage(true, true, taskData, connectorREST, repository, query));
        } else {
            wizard.addPage(OSIORestUIUtil.createOSIORestSearchPage(false, true, taskData, connectorREST, repository, query));
        }
    }
    return wizard;
}
Also used : RepositoryQueryWizard(org.eclipse.mylyn.tasks.ui.wizards.RepositoryQueryWizard) AbstractRepositoryConnector(org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector) OSIORestQueryTypeWizardPage(org.eclipse.linuxtools.internal.mylyn.osio.rest.ui.provisional.OSIORestQueryTypeWizardPage) OSIORestConnector(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConnector) OSIORestTaskAttributeMapper(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskAttributeMapper) TaskData(org.eclipse.mylyn.tasks.core.data.TaskData)

Aggregations

OSIORestConnector (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConnector)1 OSIORestTaskAttributeMapper (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskAttributeMapper)1 OSIORestQueryTypeWizardPage (org.eclipse.linuxtools.internal.mylyn.osio.rest.ui.provisional.OSIORestQueryTypeWizardPage)1 AbstractRepositoryConnector (org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector)1 TaskData (org.eclipse.mylyn.tasks.core.data.TaskData)1 RepositoryQueryWizard (org.eclipse.mylyn.tasks.ui.wizards.RepositoryQueryWizard)1