diff options
| author | Kevin Sawicki | 2011-04-12 16:01:10 +0000 |
|---|---|---|
| committer | Chris Aniszczyk | 2011-04-12 18:16:45 +0000 |
| commit | a7917108a61b9cedd4958614a8a4efe3de12e607 (patch) | |
| tree | dbea4f05341d4202123be9344956abcf553fcd41 | |
| parent | dd2d9f5f086ccdf96138f357e70e7cdac8303156 (diff) | |
| download | egit-github-a7917108a61b9cedd4958614a8a4efe3de12e607.tar.gz egit-github-a7917108a61b9cedd4958614a8a4efe3de12e607.tar.xz egit-github-a7917108a61b9cedd4958614a8a4efe3de12e607.zip | |
Initialize milestone combo with current query value
Change-Id: Ibab2f9550988ca9577c7cee7791d1a6f514afb09
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/GitHubRepositoryQueryPage.java | 14 |
1 files changed, 14 insertions, 0 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 48ed47fc..3a664511 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 @@ -206,6 +206,20 @@ public class GitHubRepositoryQueryPage extends AbstractRepositoryQueryPage { if (query == null) return; + String milestoneNumber = query + .getAttribute(IssueService.FILTER_MILESTONE); + if (milestoneNumber != null && this.milestones != null) { + int index = 0; + for (Milestone milestone : this.milestones) { + index++; + if (milestoneNumber.equals(Integer.toString(milestone + .getNumber()))) { + this.milestoneCombo.select(index); + break; + } + } + } + titleText.setText(query.getSummary()); labelsViewer.setCheckedElements(QueryUtils.getAttributes( IssueService.FILTER_LABELS, query).toArray()); |
