Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Green2012-01-13 15:03:29 -0500
committerDavid Green2012-01-13 15:03:29 -0500
commit50fd76554cdaa0d5041254f7d664d2a768144fa5 (patch)
tree03d807b8225f2f3b92c897af46677fec5b92903c
parentb369e6ef6cfdbebbb3e81da5624510152cc99779 (diff)
downloadorg.eclipse.mylyn.incubator-50fd76554cdaa0d5041254f7d664d2a768144fa5.tar.gz
org.eclipse.mylyn.incubator-50fd76554cdaa0d5041254f7d664d2a768144fa5.tar.xz
org.eclipse.mylyn.incubator-50fd76554cdaa0d5041254f7d664d2a768144fa5.zip
bug 191522: provide full text search functionality over task comments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=191522 subclasses can override containersChanged, so they need to be able to call reindex(task)
-rw-r--r--org.eclipse.mylyn.tasks.index.core/src/org/eclipse/mylyn/internal/tasks/index/core/TaskListIndex.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.index.core/src/org/eclipse/mylyn/internal/tasks/index/core/TaskListIndex.java b/org.eclipse.mylyn.tasks.index.core/src/org/eclipse/mylyn/internal/tasks/index/core/TaskListIndex.java
index 6e723762..f778f69e 100644
--- a/org.eclipse.mylyn.tasks.index.core/src/org/eclipse/mylyn/internal/tasks/index/core/TaskListIndex.java
+++ b/org.eclipse.mylyn.tasks.index.core/src/org/eclipse/mylyn/internal/tasks/index/core/TaskListIndex.java
@@ -557,7 +557,16 @@ public class TaskListIndex implements ITaskDataManagerListener, ITaskListChangeL
}
}
- private void reindex(ITask task, TaskData taskData) {
+ /**
+ * advanced usage: cause the given task to be reindexed using {@link MaintainIndexType#REINDEX reindex scheduling
+ * rule}.
+ *
+ * @param task
+ * the task
+ * @param taskData
+ * the task data, or nul if it's not available
+ */
+ protected void reindex(ITask task, TaskData taskData) {
if (task == null) {
// this can happen when edits are discarded
return;

Back to the top