Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-10-26 05:43:16 -0400
committerThomas Wolf2019-10-26 05:43:16 -0400
commitd844df59a85500dd989523f04ebdfecdfc4c2414 (patch)
tree0276c86a89e62d6c08ce0f3cd7568705f6d3ce64
parent67a046c5e80a572f663a79fcb8c33098e75eb8d9 (diff)
downloadegit-d844df59a85500dd989523f04ebdfecdfc4c2414.tar.gz
egit-d844df59a85500dd989523f04ebdfecdfc4c2414.tar.xz
egit-d844df59a85500dd989523f04ebdfecdfc4c2414.zip
DeleteRepositoryConfirmDialog: use styled labels
Change-Id: I8e0dfeebaaa29bffb15b9ccf1c637b868d425c4b Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
index d2d8efced..d5cf622b7 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/command/DeleteRepositoryConfirmDialog.java
@@ -24,6 +24,7 @@ import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.viewers.ArrayContentProvider;
+import org.eclipse.jface.viewers.DecoratingStyledCellLabelProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.osgi.util.NLS;
@@ -36,6 +37,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.model.WorkbenchLabelProvider;
/**
@@ -132,8 +134,12 @@ public class DeleteRepositoryConfirmDialog extends TitleAreaDialog {
.hint(SWT.DEFAULT, 100)
.applyTo(projectsViewer.getControl());
- projectsViewer.setLabelProvider(WorkbenchLabelProvider
- .getDecoratingWorkbenchLabelProvider());
+ projectsViewer
+ .setLabelProvider(new DecoratingStyledCellLabelProvider(
+ new WorkbenchLabelProvider(),
+ PlatformUI.getWorkbench().getDecoratorManager()
+ .getLabelDecorator(),
+ null));
projectsViewer.setContentProvider(ArrayContentProvider.getInstance());
projectsViewer.setInput(projectsToDelete);
} else

Back to the top