org.eclipse.emf.ecp.view.internal.table.generator
Class TableColumnGenerator

java.lang.Object
  extended by org.eclipse.emf.ecp.view.internal.table.generator.TableColumnGenerator

public final class TableColumnGenerator
extends Object

Helper class to generate VTableColumnConfigurations for a VTableControl.

Author:
jfaltermeier

Method Summary
static void addColumn(org.eclipse.emf.ecore.EAttribute attribute, VTableControl vTableControl)
          Generates a column for the given EAttribute and adds it to the VTableControl.
static void generateColumns(org.eclipse.emf.ecore.EClass clazz, VTableControl vTableControl)
          Generates columns for every EAttribute of the given EClass and adds them to the VTableControl.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateColumns

public static void generateColumns(org.eclipse.emf.ecore.EClass clazz,
                                   VTableControl vTableControl)
Generates columns for every EAttribute of the given EClass and adds them to the VTableControl.

Parameters:
clazz - the EClass to use
vTableControl - the table control to use

addColumn

public static void addColumn(org.eclipse.emf.ecore.EAttribute attribute,
                             VTableControl vTableControl)
Generates a column for the given EAttribute and adds it to the VTableControl.

Parameters:
attribute - the attribute to use
vTableControl - the table control to use


Copyright © 2014. All Rights Reserved.