blob: 802dfd7e22410e614ab1d76e9b0271f15b293a39 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*******************************************************************************
* Copyright (c) 2006 - 2006 Mylar eclipse.org project and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Mylar project committers - initial API and implementation
*******************************************************************************/
package org.eclipse.mylar.internal.trac.core;
import org.eclipse.mylar.tasks.core.AbstractQueryHit;
import org.eclipse.mylar.tasks.core.AbstractRepositoryTask;
import org.eclipse.mylar.tasks.core.TaskList;
/**
* @author Steffen Pingel
*/
public class TracQueryHit extends AbstractQueryHit {
public TracQueryHit(TaskList taskList, String repositoryUrl, String description, String id) {
super(taskList, repositoryUrl, description, id);
}
public TracQueryHit(TaskList taskList, String handle) {
super(taskList, AbstractRepositoryTask.getRepositoryUrl(handle), "", AbstractRepositoryTask.getTaskId(handle));
}
protected AbstractRepositoryTask createTask() {
TracTask newTask = new TracTask(getHandleIdentifier(), getSummary(), true);
newTask.setPriority(priority);
return newTask;
}
public String getUrl() {
return getRepositoryUrl() + ITracClient.TICKET_URL + getId();
}
}
|