Skip to main content
Version: 4.20.x.x Java 8 ELS

Labeling Patterns

You can assign labels to patterns and group the patterns based on the labels. This allows you to better manage and organize your patterns. The labels are stored as part of the patterns.

Creating a Label

You can label either a single pattern or multiple ones, by using batch actions.

note

Only one label can be assigned to a pattern at a time.

Labeling a single pattern:

  1. Choose an unlabeled pattern.
  2. Click on the overflow icon in the top right corner of the Pattern Editor.
  3. Select/hover on the Label Pattern action from the overflow menu.
  4. Create a new label or select an existing one from the list.
  5. The label is assigned and stored to the selected pattern.

Labeling multiple patterns in batch:

  1. Select multiple unlabeled patterns.
  2. Open the batch actions menu.
  3. Select/hover on the Label selected as action.
  4. Create a new label or select an existing one from the list.
  5. The label is assigned and stored to the selected patterns.

The following movies show how to create labels:

How to create labels for a single patternHow to create labels for multiple patterns in batch

Viewing a Label

There are 3 ways to view a label:

  1. By hovering on the label icon next to the pattern name in the Pattern Editor.
  2. By switching to the Label view. This option is described in the section Group Patterns by Label further below.
  3. Inside the pattern reference property when the labelled pattern is selected.

Editing a Label

You cannot edit the label but remove and re-assign a new label.

Removing a Label

You can remove a label either from a single label, or from multiple patterns in batch.

Remove a label from a single pattern:

  1. Select the labelled pattern.
  2. Click on the overflow icon in the top right corner of the Pattern Editor.
  3. Select/hover on the Label Pattern action from the overflow menu.
  4. Click on Remove label.
  5. The label is removed from the selected pattern.

Remove a label from multiple patterns:

  1. Select the labelled patterns.
  2. Open the batch actions menu.
  3. Select/hover on the Label selected as action.
  4. Click on Remove label.
  5. The label is removed from the selected patterns.

The following movies show how to remove a label:

How to remove labels from a single patternHow to remove labels from multiple patterns

Group Patterns by Label

After you label the patterns, you can group them based on the labels. Take the following steps:

  1. Label the patterns.
  2. Select the Label option in the Group by function.
  3. Patterns are grouped by their assigned labels. Unlabeled patterns are listed in the Unlabeled patternsgroup.

The label groups can be expanded or collapsed. Note that batch actions only apply to the patterns inside an expanded label group.

If you want to select all patterns inside one or more label groups at once, expand these label groups and make sure to collapse the other groups. Then click the Select all icon.

The sorting inside each label group happens independently. For example, if you have chosen to sort the patterns alphabetically in the Sort by menu, the patterns inside each label group are also sorted alphabetically. However, the sorting starts all over for each label group.

The following movie shows how to view patterns based on the labels:

How to view the patterns based on label groups