summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-12 15:04:43 (EDT)
committerChris Aniszczyk2011-04-12 22:55:58 (EDT)
commit3f9c2502fd7cf0161f73d445910b0d5ba5067ef8 (patch)
tree0c89b627b57715d646d21feb171f9934506feb8b
parentc3097d3e73ca2c1944deea5e01b552ca0453bff5 (diff)
downloadegit-github-3f9c2502fd7cf0161f73d445910b0d5ba5067ef8.zip
egit-github-3f9c2502fd7cf0161f73d445910b0d5ba5067ef8.tar.gz
egit-github-3f9c2502fd7cf0161f73d445910b0d5ba5067ef8.tar.bz2
Add search page support for issuesrefs/changes/25/3025/3
Change-Id: Ie83c01716729fb43f0b586327b954085a31fd3c8 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/GitHubRepositoryConnectorUI.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryConnectorUI.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryConnectorUI.java
index cf97d5c..5791976 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryConnectorUI.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryConnectorUI.java
@@ -20,6 +20,7 @@ import java.util.regex.Pattern;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.jface.text.hyperlink.URLHyperlink;
+import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.mylyn.github.internal.GitHub;
import org.eclipse.mylyn.github.internal.GitHubRepositoryConnector;
@@ -31,6 +32,7 @@ import org.eclipse.mylyn.tasks.ui.TaskHyperlink;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage;
import org.eclipse.mylyn.tasks.ui.wizards.ITaskRepositoryPage;
+import org.eclipse.mylyn.tasks.ui.wizards.ITaskSearchPage;
import org.eclipse.mylyn.tasks.ui.wizards.NewTaskWizard;
import org.eclipse.mylyn.tasks.ui.wizards.RepositoryQueryWizard;
@@ -155,4 +157,14 @@ public class GitHubRepositoryConnectorUI extends AbstractRepositoryConnectorUi {
private Region createRegion(int textOffset, Matcher matcher) {
return new Region(matcher.start()+textOffset,matcher.end()-matcher.start());
}
+
+ /**
+ * @see org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi#getSearchPage(org.eclipse.mylyn.tasks.core.TaskRepository,
+ * org.eclipse.jface.viewers.IStructuredSelection)
+ */
+ public ITaskSearchPage getSearchPage(TaskRepository repository,
+ IStructuredSelection selection) {
+ return new GitHubRepositoryQueryPage(repository, null);
+ }
+
}