blob: 71f7d2b47f025c89998caff83b3fc63e57bdb7a3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 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.debug.internal.ui.viewers.provisional;
/**
* A model selection policy factory creates a model selection policy for an element based on
* a specific presentation context. A model selection policy factory is provided for
* a model element by registering a model selection policy factory adapter for
* an element.
* <p>
* Clients may implement this interface.
* </p>
* @see IModelSelectionPolicy
* @since 3.2
*/
public interface IModelSelectionPolicyFactoryAdapter {
/**
* Creates and returns a model selection policy for the given element in the specified
* context or <code>null</code> if none.
*
* @param element model element to create a selection policy for
* @param context presentation context
* @return model selection policy or <code>null</code>
*/
public IModelSelectionPolicy createModelSelectionPolicyAdapter(Object element, IPresentationContext context);
}