Bug 249378 [Viewers] Make ArrayContentProvider a singleton
ArrayContentProvider contains zero state, and is not intended to be subclassed. Adding a static getter class to allow sharing a single instance of the ArrayContentProvider will improve performance and reduce memory usage.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ArrayContentProvider.java
/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.viewers;
import java.util.Collection;
/**
 * This implementation of <code>IStructuredContentProvider</code> handles
 * the case where the viewer input is an unchanging array or collection of elements.
 * <p>
 * This class is not intended to be subclassed outside the viewer framework.
 * </p> 
 * 
 * @since 2.1
 * @noextend This class is not intended to be subclassed by clients.
 */
public class ArrayContentProvider implements IStructuredContentProvider {