Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-25 16:49:58 +0000
committerKevin Sawicki2011-04-25 16:49:58 +0000
commit3a75cfd94b7cd647d6e7bd079e484ceeddc4e233 (patch)
tree3c7af539d244d7cd625c83738c7375fec6674393
parent77072b9716fc10a1003f0b10398f0a1eeb328747 (diff)
downloadegit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.tar.gz
egit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.tar.xz
egit-github-3a75cfd94b7cd647d6e7bd079e484ceeddc4e233.zip
Properly initialize assignee and mention text widgets.
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 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);

Back to the top