blob: 95d2b35442e95432b8436741cadd420df894c337 (
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
39
40
41
42
43
44
|
/*******************************************************************************
* 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;
/**
* An adapter used to create column presentations.
*
* @see IColumnPresentation
* @since 3.2
*/
public interface IColumnPresentationFactory {
/**
* Constructs and returns the column presentation for the given presentation
* context (view) and input element, or <code>null</code> of none.
*
* @param context presentation context
* @param element the input element
* @return column presentation or <code>null</code>
*/
IColumnPresentation createColumnPresentation(IPresentationContext context, Object element);
/**
* Returns the type of column presentation to be used for the given context and object
* or <code>null</code> if none. Allows a previous column presentation to be re-used if
* it has not changed type.
*
* @param context presentation context
* @param element input element
* @return column presentation id or <code>null</code>
*/
String getColumnPresentationId(IPresentationContext context, Object element);
}
|