Skip to content

Package: ConfigurationCallback

ConfigurationCallback

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2017 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Mat Hansen - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.swt.table;
15:
16: import org.eclipse.jface.viewers.AbstractTableViewer;
17: import org.eclipse.jface.viewers.ViewerColumn;
18:
19: /**
20: * Interface for ConfigurationCallbacks.
21: *
22: * @author Mat Hansen <mhansen@eclipsesource.com>
23: *
24: * @param <V> the TableViewer implementation to use
25: * @param <C> the {@link ViewerColumn} implementation to use
26: */
27: public interface ConfigurationCallback<V extends AbstractTableViewer, C extends ViewerColumn> {
28:
29:         /**
30:          * Setup a custom configuration for the given viewer.
31:          *
32:          * @param config the {@link ColumnConfiguration}
33:          * @param tableViewer the table viewer
34:          * @param viewerColumn the viewer column
35:          */
36:         void configure(ColumnConfiguration config, V tableViewer, C viewerColumn);
37:
38: }