summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-19 18:17:16 (EDT)
committerChris Aniszczyk2011-04-19 18:47:54 (EDT)
commit606777402ad2a5f0cf41c05145dd1ae6a930ebdc (patch)
tree438f106d35121e98dc864b5db8865ab3c4069197
parent76aaa01c65e8067327500ef3642b1a031c15b959 (diff)
downloadegit-github-606777402ad2a5f0cf41c05145dd1ae6a930ebdc.zip
egit-github-606777402ad2a5f0cf41c05145dd1ae6a930ebdc.tar.gz
egit-github-606777402ad2a5f0cf41c05145dd1ae6a930ebdc.tar.bz2
Drop 'as' from label for LEAVE operationrefs/changes/76/3176/2
Change-Id: Id4a90aff3c3a82b4d8d54db3e0dfa6c6d481aa00 Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskOperation.java42
1 files changed, 35 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskOperation.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskOperation.java
index 7043d47..58c5b6e 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskOperation.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/GitHubTaskOperation.java
@@ -12,37 +12,65 @@
*******************************************************************************/
package org.eclipse.mylyn.github.internal;
+/**
+ * Enumeration of task operations
+ */
public enum GitHubTaskOperation {
- LEAVE("Leave as "),
+
+ /**
+ * LEAD
+ */
+ LEAVE("Leave "),
+
+ /**
+ * REOPEN
+ */
REOPEN("Reopen"),
+
+ /**
+ * CLOSE
+ */
CLOSE("Close");
-
+
private final String label;
private GitHubTaskOperation(String label) {
this.label = label;
}
-
+
+ /**
+ * Get label
+ *
+ * @return label
+ */
public String getLabel() {
return label;
}
+ /**
+ * Get id
+ *
+ * @return id
+ */
public String getId() {
return name();
}
/**
* get the operation by its id
- * @param opId the id, or null
- * @return the operation, or null if the id was null or did not match any operation
+ *
+ * @param opId
+ * the id, or null
+ * @return the operation, or null if the id was null or did not match any
+ * operation
*/
public static GitHubTaskOperation fromId(String opId) {
- for (GitHubTaskOperation op: values()) {
+ for (GitHubTaskOperation op : values()) {
if (op.getId().equals(opId)) {
return op;
}
}
return null;
}
-
+
}