Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6ada40092d4c338957a8e4e2289190421b346395 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2006, 2007 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.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 IModelSelectionPolicyFactory {
	/**
	 * 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>
	 */
	IModelSelectionPolicy createModelSelectionPolicyAdapter(Object element, IPresentationContext context);
}

Back to the top