Table of Contents

  1. Loading FacetSets
  2. Loading Customizations
  3. Adding Columns
    1. Hierarchical FacetSets
    2. Aggregates

Loading FacetSets

You can load FacetSets in a table. These FacetSets will be used in the override resolution process for Facet elements, but will not automatically add columns for all the Facet elements defined in the loaded FacetSets. If you want to add columns, see Adding Columns.

To load FacetSets, click on the Load FacetSets action in the toolbar:

Then select the FacetSets you want to load in the dialog, and click OK:

If you unload FacetSets that contain attributes, references or operations that are currently displayed as columns in the table, then these columns will be deleted (a warning dialog will ask you if you want to proceed anyway).

Loading Customizations

You can load customizations in a table to customize the way the elements and table headers are displayed.

To load a customization, click on Load Customizations in the toolbar:

In the dialog that opens, move the customizations you want to load from the left pane to the right pane, and then click OK. You can use the filter text field to narrow down the list of available customizations. The customization in the right pane that appears grayed out is called the local customization. It represents customizations that you applied implicitly by for example hiding columns.

Adding Columns

To add columns to the table, you can either click on Add Columns in the table editor's or view's toolbar:

Or right-click in a table and choose Add Columns from the contextual menu:

A dialog will open to let you choose an ETypedElement. The ETypedElement must be either:

You can use the text filter to narrow down the list, and choose an element from the right EClass or Facet:

A new column will be added to the table to display the value of this ETypedElement for each row. If the ETypedElement cannot be evaluated for any of the elements currently in the table, then the column won't appear.

Hierarchical FacetSets

This screenshot shows how hierarchical FacetSets are represented: the org.eclipse.emf.facet.efacet.examples.library.core.facet FacetSet contains two FacetSets: writer and book:

Aggregates

This screenshot shows how aggregates are represented in this dialog: the org.eclipse.emf.facet.efacet.examples.library.core.aggregate FacetSet is an Aggregate that aggregates org.eclipse.emf.facet.efacet.examples.library.core.facet and org.eclipse.emf.facet.efacet.examples.library.core.custom: