Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-14 16:38:09 -0400
committermkersten2007-06-14 16:38:09 -0400
commitbc31015f1e3ee0c4b8974a4a1d7949ec73b7e4b0 (patch)
tree9ad58d0f7232d1348f05f2214b7bd6b22cddf1e7 /org.eclipse.mylyn.tasks.core
parent134e01595bb99c1675fbfe3d2e8d3f79c4b0c95c (diff)
downloadorg.eclipse.mylyn.tasks-bc31015f1e3ee0c4b8974a4a1d7949ec73b7e4b0.tar.gz
org.eclipse.mylyn.tasks-bc31015f1e3ee0c4b8974a4a1d7949ec73b7e4b0.tar.xz
org.eclipse.mylyn.tasks-bc31015f1e3ee0c4b8974a4a1d7949ec73b7e4b0.zip
RESOLVED - bug 183593: Move WebQueryHit and WebTask back to org.eclipse.mylar.tasks.web
https://bugs.eclipse.org/bugs/show_bug.cgi?id=183593
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java63
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractTask.java4
2 files changed, 4 insertions, 63 deletions
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
deleted file mode 100644
index 8581bae75..000000000
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/WebTask.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 - 2006 University Of British Columbia 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:
- * University Of British Columbia - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.tasks.core;
-
-import org.eclipse.mylyn.tasks.core.AbstractTask;
-
-/**
- * Task used with generic web-based repositories
- *
- * @author Eugene Kuleshov
- */
-public class WebTask extends AbstractTask {
-
- // TODO: move
- public static final String REPOSITORY_TYPE = "web";
-
- private static final String UNKNOWN_OWNER = "<unknown>";
-
- private final String taskPrefix;
-
- private final String repsitoryType;
-
- public WebTask(String id, String label, String taskPrefix, String repositoryUrl, String repsitoryType) {
- super(repositoryUrl, id, label);
- this.taskPrefix = taskPrefix;
- this.repsitoryType = repsitoryType;
- setTaskUrl(taskPrefix + id);
- }
-
- public String getTaskPrefix() {
- return this.taskPrefix;
- }
-
- @Override
- public String getRepositoryKind() {
- return repsitoryType;
- }
-
- @Override
- public String getTaskKey() {
- return null;
- }
-
- public String getOwner() {
- return UNKNOWN_OWNER;
- }
-
- @Override
- public boolean isLocal() {
- // ignore
- return false;
- }
-
-}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractTask.java
index 4fb65a10f..e1dfb29a7 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractTask.java
@@ -175,6 +175,10 @@ public abstract class AbstractTask extends AbstractTaskContainer {
return RepositoryTaskHandleUtil.getHandle(repositoryUrl, taskId);
}
+ /**
+ * True for tasks that can be modified without a round-trip to a server. For example,
+ * such a task can be marked completed via the Task List.
+ */
public abstract boolean isLocal();
public abstract String getRepositoryKind();

Back to the top