Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: de23f1f766bd23a78c09caa757272f285ddfcee0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                
                                                 

                                                                        
                                                           
                                            



                                                                                 
                                              
 
   








                                                                        


                                     







                                                                                   
                                                                                          
 
/*******************************************************************************
 * Copyright (c) 2005 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;

/**
 * A model proxy factory creates model proxies for elements based on 
 * specific presentation contexts. A model proxy factory is provided for
 * a model element by registering a model proxy factory adapter for
 * an element.
 * <p>
 * Clients may implement this interface.
 * </p>
 * @see IModelProxy
 * @see IModelDelta
 * @since 3.2
 */
public interface IModelProxyFactory {
	/**
	 * Creates and returns a model proxy for the given element in the specified
	 * context or <code>null</code> if none.
	 * 
	 * @param element model element to create a model proxy for
	 * @param context presentation context
	 * @return model proxy or <code>null</code>
	 */
	public IModelProxy createModelProxy(Object element, IPresentationContext context);
}

Back to the top