aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-14 12:59:42 (EDT)
committerChris Aniszczyk2011-04-14 16:38:34 (EDT)
commitc839cbb69409cc2d9a3d76fd014211c0d4f3cff9 (patch)
tree25aea1ca25292eb6ff47b6056faf52ddc5722954
parentefb2e50d368ff5becb596f5a431c1249c38181ba (diff)
downloadegit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.zip
egit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.tar.gz
egit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.tar.bz2
Add gist query constantsrefs/changes/13/3113/2
Change-Id: If5a27e4eecd18e0ddbf10b0026d2a3607ad3b8ca Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/META-INF/MANIFEST.MF3
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistConnector.java2
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/IGistQueryConstants.java23
3 files changed, 26 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.github.core/META-INF/MANIFEST.MF b/org.eclipse.mylyn.github.core/META-INF/MANIFEST.MF
index c6eab62..4cb5513 100644
--- a/org.eclipse.mylyn.github.core/META-INF/MANIFEST.MF
+++ b/org.eclipse.mylyn.github.core/META-INF/MANIFEST.MF
@@ -5,7 +5,8 @@ Bundle-SymbolicName: org.eclipse.mylyn.github.core;singleton:=true
Bundle-Version: 0.1.0.qualifier
Bundle-Vendor: Eclipse EGit
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.mylyn.github.internal;x-friends:="org.eclipse.mylyn.github.ui"
+Export-Package: org.eclipse.mylyn.github.internal;x-friends:="org.eclipse.mylyn.github.ui",
+ org.eclipse.mylyn.internal.github.core.gist;x-friends:="org.eclipse.mylyn.github.ui"
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.5.0",
org.eclipse.mylyn.tasks.core;bundle-version="3.2.0",
org.eclipse.mylyn.commons.net;bundle-version="3.2.0"
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistConnector.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistConnector.java
index 4b2a2b5..c962d72 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistConnector.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/GistConnector.java
@@ -168,7 +168,7 @@ public class GistConnector extends AbstractRepositoryConnector {
ISynchronizationSession session, IProgressMonitor monitor) {
IStatus status = Status.OK_STATUS;
GistService service = new GistService(createClient(repository));
- String user = query.getAttribute("user"); //$NON-NLS-1$
+ String user = query.getAttribute(IGistQueryConstants.USER);
try {
TaskAttributeMapper mapper = this.dataHandler
.getAttributeMapper(repository);
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/IGistQueryConstants.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/IGistQueryConstants.java
new file mode 100644
index 0000000..fd0d1e6
--- /dev/null
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/internal/github/core/gist/IGistQueryConstants.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2011 GitHub Inc.
+ * 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:
+ * Kevin Sawicki (GitHub Inc.) - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.mylyn.internal.github.core.gist;
+
+/**
+ * Constants used in gist repositories query properties.
+ */
+public interface IGistQueryConstants {
+
+ /**
+ * USER
+ */
+ String USER = "user"; //$NON-NLS-1$
+
+}