diff options
| author | Kevin Sawicki | 2011-04-14 16:59:42 +0000 |
|---|---|---|
| committer | Chris Aniszczyk | 2011-04-14 20:38:34 +0000 |
| commit | c839cbb69409cc2d9a3d76fd014211c0d4f3cff9 (patch) | |
| tree | 25aea1ca25292eb6ff47b6056faf52ddc5722954 | |
| parent | efb2e50d368ff5becb596f5a431c1249c38181ba (diff) | |
| download | egit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.tar.gz egit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.tar.xz egit-github-c839cbb69409cc2d9a3d76fd014211c0d4f3cff9.zip | |
Add gist query constants
Change-Id: If5a27e4eecd18e0ddbf10b0026d2a3607ad3b8ca
Signed-off-by: Kevin Sawicki <kevin@github.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
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 c6eab623..4cb55132 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 4b2a2b57..c962d72e 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 00000000..fd0d1e67 --- /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$ + +} |
