1 /******************************************************************************* 2 * Copyright (c) 2003, 2004 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Common Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/cpl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.core.internal.dependencies; 12 13 import java.util.Set; 14 15 /** 16 * A policy that determines which elements from an element set will be picked during 17 * the selection stage. 18 * <p> 19 * Clients may implement. 20 * </p> 21 */ 22 public interface ISelectionPolicy { 23 /** 24 * Returns a set containing the selected elements for the given element set. 25 */ 26 public Set selectMultiple(ElementSet elementSet); 27 28 /** 29 * Returns the selected element for the given element set. 30 */ 31 public Element selectSingle(ElementSet elementSet); 32 }