Search in sources :

Example 21 with OSIORestConfiguration

use of org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration in project linuxtools by eclipse.

the class OSIORestUIUtil method createOSIORestSearchQueryPage.

protected static OSIORestSearchQueryPage createOSIORestSearchQueryPage(TaskData taskData, OSIORestConnector connectorREST, TaskRepository repository) {
    try {
        OSIORestSearchQueryPageSchema.getInstance().initialize(taskData);
        OSIORestConfiguration config = connectorREST.getRepositoryConfiguration(repository);
        if (config != null) {
            config.updateSpaceOptions(taskData);
        }
    } catch (CoreException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    return new OSIORestSearchQueryPage(Messages.OSIORestUiUtil_CreateQueryFromForm, repository, null, OSIORestSearchQueryPageSchema.getInstance(), taskData, new // $NON-NLS-1$
    QueryPageDetails(// $NON-NLS-1$
    true, // $NON-NLS-1$
    "buglist.cgi?", // $NON-NLS-1$
    Messages.OSIORestUiUtil_FillForm, Messages.OSIORestUiUtil_enterTitleAndFillForm, "([a-zA-Z][a-zA-Z+.-]{0,10}://[a-zA-Z0-9%._~!$&?#'()*+,;:@/=-]+)", // $NON-NLS-1$
    null));
}
Also used : CoreException(org.eclipse.core.runtime.CoreException) OSIORestConfiguration(org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration)

Aggregations

OSIORestConfiguration (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestConfiguration)21 OSIORestClient (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestClient)19 TestData (org.eclipse.linuxtools.mylyn.osio.rest.test.support.TestData)19 RepositoryLocation (org.eclipse.mylyn.commons.repositories.core.RepositoryLocation)19 Test (org.junit.Test)19 NullOperationMonitor (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.NullOperationMonitor)15 TaskData (org.eclipse.mylyn.tasks.core.data.TaskData)13 AbstractTaskDataHandler (org.eclipse.mylyn.tasks.core.data.AbstractTaskDataHandler)11 TaskAttributeMapper (org.eclipse.mylyn.tasks.core.data.TaskAttributeMapper)11 FileReader (java.io.FileReader)10 TaskAttribute (org.eclipse.mylyn.tasks.core.data.TaskAttribute)10 JsonWriter (com.google.gson.stream.JsonWriter)5 StringWriter (java.io.StringWriter)5 OSIORestTaskSchema (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.OSIORestTaskSchema)4 Space (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Space)3 NullOperationMonitor (org.eclipse.mylyn.internal.commons.core.operations.NullOperationMonitor)3 LinkedHashSet (java.util.LinkedHashSet)2 CoreException (org.eclipse.core.runtime.CoreException)2 Identity (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.Identity)2 WorkItem (org.eclipse.linuxtools.internal.mylyn.osio.rest.core.response.data.WorkItem)2