summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-25 12:49:58 (EDT)
committer Kevin Sawicki2011-04-25 12:49:58 (EDT)
commit3a75cfd94b7cd647d6e7bd079e484ceeddc4e233 (patch)
tree3c7af539d244d7cd625c83738c7375fec6674393
parent77072b9716fc10a1003f0b10398f0a1eeb328747 (diff)
downloadegit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.zip
egit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.tar.gz
egit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.tar.bz2
Properly initialize assignee and mention text widgets. refs/changes/39/3239/1
Change-Id: I8f727e260830601d4fe542ee8a96cd8db9c19370 Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java10
1 files changed, 9 insertions, 1 deletions
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 c6d5a37..090423d 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);