content: /**
   *  Copyright (c) 2013-2014 Angelo ZERR.
   *  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:
   *  Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
   */
  package org.eclipse.angularjs.internal.ui.outline;
  
  import org.eclipse.jface.viewers.IContentProvider;
  import org.eclipse.jface.viewers.TreeViewer;
  import org.eclipse.jface.viewers.Viewer;
  import org.eclipse.wst.html.ui.views.contentoutline.HTMLContentOutlineConfiguration;
  import org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeContentProvider;
  
  public class AngularContentOutlineConfiguration extends
  		HTMLContentOutlineConfiguration {
  
  	private IContentProvider fContentProviderHTML;
  
  	public IContentProvider getContentProvider(final TreeViewer viewer) {
  		if (fContentProviderHTML == null) {
  			fContentProviderHTML = new JFaceNodeContentProvider() {
  				public Object[] getElements(Object object) {
  					return super.getElements(object);
  				}
  
  				@Override
  				public void inputChanged(Viewer viewer, Object oldInput,
  						Object newInput) {
  					super.inputChanged(viewer, oldInput, newInput);
  				}
  			};
  		}
  		viewer.setContentProvider(fContentProviderHTML);
  		return viewer.getContentProvider();
  	}
  }
  