Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-06-05 16:23:53 +0000
committerAlexander Kurtakov2020-06-09 09:02:01 +0000
commit582cca204860d21a5e4de540033d08dbcc1ce9a6 (patch)
tree017b6ba831ce706ce8fdeb539fe0e13c061ac6cb
parentcd3e91969171270ea6741dd273545bb9f6539744 (diff)
downloadeclipse.platform.ua-582cca204860d21a5e4de540033d08dbcc1ce9a6.tar.gz
eclipse.platform.ua-582cca204860d21a5e4de540033d08dbcc1ce9a6.tar.xz
eclipse.platform.ua-582cca204860d21a5e4de540033d08dbcc1ce9a6.zip
Bug 564063 - Using ArrayContentProvider.getInstance() instead of new instance
ArrayContentProvider does not hold any data, hence it can be shared across instances. Change-Id: Ic87d5a396e909dc09962b0abba63f693a22ec991 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.intro.quicklinks/src/org/eclipse/ui/intro/quicklinks/QuicklinksViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.ui.intro.quicklinks/src/org/eclipse/ui/intro/quicklinks/QuicklinksViewer.java b/org.eclipse.ui.intro.quicklinks/src/org/eclipse/ui/intro/quicklinks/QuicklinksViewer.java
index 2b025fc8c..eb726a048 100644
--- a/org.eclipse.ui.intro.quicklinks/src/org/eclipse/ui/intro/quicklinks/QuicklinksViewer.java
+++ b/org.eclipse.ui.intro.quicklinks/src/org/eclipse/ui/intro/quicklinks/QuicklinksViewer.java
@@ -486,7 +486,7 @@ public class QuicklinksViewer implements IIntroContentProvider {
return super.getImage(element);
}
});
- tableViewer.setContentProvider(new ArrayContentProvider());
+ tableViewer.setContentProvider(ArrayContentProvider.getInstance());
tableViewer.setInput(getQuicklinks().toArray());
}

Back to the top