Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2014-02-17 23:30:51 +0000
committerGerrit Code Review @ Eclipse.org2014-02-18 00:03:15 +0000
commit054c23fa680f684ed215450395bc04b42a31f624 (patch)
treed7b3640d4c33524ffe409c9eca17ac9d33f8b659
parent4174196b0241970994352ba203b437a80783a7f8 (diff)
downloadorg.eclipse.mylyn.tasks-054c23fa680f684ed215450395bc04b42a31f624.tar.gz
org.eclipse.mylyn.tasks-054c23fa680f684ed215450395bc04b42a31f624.tar.xz
org.eclipse.mylyn.tasks-054c23fa680f684ed215450395bc04b42a31f624.zip
use DecoratingLabelProvider in repositories page
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryConnectorPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryConnectorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryConnectorPage.java
index c71f0fe0b..3913d5c5a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryConnectorPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryConnectorPage.java
@@ -20,6 +20,7 @@ import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
+import org.eclipse.jface.viewers.DecoratingLabelProvider;
import org.eclipse.jface.viewers.IOpenListener;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
@@ -93,7 +94,8 @@ public class SelectRepositoryConnectorPage extends WizardPage {
viewer = new TableViewer(container, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
viewer.setContentProvider(new RepositoryContentProvider());
viewer.setSorter(new TaskRepositoriesSorter());
- viewer.setLabelProvider(new TaskRepositoryLabelProvider());
+ viewer.setLabelProvider(new DecoratingLabelProvider(new TaskRepositoryLabelProvider(),
+ PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));
viewer.setInput(TasksUi.getRepositoryManager().getRepositoryConnectors());
viewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {

Back to the top