Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-06-05 16:36:53 +0000
committerLars Vogel2020-06-10 14:58:43 +0000
commit3cc3ec95a63f5575037c05990df7384001ce4be6 (patch)
treec196d2737096182132f22f4b135f4d55671a0207 /org.eclipse.debug.ui/ui/org
parente0e23692a403dfb467b83400f7729f3e490385c6 (diff)
downloadeclipse.platform.debug-3cc3ec95a63f5575037c05990df7384001ce4be6.tar.gz
eclipse.platform.debug-3cc3ec95a63f5575037c05990df7384001ce4be6.tar.xz
eclipse.platform.debug-3cc3ec95a63f5575037c05990df7384001ce4be6.zip
Bug 564063 - AbstractDebugSelectionDialog can use ArrayContentProvider.getInstance()
ArrayContentProvider does not hold any data, so sharing the instance is fine. Change-Id: Ica87c3baf7cbdaa3c88ea2a7142cac1b679e2fa3 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/AbstractDebugSelectionDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/AbstractDebugSelectionDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/AbstractDebugSelectionDialog.java
index 14af78526..d31bf634c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/AbstractDebugSelectionDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/AbstractDebugSelectionDialog.java
@@ -88,7 +88,7 @@ public abstract class AbstractDebugSelectionDialog extends SelectionDialog {
*/
protected IContentProvider getContentProvider() {
//by default return a simple array content provider
- return new ArrayContentProvider();
+ return ArrayContentProvider.getInstance();
}
/**

Back to the top