Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-01-13 15:39:51 -0500
committerrelves2007-01-13 15:39:51 -0500
commited1935de51a8aa0f3c82682d11ecf1ceb12a8d73 (patch)
tree7b85dc150f6b321267246d35424c998d4a9298e2 /org.eclipse.mylyn.tasks.core
parent430edf5f0fe3d3697815370096d073b81a40e43e (diff)
downloadorg.eclipse.mylyn.tasks-ed1935de51a8aa0f3c82682d11ecf1ceb12a8d73.tar.gz
org.eclipse.mylyn.tasks-ed1935de51a8aa0f3c82682d11ecf1ceb12a8d73.tar.xz
org.eclipse.mylyn.tasks-ed1935de51a8aa0f3c82682d11ecf1ceb12a8d73.zip
NEW - bug 165498: [api] Create unified abstract support for task submission to repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165498
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/IMylarStatusConstants.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.java3
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.properties2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarStatus.java4
4 files changed, 6 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/IMylarStatusConstants.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/IMylarStatusConstants.java
index cfce663e7..ecd0fb295 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/IMylarStatusConstants.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/IMylarStatusConstants.java
@@ -37,7 +37,7 @@ public interface IMylarStatusConstants {
public final static int OPERATION_CANCELLED = 8;
- public final static int COMMENT_REQUIRED = 9;
+ public final static int REPOSITORY_COMMENT_REQD = 9;
public final static int LOGGED_OUT_OF_REPOSITORY = 10;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.java
index ec7e625ac..2605b27e5 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.java
@@ -31,6 +31,8 @@ public class MylarMessages extends NLS {
public static String repository_login_failure;
public static String repository_not_found;
+
+ public static String repository_comment_reqd;
public static String operation_cancelled;
@@ -40,7 +42,6 @@ public class MylarMessages extends NLS {
public static String internal_error;
- public static String comment_required;
public static String repository_error;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.properties b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.properties
index 78e27d95e..78a9b1d50 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.properties
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarMessages.properties
@@ -5,11 +5,11 @@
repository_error = Repository error from {0}:\n\n{1}
repository_login_failure = Unable to login to {0}.\n\n{1}\n\nPlease validate credentials via Task Repositories view.
repository_not_found = Repository {0} could not be found.
+repository_comment_reqd = You have to specify a new comment when making this change. Please comment on the reason for this change.
### repositoryUrl, class.simpleName, class.getMessage
io_error = I/O Error occurred while communicating with {0}.\n\n{1}: {2}
network_error = A network error occurred connecting to {0}.\n\n{1}
internal_error = An internal error has occurred: {0}
operation_cancelled = {0} was canceled by the user.
-comment_required = You have to specify a new comment when making this change. Please comment on the reason for this change.
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarStatus.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarStatus.java
index 806830ee1..0efebb209 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarStatus.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/MylarStatus.java
@@ -72,9 +72,9 @@ public class MylarStatus extends Status implements IMylarStatusConstants {
return MylarMessages.bind(MylarMessages.internal_error, this.errorMessage);
case OPERATION_CANCELLED:
return MylarMessages.bind(MylarMessages.operation_cancelled, this.errorMessage);
- case COMMENT_REQUIRED:
+ case REPOSITORY_COMMENT_REQD:
if (errorMessage == null) {
- return MylarMessages.comment_required;
+ return MylarMessages.repository_comment_reqd;
} else {
return errorMessage;
}

Back to the top