Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-03-10 15:23:51 -0400
committerspingel2008-03-10 15:23:51 -0400
commit0c9f132caac15e9a5349753ccd8a981da7c1b5eb (patch)
treeae5279d46aabeb879f4d584dd6562c995cf05c05
parentf11ca4c59948b376c64d67219f79ac4245dc8ce8 (diff)
downloadorg.eclipse.mylyn.tasks-0c9f132caac15e9a5349753ccd8a981da7c1b5eb.tar.gz
org.eclipse.mylyn.tasks-0c9f132caac15e9a5349753ccd8a981da7c1b5eb.tar.xz
org.eclipse.mylyn.tasks-0c9f132caac15e9a5349753ccd8a981da7c1b5eb.zip
NEW - bug 152232: add task content assist proposals
https://bugs.eclipse.org/bugs/show_bug.cgi?id=152232
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryCompletionProcessor.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryCompletionProcessor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryCompletionProcessor.java
index dc9d498d0..3f41cfd89 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryCompletionProcessor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/RepositoryCompletionProcessor.java
@@ -25,6 +25,7 @@ import org.eclipse.jface.text.contentassist.ICompletionProposal;
import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
import org.eclipse.jface.text.contentassist.IContextInformation;
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
+import org.eclipse.mylyn.internal.tasks.core.LocalTask;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.internal.tasks.ui.actions.CopyTaskDetailsAction;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskActivationHistory;
@@ -173,7 +174,7 @@ public class RepositoryCompletionProcessor implements IContentAssistProcessor {
}
private boolean select(AbstractTask task) {
- return !task.isLocal() //
+ return !(task instanceof LocalTask) //
&& (taskRepository == null || task.getRepositoryUrl().equals(taskRepository.getUrl()));
}
@@ -231,7 +232,7 @@ public class RepositoryCompletionProcessor implements IContentAssistProcessor {
if (editorReferences[i].getEditorInput() instanceof TaskEditorInput) {
TaskEditorInput input = (TaskEditorInput) editorReferences[i].getEditorInput();
AbstractTask task = input.getTask();
- if (task != null && !task.isLocal()) {
+ if (task != null && !(task instanceof LocalTask)) {
proposalComputer.addTask(task);
count++;
}
@@ -249,7 +250,7 @@ public class RepositoryCompletionProcessor implements IContentAssistProcessor {
int count = 0;
for (int i = tasks.size() - 1; i >= 0 && count < MAX_ACTIVATED_TASKS; i--) {
AbstractTask task = tasks.get(i);
- if (!task.isLocal()) {
+ if (!(task instanceof LocalTask)) {
proposalComputer.addTask(task);
}
}

Back to the top