All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jface.viewers.IIndexableLazyContentProvider Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2008, 2015 Peter Centgraf 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:
 *     Peter Centgraf - initial API and implementation (bug 251575)
 *******************************************************************************/
package org.eclipse.jface.viewers;

/**
 * Adds efficient element indexing support to ILazyContentProvider.
 *
 * @since 3.5
 */
public interface IIndexableLazyContentProvider extends ILazyContentProvider {
	/**
	 * Find the row index of the parameter element in the set of contents provided
	 * by this object.  Under normal usage, this method will only be used to
	 * implement StructuredViewer#setSelection(ISelection) more
	 * efficiently.
	 *
	 * @param element the element to find within the contents served here
	 * @return the zero-based index of the element, or -1 if the element is not found
	 */
	public int findElement(Object element);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy