Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-01-11 19:15:45 +0000
committerspingel2011-01-11 19:15:45 +0000
commita5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953 (patch)
treec2b0833bb4fce9957eb074175d28c731a3ca7da4 /org.eclipse.mylyn.tasks.core
parent4fb4f49101946473a6149349dc4c767badc8f813 (diff)
downloadorg.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.tar.gz
org.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.tar.xz
org.eclipse.mylyn.tasks-a5cf827d8573ade3d1b2ba4f19a3cbef0a7c6953.zip
NEW - bug 331571: [api] tasks framework should invoke updateTaskFromTaskData() for new tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331571
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
index 1aca43f78..7404967fb 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
@@ -347,6 +347,16 @@ public abstract class AbstractRepositoryConnector {
public abstract void updateTaskFromTaskData(TaskRepository taskRepository, ITask task, TaskData taskData);
/**
+ * Called when a new task is created, before it is opened in a task editor. Connectors should override this method
+ * if they need information from the {@link TaskData} to determine kind labels or other information that should be
+ * displayed in a new task editor.
+ *
+ * @since 3.5
+ */
+ public void updateNewTaskFromTaskData(TaskRepository taskRepository, ITask task, TaskData taskData) {
+ }
+
+ /**
* Invoked when a task associated with this connector is migrated. This typically happens when an unsubmitted task
* is submitted to the repository. Implementers may override to implement custom migration rules.
* <p>

Back to the top