1 /******************************************************************************* 2 * Copyright (c) 2005, 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 * A model proxy factory creates model proxies for elements based on 15 * specific presentation contexts. A model proxy factory is provided for 16 * a model element by registering a model proxy factory adapter for 17 * an element. 18 * <p> 19 * Clients may implement this interface. 20 * </p> 21 * @see IModelProxy 22 * @see IModelDelta 23 * @since 3.2 24 */ 25 public interface IModelProxyFactory { 26 /** 27 * Creates and returns a model proxy for the given element in the specified 28 * context or <code>null</code> if none. 29 * 30 * @param element model element to create a model proxy for 31 * @param context presentation context 32 * @return model proxy or <code>null</code> 33 */ 34 public IModelProxy createModelProxy(Object element, IPresentationContext context); 35 } 36