Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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 /
 
 package org.eclipse.xtext.ui.search;
 
import  org.eclipse.jface.viewers.ILazyContentProvider;
import  org.eclipse.jface.viewers.TableViewer;
import  org.eclipse.jface.viewers.Viewer;

Author(s):
Jan Koehnlein - Initial contribution and API
public class EObjectDescriptionContentProvider implements ILazyContentProvider {
	private int currentCount;
	private TableViewer viewer;
	public void dispose() {
		 = null;
		 = null;
	}
	@SuppressWarnings("unchecked")
	public void inputChanged(Viewer viewerObject oldInputObject newInput) {
		this. = (TableViewer) viewer;
		if (newInput instanceof Iterable<?>) {
			viewer.refresh();
		}
	}
	public void updateElement(int index) {
		if (index < ) {
		}
		for (; index >  && .hasNext(); ++) {
		}
			.replace(.next(), index);
		}
	}
	private void reset() {
	}
New to GrepCode? Check out our FAQ X