KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > model > provisional > IModelSelectionPolicyFactory


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.viewers.model.provisional;
12
13
14 /**
15  * A model selection policy factory creates a model selection policy for an element based on
16  * a specific presentation context. A model selection policy factory is provided for
17  * a model element by registering a model selection policy factory adapter for
18  * an element.
19  * <p>
20  * Clients may implement this interface.
21  * </p>
22  * @see IModelSelectionPolicy
23  * @since 3.2
24  */

25 public interface IModelSelectionPolicyFactory {
26     /**
27      * Creates and returns a model selection policy for the given element in the specified
28      * context or <code>null</code> if none.
29      *
30      * @param element model element to create a selection policy for
31      * @param context presentation context
32      * @return model selection policy or <code>null</code>
33      */

34     public IModelSelectionPolicy createModelSelectionPolicyAdapter(Object JavaDoc element, IPresentationContext context);
35 }
36
Popular Tags