From 3a75cfd94b7cd647d6e7bd079e484ceeddc4e233 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 25 Apr 2011 09:49:58 -0700 Subject: Properly initialize assignee and mention text widgets. Change-Id: I8f727e260830601d4fe542ee8a96cd8db9c19370 Signed-off-by: Kevin Sawicki --- .../mylyn/github/ui/internal/GitHubRepositoryQueryPage.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java index c6d5a374..090423d3 100644 --- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java +++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java @@ -228,6 +228,14 @@ public class GitHubRepositoryQueryPage extends AbstractRepositoryQueryPage { IssueService.FILTER_STATE, query); closedButton.setSelection(status.contains(IssueService.STATE_CLOSED)); openButton.setSelection(status.contains(IssueService.STATE_OPEN)); + + String assignee = query.getAttribute(IssueService.FILTER_ASSIGNEE); + if (assignee != null) + assigneeText.setText(assignee); + + String mentioning = query.getAttribute(IssueService.FILTER_MENTIONED); + if (mentioning != null) + mentionText.setText(mentioning); } private boolean updateLabels() { @@ -369,7 +377,7 @@ public class GitHubRepositoryQueryPage extends AbstractRepositoryQueryPage { query.setAttribute(IssueService.FILTER_ASSIGNEE, null); String mentions = this.mentionText.getText().trim(); - if (assignee.length() > 0) + if (mentions.length() > 0) query.setAttribute(IssueService.FILTER_MENTIONED, mentions); else query.setAttribute(IssueService.FILTER_MENTIONED, null); -- cgit v1.2.3