summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-03-25 16:59:14 (EDT)
committerChris Aniszczyk2011-03-30 18:04:50 (EDT)
commit9cde2af6d453089109be5fc42ac40b1c3559b312 (patch)
tree60688236a89eb249452beb6b3b230d0c6027013c
parent9a015d867d44fe087d319c46a9dc73bc9c70cad1 (diff)
downloadegit-github-9cde2af6d453089109be5fc42ac40b1c3559b312.zip
egit-github-9cde2af6d453089109be5fc42ac40b1c3559b312.tar.gz
egit-github-9cde2af6d453089109be5fc42ac40b1c3559b312.tar.bz2
Set GitHub task repository category property to bugsrefs/changes/33/2933/2
Bug: 341004 Change-Id: I80f6807cec4f1e4c6622b66c126c57ca42ec62ef Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositorySettingsPage.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositorySettingsPage.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositorySettingsPage.java
index d2b4187..a6f5c80 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositorySettingsPage.java
@@ -25,6 +25,7 @@ import org.eclipse.mylyn.github.internal.GitHub;
import org.eclipse.mylyn.github.internal.GitHubCredentials;
import org.eclipse.mylyn.github.internal.GitHubService;
import org.eclipse.mylyn.github.internal.GitHubServiceException;
+import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage;
import org.eclipse.swt.graphics.Point;
@@ -147,4 +148,13 @@ public class GitHubRepositorySettingsPage extends
return false;
}
+ /**
+ * @see org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage#applyTo(org.eclipse.mylyn.tasks.core.TaskRepository)
+ */
+ public void applyTo(TaskRepository repository) {
+ repository.setProperty(IRepositoryConstants.PROPERTY_CATEGORY,
+ IRepositoryConstants.CATEGORY_BUGS);
+ super.applyTo(repository);
+ }
+
}