Table of Contents

Enum Context

Namespace
TabularEditor.Shared.Interaction
Assembly
TabularEditor3.Shared.dll

Determines the context of the current selection in the Explorer Tree. Only one of the contexts can be selected at a time. For example, it is not possible to simultaneously select a table and a data source. Objects inside tables (columns, measures, hierarchies, folders) may be simultaneously selected, and therefore the context when one or more of these objects are selected is simply "TableObject".

While a given selection in the Explorer Tree can only have one context, it is possible for context menu items to be visible under several contexts, which is why the enum is treated as Flags.

[Flags]
public enum Context
Extension Methods

Fields

Name Description
CalculationGroupTable

Context menu for a calculation group

CalculationItem

Context menu for a calculation item

CalculationItemCollection

Context menu for a calculation item collection

Clonable
Column

Context menu opened on one or more columns (or on a display folder containing columns)

DataObjects
DataSource

Context menu opened on one or more data sources

DataSources

Context menu opened on the "Data Sources" group node

Everywhere
Expression

Context menu for a shared expression

Expressions

Context menu opened on the "Shared Expressions" group node

Groups
Hierarchy

Context menu opened on one or more hierarchies (or on a display folder containing hierarchies)

KPI

Context menu opened on a KPI object

Level

Context menu opened on one or more hierarchy levels

Measure

Context menu opened on one or more measures (or on a display folder containing measures)

Model

Context menu opened on Model node

None

Nothing selected in the tree

Partition

Context menu opened on one or more table partitions

PartitionCollection

Context menu opened on the "Partitions" node

Perspective

Context menu opened on one or more perspectives

Perspectives

Context menu opened on the "Perspectives" group node

Relationship

Context menu opened on one or more relationships

Relationships

Context menu opened on the "Relationships" group node

Role

Context menu opened on one or more roles

Roles

Context menu opened on the "Roles" group node

Scriptable
SingularObjects
Table

Context menu opened on one or more tables

TableObject
TableOrCG
TablePermission

Context menu opened on a Table Permission

Tables

Context menu opened on the "Tables" group node

Tool

Special context for actions that can be executed regardless of the current selection, but where the action should show up in the "Tools" menu only.

Translation

Context menu opened on one or more cultures

Translations

Context menu opened on the "Translations" group node