summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-12 22:53:16 (EDT)
committerKevin Sawicki2011-04-12 22:53:16 (EDT)
commit23263de1542cdb0b1ad228b6c04ca5ea7446d959 (patch)
tree110e63c74234ab1a9193efe22dcc623b8743c4be
parenta7917108a61b9cedd4958614a8a4efe3de12e607 (diff)
downloadegit-github-23263de1542cdb0b1ad228b6c04ca5ea7446d959.zip
egit-github-23263de1542cdb0b1ad228b6c04ca5ea7446d959.tar.gz
egit-github-23263de1542cdb0b1ad228b6c04ca5ea7446d959.tar.bz2
Display labels icon in issue query pagerefs/changes/91/3091/2
Change-Id: Ie08c848e0f439ca630c94bf960353dcf769f6dbe Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/GitHubRepositoryQueryPage.java7
1 files changed, 6 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 3a66451..407030b 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
@@ -44,6 +44,7 @@ import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
@@ -103,7 +104,7 @@ public class GitHubRepositoryQueryPage extends AbstractRepositoryQueryPage {
labelsViewer = CheckboxTableViewer.newCheckList(labelsArea, SWT.BORDER
| SWT.V_SCROLL | SWT.H_SCROLL);
- GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 80)
+ GridDataFactory.fillDefaults().grab(true, true).hint(100, 80)
.applyTo(labelsViewer.getControl());
labelsViewer.setContentProvider(ArrayContentProvider.getInstance());
labelsViewer.setLabelProvider(new LabelProvider() {
@@ -113,6 +114,10 @@ public class GitHubRepositoryQueryPage extends AbstractRepositoryQueryPage {
.getName();
}
+ public Image getImage(Object element) {
+ return GitHubImages.get(GitHubImages.GITHUB_ISSUE_LABEL_OBJ);
+ }
+
});
labelsViewer
.addSelectionChangedListener(new ISelectionChangedListener() {