Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTask.java10
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskListManagerTest.java4
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryTaskHandleTest.java2
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListNotificationManagerTest.java12
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java14
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryUi.java8
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryTask.java4
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/DelegatingTaskExternalizer.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/Task.java5
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TableSorterTest.java2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTest.java24
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskHistoryTest.java10
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java2
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java6
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java42
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java24
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java6
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java4
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryTask.java6
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java4
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java10
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask.java4
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java4
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java2
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java6
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java2
35 files changed, 128 insertions, 125 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index c667278ca..2541806ee 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -99,7 +99,9 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
}
public AbstractRepositoryTask createTask(String repositoryUrl, String id, String summary) {
- return new BugzillaTask(repositoryUrl, id, summary, true);
+ BugzillaTask task = new BugzillaTask(repositoryUrl, id, summary);
+ task.setCreationDate(new Date());
+ return task;
}
public void updateTaskFromTaskData(TaskRepository repository, AbstractRepositoryTask repositoryTask,
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTask.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTask.java
index 2c9ae30c4..6146f34a0 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTask.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTask.java
@@ -25,12 +25,12 @@ public class BugzillaTask extends AbstractRepositoryTask {
private String product;
- public BugzillaTask(String repositoryUrl, String id, String label, boolean newTask) {
- super(repositoryUrl, id, label, newTask);
- if (newTask) {
- setSyncState(RepositoryTaskSyncState.INCOMING);
- }
+ public BugzillaTask(String repositoryUrl, String id, String label) {
+ super(repositoryUrl, id, label);
setTaskUrl(BugzillaClient.getBugUrlWithoutLogin(repositoryUrl, id));
+// if (newTask) {
+// setSyncState(RepositoryTaskSyncState.INCOMING);
+// }
}
// public BugzillaTask(BugzillaQueryHit hit, boolean newTask) {
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
index e6ee56a95..d62ea93b3 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaRepositoryConnectorTest.java
@@ -243,13 +243,13 @@ public class BugzillaRepositoryConnectorTest extends AbstractBugzillaTest {
init222();
BugzillaRepositoryQuery query1 = new BugzillaRepositoryQuery(IBugzillaConstants.TEST_BUGZILLA_222_URL,
"queryurl", "description1", taskList);
- BugzillaTask query1Hit = new BugzillaTask(IBugzillaConstants.TEST_BUGZILLA_222_URL, "1", "description1", true);
+ BugzillaTask query1Hit = new BugzillaTask(IBugzillaConstants.TEST_BUGZILLA_222_URL, "1", "description1");
query1.addHit(query1Hit);
taskList.addQuery(query1);
BugzillaRepositoryQuery query2 = new BugzillaRepositoryQuery(IBugzillaConstants.TEST_BUGZILLA_222_URL,
"queryurl2", "description2", taskList);
- BugzillaTask query2Hit = new BugzillaTask(IBugzillaConstants.TEST_BUGZILLA_222_URL, "1", "description2", true);
+ BugzillaTask query2Hit = new BugzillaTask(IBugzillaConstants.TEST_BUGZILLA_222_URL, "1", "description2");
query2.addHit(query2Hit);
taskList.addQuery(query2);
assertEquals(2, taskList.getQueries().size());
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskListManagerTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskListManagerTest.java
index df923a3e9..bb0fcc6d2 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskListManagerTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskListManagerTest.java
@@ -69,7 +69,7 @@ public class BugzillaTaskListManagerTest extends TestCase {
String bugNumber = "106939";
- BugzillaTask task1 = new BugzillaTask(repositoryUrl, bugNumber, "label", false);
+ BugzillaTask task1 = new BugzillaTask(repositoryUrl, bugNumber, "label");
manager.getTaskList().addTask(task1);
task1.setReminded(true);
@@ -89,7 +89,7 @@ public class BugzillaTaskListManagerTest extends TestCase {
}
public void testRepositoryTaskExternalization() {
- BugzillaTask repositoryTask = new BugzillaTask("repo", "1", "label", true);
+ BugzillaTask repositoryTask = new BugzillaTask("repo", "1", "label");
repositoryTask.setKind("kind");
manager.getTaskList().moveToRoot(repositoryTask);
manager.saveTaskList();
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java
index 084b92825..0ac2812cb 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaTaskTest.java
@@ -51,7 +51,7 @@ public class BugzillaTaskTest extends TestCase {
}
public void testCompletionDate() throws Exception {
- BugzillaTask task = new BugzillaTask("repo", "1", "summary", true);
+ BugzillaTask task = new BugzillaTask("repo", "1", "summary");
RepositoryTaskData taskData = new RepositoryTaskData(new BugzillaAttributeFactory(),
BugzillaCorePlugin.REPOSITORY_KIND, IBugzillaConstants.ECLIPSE_BUGZILLA_URL, "1", Task.DEFAULT_TASK_KIND);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryTaskHandleTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryTaskHandleTest.java
index 2ee435fe0..ce96b9c81 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryTaskHandleTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryTaskHandleTest.java
@@ -54,7 +54,7 @@ public class RepositoryTaskHandleTest extends TestCase {
String repository = IBugzillaConstants.ECLIPSE_BUGZILLA_URL;
String id = "123";
- BugzillaTask bugTask = new BugzillaTask(repository, id, "label 124", true);
+ BugzillaTask bugTask = new BugzillaTask(repository, id, "label 124");
assertEquals(repository, bugTask.getRepositoryUrl());
manager.getTaskList().moveToRoot(bugTask);
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListNotificationManagerTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListNotificationManagerTest.java
index b40903aff..481af7b69 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListNotificationManagerTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListNotificationManagerTest.java
@@ -46,9 +46,9 @@ public class TaskListNotificationManagerTest extends TestCase {
Date now = new Date();
- ITask task0 = new Task("t0", "t0 - test 0", true);
- ITask task1 = new Task("t1", "t1 - test 1", true);
- ITask task2 = new Task("t2", "t2 - test 2", true);
+ ITask task0 = new Task("t0", "t0 - test 0");
+ ITask task1 = new Task("t1", "t1 - test 1");
+ ITask task2 = new Task("t2", "t2 - test 2");
task0.setScheduledForDate(new Date(now.getTime() - 2000));
task1.setScheduledForDate(new Date(now.getTime() - 2000));
@@ -78,7 +78,7 @@ public class TaskListNotificationManagerTest extends TestCase {
TaskRepository repository = new TaskRepository("bugzilla", "https://bugs.eclipse.org/bugs");
TasksUiPlugin.getRepositoryManager().addRepository(repository,
TasksUiPlugin.getDefault().getRepositoriesFilePath());
- AbstractRepositoryTask task = new BugzillaTask("https://bugs.eclipse.org/bugs", "142891", "label", true);
+ AbstractRepositoryTask task = new BugzillaTask("https://bugs.eclipse.org/bugs", "142891", "label");
assertTrue(task.getSyncState() == RepositoryTaskSyncState.INCOMING);
assertFalse(task.isNotified());
task.setNotified(false);
@@ -93,7 +93,7 @@ public class TaskListNotificationManagerTest extends TestCase {
}
public void testTaskListNotificationQueryIncoming() {
- BugzillaTask hit = new BugzillaTask("https://bugs.eclipse.org/bugs", "1", "summary", true);
+ BugzillaTask hit = new BugzillaTask("https://bugs.eclipse.org/bugs", "1", "summary");
assertFalse(hit.isNotified());
BugzillaRepositoryQuery query = new BugzillaRepositoryQuery("https://bugs.eclipse.org/bugs", "queryUrl",
"summary", TasksUiPlugin.getTaskListManager().getTaskList());
@@ -111,7 +111,7 @@ public class TaskListNotificationManagerTest extends TestCase {
public void testTaskListNotificationQueryIncomingRepeats() {
TasksUiPlugin.getTaskListManager().resetTaskList();
- BugzillaTask hit = new BugzillaTask("https://bugs.eclipse.org/bugs", "1", "summary", true);
+ BugzillaTask hit = new BugzillaTask("https://bugs.eclipse.org/bugs", "1", "summary");
String hitHandle = hit.getHandleIdentifier();
assertFalse(hit.isNotified());
BugzillaRepositoryQuery query = new BugzillaRepositoryQuery("https://bugs.eclipse.org/bugs", "queryUrl",
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
index 166f0a066..77b361361 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskListStandaloneTest.java
@@ -59,7 +59,7 @@ public class TaskListStandaloneTest extends TestCase {
}
public void testDueDateExternalization() {
- ITask task = new Task("1", "task 1", true);
+ ITask task = new Task("1", "task 1");
Date dueDate = new Date();
task.setDueDate(dueDate);
manager.getTaskList().moveToRoot(task);
@@ -76,7 +76,7 @@ public class TaskListStandaloneTest extends TestCase {
}
public void testPastReminder() {
- ITask task = new Task("1", "1", true);
+ ITask task = new Task("1", "1");
long now = new Date().getTime();
task.setScheduledForDate(new Date(now - 1000));
assertTrue(task.isPastReminder());
@@ -92,7 +92,7 @@ public class TaskListStandaloneTest extends TestCase {
public void testDates() {
Date start = Calendar.getInstance().getTime();
Date creation = new Date();
- Task task = new Task("1", "task 1", true);
+ Task task = new Task("1", "task 1");
manager.getTaskList().moveToRoot(task);
assertDatesCloseEnough(task.getCreationDate(), start);
@@ -131,7 +131,7 @@ public class TaskListStandaloneTest extends TestCase {
externalizers.add(new BugzillaTaskExternalizer());
// make some tasks
// save them
- BugzillaTask task = new BugzillaTask("http://bugs", "1", "1", true);
+ BugzillaTask task = new BugzillaTask("http://bugs", "1", "1");
manager.getTaskList().addTask(task);
manager.saveTaskList();
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
index fc4668494..48f67387c 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/TaskReportGeneratorTest.java
@@ -55,7 +55,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
manager.getTaskList().moveToRoot(task1);
CompletedTaskCollector collector = new CompletedTaskCollector(new Date(0));
@@ -71,7 +71,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksDateBoundsRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(true);
Thread.sleep(1000);
@@ -93,7 +93,7 @@ public class TaskReportGeneratorTest extends TestCase {
public void testCompletedBugzillaTasksRetrieved() throws InvocationTargetException, InterruptedException {
BugzillaTask task1 = new BugzillaTask("repo", "1",
- "bugzillatask 1", true);
+ "bugzillatask 1");
manager.getTaskList().moveToRoot(task1);
CompletedTaskCollector collector = new CompletedTaskCollector(new Date(0));
@@ -109,7 +109,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedTasksInCategoryRetrieved() throws InvocationTargetException, InterruptedException {
- Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(true);
TaskCategory cat1 = new TaskCategory("TaskReportGeneratorTest Category", manager.getTaskList());
@@ -132,8 +132,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedBugzillaTasksInCategoryRetrieved() throws InvocationTargetException, InterruptedException {
- BugzillaTask task1 = new BugzillaTask("repo", "1", "task 1",
- true);
+ BugzillaTask task1 = new BugzillaTask("repo", "1", "task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(true);
TaskCategory cat1 = new TaskCategory("TaskReportGeneratorTest Category", manager.getTaskList());
@@ -156,8 +155,7 @@ public class TaskReportGeneratorTest extends TestCase {
}
public void testCompletedBugzillaTasksInQueryRetrieved() throws InvocationTargetException, InterruptedException {
- BugzillaTask task1 = new BugzillaTask("repo", "1", "task 1",
- true);
+ BugzillaTask task1 = new BugzillaTask("repo", "1", "task 1");
manager.getTaskList().moveToRoot(task1);
task1.setCompleted(false);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryUi.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryUi.java
index 479c20f0b..93cbe3c81 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryUi.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryUi.java
@@ -61,19 +61,19 @@ public class BugzillaRepositoryUi extends AbstractRepositoryConnectorUi {
public List<ITaskListElement> getLegendItems() {
List<ITaskListElement> legendItems = new ArrayList<ITaskListElement>();
- BugzillaTask blocker = new BugzillaTask("", "critical", "Critical or Blocker", false);
+ BugzillaTask blocker = new BugzillaTask("", "critical", "Critical or Blocker");
blocker.setSeverity("critical");
legendItems.add(blocker);
- BugzillaTask major = new BugzillaTask("", "major", "Major", false);
+ BugzillaTask major = new BugzillaTask("", "major", "Major");
major.setSeverity("major");
legendItems.add(major);
- BugzillaTask enhancement = new BugzillaTask("", "enhancement", "Enhancement", false);
+ BugzillaTask enhancement = new BugzillaTask("", "enhancement", "Enhancement");
enhancement.setSeverity("enhancement");
legendItems.add(enhancement);
- BugzillaTask trivial = new BugzillaTask("", "trivial", "Trivial or Minor", false);
+ BugzillaTask trivial = new BugzillaTask("", "trivial", "Trivial or Minor");
trivial.setSeverity("trivial");
legendItems.add(trivial);
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
index c483eb7df..1ef0fecc4 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskExternalizer.java
@@ -97,7 +97,7 @@ public class BugzillaTaskExternalizer extends DelegatingTaskExternalizer {
@Override
public ITask createTask(String repositoryUrl, String taskId, String summary, Element element, TaskList taskList,
AbstractTaskContainer category, ITask parent) throws TaskExternalizationException {
- BugzillaTask task = new BugzillaTask(repositoryUrl, taskId, summary, false);
+ BugzillaTask task = new BugzillaTask(repositoryUrl, taskId, summary);
if (element.hasAttribute(KEY_SEVERITY)) {
task.setSeverity(element.getAttribute(KEY_SEVERITY));
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java
index 14d7c7ca3..c4840558c 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java
@@ -30,7 +30,7 @@ public class WebTask extends AbstractRepositoryTask {
private final String repsitoryType;
public WebTask(String id, String label, String taskPrefix, String repositoryUrl, String repsitoryType) {
- super(repositoryUrl, id, label, false);
+ super(repositoryUrl, id, label);
this.taskPrefix = taskPrefix;
this.repositoryUrl = repositoryUrl;
this.repsitoryType = repsitoryType;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryTask.java
index d7d5db1c3..c25c6baba 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryTask.java
@@ -48,9 +48,9 @@ public abstract class AbstractRepositoryTask extends Task {
// transient
protected boolean submitting;
- public AbstractRepositoryTask(String repositoryUrl, String taskId, String summary, boolean newTask) {
+ public AbstractRepositoryTask(String repositoryUrl, String taskId, String summary) {
// NOTE: Repository tasks specify their own handle format.
- super(null, summary, newTask);
+ super(null, summary);
this.repositoryUrl = repositoryUrl;
this.taskId = taskId;
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/DelegatingTaskExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/DelegatingTaskExternalizer.java
index f101c0e43..e167a79cd 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/DelegatingTaskExternalizer.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/DelegatingTaskExternalizer.java
@@ -378,7 +378,7 @@ public class DelegatingTaskExternalizer implements ITaskListExternalizer {
} else {
throw new TaskExternalizationException("Handle not stored for task");
}
- Task task = new Task(handle, summary, false);
+ Task task = new Task(handle, summary);
return task;
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/Task.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/Task.java
index f9435d8c4..b7f8fdc8e 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/Task.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/Task.java
@@ -145,12 +145,9 @@ public class Task extends PlatformObject implements ITask {
return summary;
}
- public Task(String handle, String summary, boolean newTask) {
+ public Task(String handle, String summary) {
this.handleIdentifier = handle;
this.summary = summary;
- if (newTask) {
- creationDate = new Date();
- }
}
public String getHandleIdentifier() {
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TableSorterTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TableSorterTest.java
index d3b3f14cc..53e937fdb 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TableSorterTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TableSorterTest.java
@@ -26,7 +26,7 @@ public class TableSorterTest extends TestCase {
public void testRootTaskSorting() {
TaskListTableSorter sorter = new TaskListTableSorter(null, TaskListTableSorter.SortByIndex.SUMMARY);
- Task task = new Task("1", "", true);
+ Task task = new Task("1", "");
TaskCategory category = new TaskCategory("cat", new TaskList());
assertEquals(-1, sorter.compare(null, task, category));
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTest.java
index 56b2c8b7b..187d285fd 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskActivityTest.java
@@ -76,8 +76,8 @@ public class TaskActivityTest extends TestCase {
midTime.setTimeInMillis(1500);
assertTrue(testContainer.includes(midTime));
- ITask task1 = new Task("task 1", "Task 1", true);
- ITask task2 = new Task("task 2", "Task 2", true);
+ ITask task1 = new Task("task 1", "Task 1");
+ ITask task2 = new Task("task 2", "Task 2");
Calendar currentTaskStart = GregorianCalendar.getInstance();
currentTaskStart.setTimeInMillis(currentStartMili);
@@ -123,8 +123,8 @@ public class TaskActivityTest extends TestCase {
public void testTaskListManagerActivity() {
- ITask task1 = new Task("task 1", "Task 1", true);
- ITask task2 = new Task("task 2", "Task 2", true);
+ ITask task1 = new Task("task 1", "Task 1");
+ ITask task2 = new Task("task 2", "Task 2");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task2);
@@ -257,7 +257,7 @@ public class TaskActivityTest extends TestCase {
* @author Yuri Baburov (burchik@gmail.com)
*/
public void testTaskListManagerActivity2() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
DateRangeContainer thisWeekActivity = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
assertNotNull(thisWeekActivity);
@@ -325,7 +325,7 @@ public class TaskActivityTest extends TestCase {
* @author Yuri Baburov (burchik@gmail.com)
*/
public void testTaskListManagerActivity3() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
DateRangeContainer thisWeekActivity = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
assertNotNull(thisWeekActivity);
@@ -402,7 +402,7 @@ public class TaskActivityTest extends TestCase {
public void testTaskListManagerInactivity() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
DateRangeContainer activityThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
@@ -464,7 +464,7 @@ public class TaskActivityTest extends TestCase {
public void testInterleavedActivation() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
DateRangeContainer activityThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
@@ -518,7 +518,7 @@ public class TaskActivityTest extends TestCase {
public void testInterleavedActivation2() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
DateRangeContainer activityThisWeek = TasksUiPlugin.getTaskListManager().getActivityThisWeek();
@@ -602,7 +602,7 @@ public class TaskActivityTest extends TestCase {
futureWeekTaskStart.setTimeInMillis(futureStartTime + 10);
assertTrue(futureWeeks.includes(futureWeekTaskStart));
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
InteractionEvent event1 = new InteractionEvent(InteractionEvent.Kind.SELECTION, "structureKind", task1
.getHandleIdentifier(), "originId", "navigatedRelation", InteractionContextManager.ACTIVITY_DELTA_ACTIVATED,
@@ -655,7 +655,7 @@ public class TaskActivityTest extends TestCase {
}
public void testAfterReloading() {
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
Calendar startTime = Calendar.getInstance();
@@ -731,7 +731,7 @@ public class TaskActivityTest extends TestCase {
endTime2.add(Calendar.DAY_OF_MONTH, 1);
endTime2.add(Calendar.SECOND, 20);
- ITask task1 = new Task("task 1", "Task 1", true);
+ ITask task1 = new Task("task 1", "Task 1");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
InteractionContext metaContext = ContextCorePlugin.getContextManager().getActivityMetaContext();
metaContext.reset();
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java
index 0271aa21a..68fce0cf3 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataExportTest.java
@@ -72,7 +72,7 @@ public class TaskDataExportTest extends AbstractContextTest {
assertTrue(destinationDir.exists());
// Create a task and context with an interaction event to be saved
- task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "Export Test Task", true);
+ task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "Export Test Task");
manager.getTaskList().moveToRoot(task1);
mockContext = ContextCorePlugin.getContextManager().loadContext(task1.getHandleIdentifier());
InteractionEvent event = new InteractionEvent(InteractionEvent.Kind.EDIT, "structureKind", "handle", "originId");
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java
index 780db04f7..a73ac3805 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDataImportTest.java
@@ -112,7 +112,7 @@ public class TaskDataImportTest extends AbstractContextTest {
assertTrue(historyContext.getInteractionHistory().size() == 0);
assertEquals(0, TasksUiPlugin.getRepositoryManager().getAllRepositories().size());
- Task task1 = new Task("handle", "label", true);
+ Task task1 = new Task("handle", "label");
taskList.addTask(task1);
Collection<ITask> tasks = taskList.getAllTasks();
assertEquals(1, tasks.size());
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskHistoryTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskHistoryTest.java
index 7a834a5ee..0a8c1fd70 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskHistoryTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskHistoryTest.java
@@ -57,19 +57,19 @@ public class TaskHistoryTest extends TestCase {
resetHistory();
- task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
manager.getTaskList().moveToRoot(task1);
- task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true);
+ task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2");
manager.getTaskList().moveToRoot(task2);
- task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true);
+ task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3");
manager.getTaskList().moveToRoot(task3);
- task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true);
+ task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4");
manager.getTaskList().moveToRoot(task4);
- task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true);
+ task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5");
manager.getTaskList().moveToRoot(task5);
history = manager.getTaskActivationHistory();
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java
index da2a6ab1a..8e49e375f 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListBackupManagerTest.java
@@ -32,7 +32,7 @@ public class TaskListBackupManagerTest extends TestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- task1 = new Task("handle", "label", true);
+ task1 = new Task("handle", "label");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task1);
TasksUiPlugin.getTaskListManager().activateTask(task1);
TasksUiPlugin.getTaskListManager().deactivateTask(task1);
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java
index 79f728e8a..6ed8b9e77 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListContentProviderTest.java
@@ -44,13 +44,13 @@ public class TaskListContentProviderTest extends TestCase {
public void testHasChildren() {
- Task parent = new Task("parent", "parent label", true);
- Task completedChild = new Task("completed child", "completed child label", true);
+ Task parent = new Task("parent", "parent label");
+ Task completedChild = new Task("completed child", "completed child label");
completedChild.setCompleted(true);
parent.addSubTask(completedChild);
assertFalse(provider.hasChildren(parent));
- Task incompleteChild = new Task("incomplete child", "incomplete child label", true);
+ Task incompleteChild = new Task("incomplete child", "incomplete child label");
incompleteChild.setCompleted(false);
parent.addSubTask(incompleteChild);
assertTrue(provider.hasChildren(parent));
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java
index 3ffe99be5..e9cf53000 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java
@@ -85,13 +85,13 @@ public class TaskListManagerTest extends TestCase {
}
public void testUniqueTaskID() {
- Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label", true);
+ Task task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label");
manager.getTaskList().addTask(task1);
- Task task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label", true);
+ Task task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label");
manager.getTaskList().addTask(task2);
assertEquals(2, manager.getTaskList().getLastTaskNum());
manager.getTaskList().deleteTask(task2);
- Task task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label", true);
+ Task task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label");
manager.getTaskList().addTask(task3);
assertTrue(task3.getHandleIdentifier() + " should end with 3", task3.getHandleIdentifier().endsWith("3"));
assertEquals(3, manager.getTaskList().getLastTaskNum());
@@ -104,7 +104,7 @@ public class TaskListManagerTest extends TestCase {
manager.readExistingOrCreateNewList();
assertEquals(2, manager.getTaskList().getAllTasks().size());
assertEquals(3, manager.getTaskList().getLastTaskNum());
- Task task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label", true);
+ Task task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "label");
assertTrue(task4.getHandleIdentifier() + " should end with 4", task4.getHandleIdentifier().endsWith("4"));
}
@@ -212,7 +212,7 @@ public class TaskListManagerTest extends TestCase {
}
public void testIsActiveToday() {
- ITask task = new Task("1", "task-1", true);
+ ITask task = new Task("1", "task-1");
assertFalse(manager.isScheduledForToday(task));
task.setScheduledForDate(new Date());
@@ -234,7 +234,7 @@ public class TaskListManagerTest extends TestCase {
}
public void testScheduledForToday() {
- ITask task = new Task("1", "task-1", true);
+ ITask task = new Task("1", "task-1");
Calendar cal = Calendar.getInstance();
cal.add(Calendar.MINUTE, 2);
task.setScheduledForDate(cal.getTime());
@@ -257,7 +257,7 @@ public class TaskListManagerTest extends TestCase {
}
public void testIsCompletedToday() {
- ITask task = new Task("1", "task 1", true);
+ ITask task = new Task("1", "task 1");
task.setCompleted(true);
task.setCompletionDate(new Date());
assertTrue(manager.isCompletedToday(task));
@@ -281,7 +281,7 @@ public class TaskListManagerTest extends TestCase {
public void testMoveCategories() {
assertEquals(0, manager.getTaskList().getRootTasks().size());
- Task task1 = new Task("t1", "t1", true);
+ Task task1 = new Task("t1", "t1");
TaskCategory cat1 = new TaskCategory("cat1", manager.getTaskList());
manager.getTaskList().addCategory(cat1);
@@ -299,7 +299,7 @@ public class TaskListManagerTest extends TestCase {
public void testMoveToRoot() {
assertEquals(0, manager.getTaskList().getRootTasks().size());
- Task task1 = new Task("t1", "t1", true);
+ Task task1 = new Task("t1", "t1");
manager.getTaskList().moveToRoot(task1);
assertEquals(1, manager.getTaskList().getRootTasks().size());
assertEquals(UncategorizedCategory.HANDLE, task1.getContainer().getHandleIdentifier());
@@ -320,7 +320,7 @@ public class TaskListManagerTest extends TestCase {
public void testEmpty() {
manager.resetTaskList();
assertTrue(manager.getTaskList().isEmpty());
- manager.getTaskList().internalAddRootTask(new Task("", "", true));
+ manager.getTaskList().internalAddRootTask(new Task("", ""));
assertFalse(manager.getTaskList().isEmpty());
}
@@ -401,7 +401,7 @@ public class TaskListManagerTest extends TestCase {
}
public void testDeleteRootTask() {
- ITask task = new Task("task-1", "label", true);
+ ITask task = new Task("task-1", "label");
manager.getTaskList().addTask(task);
manager.getTaskList().internalAddRootTask(task);
manager.getTaskList().deleteTask(task);
@@ -416,7 +416,7 @@ public class TaskListManagerTest extends TestCase {
assertEquals(0, manager.getTaskList().getArchiveContainer().getChildren().size());
assertEquals(2, manager.getTaskList().getCategories().size());
- ITask task = new Task("task-1", "label", true);
+ ITask task = new Task("task-1", "label");
TaskCategory category = new TaskCategory("handleAndDescription", manager.getTaskList());
manager.getTaskList().addTask(task);
assertEquals(1, manager.getTaskList().getArchiveContainer().getChildren().size());
@@ -510,16 +510,16 @@ public class TaskListManagerTest extends TestCase {
public void testCreationAndExternalization() {
Set<ITask> rootTasks = new HashSet<ITask>();
- Task task1 = new Task(manager.genUniqueTaskHandle(), "task 1", true);
+ Task task1 = new Task(manager.genUniqueTaskHandle(), "task 1");
manager.getTaskList().moveToRoot(task1);
rootTasks.add(task1);
- Task sub1 = new Task("subtask-1", "sub 1", true);
+ Task sub1 = new Task("subtask-1", "sub 1");
task1.addSubTask(sub1);
manager.getTaskList().addTask(sub1);
sub1.setParent(task1);
- Task task2 = new Task(manager.genUniqueTaskHandle(), "task 2", true);
+ Task task2 = new Task(manager.genUniqueTaskHandle(), "task 2");
manager.getTaskList().moveToRoot(task2);
rootTasks.add(task2);
@@ -528,14 +528,14 @@ public class TaskListManagerTest extends TestCase {
TaskCategory cat1 = new TaskCategory("Category 1", manager.getTaskList());
manager.getTaskList().addCategory(cat1);
categories.add(cat1);
- Task task3 = new Task(manager.genUniqueTaskHandle(), "task 3", true);
+ Task task3 = new Task(manager.genUniqueTaskHandle(), "task 3");
manager.getTaskList().moveToContainer(cat1, task3);
cat1Contents.add(task3);
assertEquals(cat1, task3.getContainer());
- Task sub2 = new Task(manager.genUniqueTaskHandle(), "sub 2", true);
+ Task sub2 = new Task(manager.genUniqueTaskHandle(), "sub 2");
task3.addSubTask(sub2);
sub2.setParent(task3);
- Task task4 = new Task(manager.genUniqueTaskHandle(), "task 4", true);
+ Task task4 = new Task(manager.genUniqueTaskHandle(), "task 4");
manager.getTaskList().moveToContainer(cat1, task4);
cat1Contents.add(task4);
@@ -585,7 +585,7 @@ public class TaskListManagerTest extends TestCase {
// String handle = AbstractRepositoryTask.getHandle("http://url/repo-location",
// 1);
- Task task1 = new Task("http://url/repo-location-1", "task 1", true);
+ Task task1 = new Task("http://url/repo-location-1", "task 1");
manager.getTaskList().moveToRoot(task1);
rootTasks.add(task1);
@@ -737,8 +737,8 @@ public class TaskListManagerTest extends TestCase {
}
public void testAllTasksDeactivation() {
- Task task1 = new Task("task1", "description1", true);
- Task task2 = new Task("task2", "description2", true);
+ Task task1 = new Task("task1", "description1");
+ Task task2 = new Task("task2", "description2");
TaskList taskList = manager.getTaskList();
taskList.addTask(task1);
taskList.addTask(task2);
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
index a7494a32d..884de73e5 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
@@ -90,35 +90,35 @@ public class TaskListUiTest extends TestCase {
manager = TasksUiPlugin.getTaskListManager();
cat1 = new TaskCategory("First Category", manager.getTaskList());
- cat1task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ cat1task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
cat1task1.setPriority(Task.PriorityLevel.P1.toString());
cat1task1.setCompleted(true);
cat1task1.setContainer(cat1);
manager.getTaskList().moveToContainer(cat1, cat1task1);
- cat1task1sub1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true);
+ cat1task1sub1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1");
cat1task1sub1.setPriority(Task.PriorityLevel.P1.toString());
cat1task1sub1.setCompleted(true);
cat1task1sub1.setParent(cat1task1);
cat1task1.addSubTask(cat1task1sub1);
- cat1task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true);
+ cat1task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2");
cat1task2.setPriority(Task.PriorityLevel.P2.toString());
cat1task2.setContainer(cat1);
manager.getTaskList().moveToContainer(cat1, cat1task2);
- cat1task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true);
+ cat1task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3");
cat1task3.setPriority(Task.PriorityLevel.P3.toString());
cat1task3.setCompleted(true);
cat1task3.setContainer(cat1);
manager.getTaskList().moveToContainer(cat1, cat1task3);
- cat1task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true);
+ cat1task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4");
cat1task4.setPriority(Task.PriorityLevel.P4.toString());
cat1task4.setContainer(cat1);
manager.getTaskList().moveToContainer(cat1, cat1task4);
- cat1task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true);
+ cat1task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5");
cat1task5.setPriority(Task.PriorityLevel.P5.toString());
cat1task5.setCompleted(true);
cat1task5.setContainer(cat1);
@@ -129,34 +129,34 @@ public class TaskListUiTest extends TestCase {
cat2 = new TaskCategory("Second Category", manager.getTaskList());
- cat2task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1", true);
+ cat2task1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 1");
cat2task1.setPriority(Task.PriorityLevel.P1.toString());
cat2task1.setContainer(cat2);
manager.getTaskList().moveToContainer(cat2, cat2task1);
- cat2task1sub1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1", true);
+ cat2task1sub1 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "sub task 1");
cat2task1sub1.setPriority(Task.PriorityLevel.P1.toString());
cat2task1sub1.setParent(cat2task1);
cat2task1.addSubTask(cat2task1sub1);
- cat2task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2", true);
+ cat2task2 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 2");
cat2task2.setPriority(Task.PriorityLevel.P2.toString());
cat2task2.setCompleted(true);
cat2task2.setContainer(cat2);
manager.getTaskList().moveToContainer(cat2, cat2task2);
- cat2task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3", true);
+ cat2task3 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 3");
cat2task3.setPriority(Task.PriorityLevel.P3.toString());
cat2task3.setContainer(cat2);
manager.getTaskList().moveToContainer(cat2, cat2task3);
- cat2task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4", true);
+ cat2task4 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 4");
cat2task4.setPriority(Task.PriorityLevel.P4.toString());
cat2task4.setCompleted(true);
cat2task4.setContainer(cat2);
manager.getTaskList().moveToContainer(cat2, cat2task4);
- cat2task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5", true);
+ cat2task5 = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), "task 5");
cat2task5.setPriority(Task.PriorityLevel.P5.toString());
cat2task5.setContainer(cat2);
manager.getTaskList().moveToContainer(cat2, cat2task5);
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java
index e8f1d7de3..9a577dc88 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskPlanningEditorTest.java
@@ -51,7 +51,7 @@ public class TaskPlanningEditorTest extends TestCase {
public void testDirtyOnEdit() {
- Task task = new Task(MOCK_HANDLE, MOCK_LABEL, true);
+ Task task = new Task(MOCK_HANDLE, MOCK_LABEL);
task.setSummary(DESCRIPTION);
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task);
TasksUiUtil.openEditor(task, false, true);
@@ -73,7 +73,7 @@ public class TaskPlanningEditorTest extends TestCase {
}
public void testNotDirtyOnRename() {
- Task task = new Task(MOCK_HANDLE, MOCK_LABEL, true);
+ Task task = new Task(MOCK_HANDLE, MOCK_LABEL);
task.setSummary(DESCRIPTION);
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task);
TasksUiUtil.openEditor(task, false, true);
@@ -97,7 +97,7 @@ public class TaskPlanningEditorTest extends TestCase {
* editor remains dirty
*/
public void testRenameInDirtyState() {
- Task task = new Task(MOCK_HANDLE, MOCK_LABEL, true);
+ Task task = new Task(MOCK_HANDLE, MOCK_LABEL);
task.setSummary(DESCRIPTION);
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task);
TasksUiUtil.openEditor(task, false, true);
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java
index 6e883600e..3ab14ef29 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskTest.java
@@ -32,7 +32,7 @@ public class TaskTest extends TestCase {
}
public void testUrl() {
- Task task = new Task("handle", "label", true);
+ Task task = new Task("handle", "label");
task.setTaskUrl("http://eclipse.org/mylar/doc.php");
assertTrue(task.hasValidUrl());
@@ -50,7 +50,7 @@ public class TaskTest extends TestCase {
}
public void testPriorityNeverNull() {
- Task task = new Task("handle", "label", false);
+ Task task = new Task("handle", "label");
assertNotNull(task.getPriority());
PriorityLevel def = PriorityLevel.getDefault();
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryTask.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryTask.java
index c005a8da1..966d1729f 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryTask.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/connector/MockRepositoryTask.java
@@ -21,15 +21,15 @@ public class MockRepositoryTask extends AbstractRepositoryTask {
private String ownerId;
public MockRepositoryTask(String taskId) {
- super(MockRepositoryConnector.REPOSITORY_URL, taskId, taskId, true);
+ super(MockRepositoryConnector.REPOSITORY_URL, taskId, taskId);
}
public MockRepositoryTask(String repositoryUrl, String taskId) {
- super(repositoryUrl, taskId, taskId, true);
+ super(repositoryUrl, taskId, taskId);
}
public MockRepositoryTask(String repositoryUrl, String taskId, String summary) {
- super(repositoryUrl, taskId, summary, true);
+ super(repositoryUrl, taskId, summary);
}
@Override
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java
index 09b4e7f07..0681ef58c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/NewLocalTaskAction.java
@@ -12,6 +12,7 @@
package org.eclipse.mylar.internal.tasks.ui.actions;
import java.util.Calendar;
+import java.util.Date;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
@@ -19,8 +20,8 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.mylar.internal.tasks.ui.ITasksUiConstants;
-import org.eclipse.mylar.internal.tasks.ui.TasksUiImages;
import org.eclipse.mylar.internal.tasks.ui.TaskListPreferenceConstants;
+import org.eclipse.mylar.internal.tasks.ui.TasksUiImages;
import org.eclipse.mylar.internal.tasks.ui.views.TaskInputDialog;
import org.eclipse.mylar.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylar.tasks.core.ITask;
@@ -61,8 +62,7 @@ public class NewLocalTaskAction extends Action implements IViewActionDelegate {
@Override
public void run() {
- Task newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), DESCRIPTION_DEFAULT, true);
-
+ Task newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), DESCRIPTION_DEFAULT);
scheduleNewTask(newTask);
Object selectedObject = null;
@@ -107,6 +107,8 @@ public class NewLocalTaskAction extends Action implements IViewActionDelegate {
}
public static void scheduleNewTask(ITask newTask) {
+ newTask.setCreationDate(new Date());
+
Calendar newTaskSchedule = Calendar.getInstance();
int scheduledEndHour = TasksUiPlugin.getDefault().getPreferenceStore().getInt(
TaskListPreferenceConstants.PLANNING_ENDHOUR);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java
index 053dd640e..e230edcc4 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListDropAdapter.java
@@ -222,7 +222,7 @@ public class TaskListDropAdapter extends ViewerDropAdapter {
// }
retrieveTaskDescription(url);
- newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), urlTitle, true);
+ newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), urlTitle);
NewLocalTaskAction.scheduleNewTask(newTask);
if (newTask == null) {
@@ -241,7 +241,7 @@ public class TaskListDropAdapter extends ViewerDropAdapter {
}
public boolean createTaskFromString(String title) {
- newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), title, true);
+ newTask = new Task(TasksUiPlugin.getTaskListManager().genUniqueTaskHandle(), title);
NewLocalTaskAction.scheduleNewTask(newTask);
if (newTask == null) {
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index 9541f39f9..b9efb9910 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -207,7 +207,8 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
ITracClient connection = getClientManager().getRepository(repository);
TracTicket ticket = connection.getTicket(taskIdInt);
- task = new TracTask(repository.getUrl(), taskId, getTicketDescription(ticket), true);
+ task = new TracTask(repository.getUrl(), taskId, getTicketDescription(ticket));
+ task.setCreationDate(new Date());
updateTaskFromTicket((TracTask) task, ticket, false);
taskList.addTask(task);
} catch (Exception e) {
@@ -219,7 +220,9 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
}
public AbstractRepositoryTask createTask(String repositoryUrl, String id, String summary) {
- return new TracTask(repositoryUrl, id, "<description not set>", true);
+ TracTask tracTask = new TracTask(repositoryUrl, id, "<description not set>");
+ tracTask.setCreationDate(new Date());
+ return tracTask;
}
public void updateTaskFromTaskData(TaskRepository repository, AbstractRepositoryTask repositoryTask,
@@ -265,7 +268,8 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
if (existingTask instanceof TracTask) {
task = (TracTask) existingTask;
} else {
- task = new TracTask(repositoryUrl, taskId, getTicketDescription(ticket), true);
+ task = new TracTask(repositoryUrl, taskId, getTicketDescription(ticket));
+ task.setCreationDate(new Date());
taskList.addTask(task);
}
return task;
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask.java
index 0e2881ba5..0b21489dd 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracTask.java
@@ -135,8 +135,8 @@ public class TracTask extends AbstractRepositoryTask {
}
- public TracTask(String repositoryUrl, String id, String label, boolean newTask) {
- super(repositoryUrl, id, label, newTask);
+ public TracTask(String repositoryUrl, String id, String label) {
+ super(repositoryUrl, id, label);
setTaskUrl(repositoryUrl + ITracClient.TICKET_URL + id);
}
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
index 44cb2ba6c..0379d5e79 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
@@ -242,7 +242,7 @@ public class TracRepositoryConnectorTest extends TestCase {
ticket.putBuiltinValue(Key.SUMMARY, "mysummary");
ticket.putBuiltinValue(Key.TYPE, "mytype");
- TracTask task = new TracTask(Constants.TEST_TRAC_010_URL, ""+123, "desc", true);
+ TracTask task = new TracTask(Constants.TEST_TRAC_010_URL, ""+123, "desc");
assertEquals(Constants.TEST_TRAC_010_URL + ITracClient.TICKET_URL + "123", task.getTaskUrl());
assertEquals("desc", task.getSummary());
@@ -260,7 +260,7 @@ public class TracRepositoryConnectorTest extends TestCase {
TracTicket ticket = new TracTicket(456);
ticket.putBuiltinValue(Key.SUMMARY, "mysummary");
- TracTask task = new TracTask(Constants.TEST_TRAC_010_URL, ""+456, "desc", true);
+ TracTask task = new TracTask(Constants.TEST_TRAC_010_URL, ""+456, "desc");
connector.updateTaskFromTicket(task, ticket, false);
assertEquals(Constants.TEST_TRAC_010_URL + ITracClient.TICKET_URL + "456", task.getTaskUrl());
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
index 0bad6ef83..346625c3e 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryQueryTest.java
@@ -43,7 +43,7 @@ public class TracRepositoryQueryTest extends TestCase {
TracRepositoryQuery query = new TracRepositoryQuery(repository.getUrl(), queryUrl, "description", TasksUiPlugin.getTaskListManager().getTaskList());
TasksUiPlugin.getTaskListManager().getTaskList().addQuery(query);
- TracTask task = new TracTask(Constants.TEST_TRAC_096_URL, ""+123, "desc", true);
+ TracTask task = new TracTask(Constants.TEST_TRAC_096_URL, ""+123, "desc");
TasksUiPlugin.getTaskListManager().getTaskList().addTask(task);
String oldUrl = repository.getUrl();
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java
index d58957802..4dfdac37b 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryUi.java
@@ -116,15 +116,15 @@ public class TracRepositoryUi extends AbstractRepositoryConnectorUi {
public List<ITaskListElement> getLegendItems() {
List<ITaskListElement> legendItems = new ArrayList<ITaskListElement>();
- TracTask defect = new TracTask("", Kind.DEFECT.name(), Kind.DEFECT.toString(), false);
+ TracTask defect = new TracTask("", Kind.DEFECT.name(), Kind.DEFECT.toString());
defect.setKind(Kind.DEFECT.toString());
legendItems.add(defect);
- TracTask enhancement = new TracTask("", Kind.ENHANCEMENT.name(), Kind.ENHANCEMENT.toString(), false);
+ TracTask enhancement = new TracTask("", Kind.ENHANCEMENT.name(), Kind.ENHANCEMENT.toString());
enhancement.setKind(Kind.ENHANCEMENT.toString());
legendItems.add(enhancement);
- TracTask task = new TracTask("", Kind.TASK.name(), Kind.TASK.toString(), false);
+ TracTask task = new TracTask("", Kind.TASK.name(), Kind.TASK.toString());
task.setKind(Kind.TASK.toString());
legendItems.add(task);
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
index 19072707b..a12131db1 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracTaskExternalizer.java
@@ -68,7 +68,7 @@ public class TracTaskExternalizer extends DelegatingTaskExternalizer {
@Override
public ITask createTask(String repositoryUrl, String taskId, String summary, Element element, TaskList taskList,
AbstractTaskContainer category, ITask parent) throws TaskExternalizationException {
- TracTask task = new TracTask(repositoryUrl, taskId, summary, false);
+ TracTask task = new TracTask(repositoryUrl, taskId, summary);
return task;
}

Back to the top