aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-22 18:22:26 (EDT)
committerKevin Sawicki2011-04-22 18:22:26 (EDT)
commitd7baff87ed213487cad849b1129a103f1681c620 (patch)
tree502e18b947ce5cbaf072e4dd95297dea02654af9
parentaacaec6f8f24aef71553699bc1bd45f9de7b9b72 (diff)
downloadegit-github-d7baff87ed213487cad849b1129a103f1681c620.zip
egit-github-d7baff87ed213487cad849b1129a103f1681c620.tar.gz
egit-github-d7baff87ed213487cad849b1129a103f1681c620.tar.bz2
Add gist task attribute for clone url.refs/changes/27/3227/1
Change-Id: I39313ca8dae3ca08a27f722a29ab0fb9d40b3b7b Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistAttribute.java9
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java3
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/Messages.java3
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/messages.properties1
4 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistAttribute.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistAttribute.java
index 7055093..ef8608d 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistAttribute.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistAttribute.java
@@ -60,7 +60,14 @@ public enum GistAttribute {
/**
* RAW_FILE_URL
*/
- RAW_FILE_URL("github.gist.file.url", Messages.GistAttribute_LabelFileUrl, TaskAttribute.TYPE_URL, //$NON-NLS-1$
+ RAW_FILE_URL(
+ "github.gist.file.url", Messages.GistAttribute_LabelFileUrl, TaskAttribute.TYPE_URL, //$NON-NLS-1$
+ true),
+
+ /**
+ * CLONE_URL
+ */
+ CLONE_URL("github.gist.cloneUrl", Messages.GistAttribute_LabelCloneUrl, TaskAttribute.TYPE_URL, //$NON-NLS-1$
true),
/**
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
index 9fe386a..bbf7197 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistTaskDataHandler.java
@@ -120,6 +120,9 @@ public class GistTaskDataHandler extends AbstractTaskDataHandler {
TaskAttribute url = GistAttribute.URL.create(data);
url.setValue(gist.getHtmlUrl());
+ TaskAttribute pullUrl = GistAttribute.CLONE_URL.create(data);
+ pullUrl.setValue(gist.getGitPushUrl());
+
IRepositoryPerson reporterPerson = null;
User user = gist.getUser();
if (user != null) {
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/Messages.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/Messages.java
index 30dba4e..ce3fc9b 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/Messages.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/Messages.java
@@ -26,6 +26,9 @@ public class Messages extends NLS {
public static String GistAttribute_LabelAuthorGravatar;
/** */
+ public static String GistAttribute_LabelCloneUrl;
+
+ /** */
public static String GistAttribute_LabelCreated;
/** */
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/messages.properties b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/messages.properties
index 53b40d8..8410c1c 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/messages.properties
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/messages.properties
@@ -1,5 +1,6 @@
GistAttribute_LabelAuthor=Author:
GistAttribute_LabelAuthorGravatar=Author
+GistAttribute_LabelCloneUrl=Clone URL:
GistAttribute_LabelCreated=Created:
GistAttribute_LabelDescription=Description:
GistAttribute_LabelFileUrl=File url