1 /******************************************************************************* 2 * Copyright (c) 2006 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.provisional; 12 13 /** 14 * An adapter used to column editors. Used in conjunction with a column presentation. 15 * 16 * @since 3.2 17 */ 18 public interface IColumnEditorFactoryAdapter { 19 20 /** 21 * Constructs and returns the column editor for the given presentation 22 * context (view) and element, or <code>null</code> of none. 23 * 24 * @param context presentation context 25 * @param element the element 26 * @return column editor or <code>null</code> 27 */ 28 public IColumnEditor createColumnEditor(IPresentationContext context, Object element); 29 30 /** 31 * Returns the type of column editor to be used for the given context and object 32 * or <code>null</code> if none. Allows a previous column editor to be re-used if 33 * it has not changed type. 34 * 35 * @param context presentation context 36 * @param element element 37 * @return column editor id or <code>null</code> 38 */ 39 public String getColumnEditorId(IPresentationContext context, Object element); 40 } 41