Edit enumerated types to add, remove
or rename values in existing enumerated types, or to rename an enumerated
type. You can edit an existing user-generated enumerated type to add,
remove, or change values and display names within the enumerated type,
or to change the name of the enumerated type.
Before you begin
Complete
the following tasks:
About this task
As part of the pattern authoring process, target properties
that use a list of values have enumerated types automatically created
for them. You can remove values from this automatically generated
list or regenerate the original list of values, but you cannot add
new values or edit existing values.
You can duplicate or remove
user-generated enumerated types and enumerated types created from
target properties.
For enumerated types that you create, you
can add, remove, and edit values.
Procedure
To edit enumerated types:
- In the Pattern Authoring editor, click the Pattern
Configuration tab. Click Enumerated
Types. The Configure Enumerated Types window
opens.
- In the Enumerated type field, select
the enumerated type to edit.
- You can make the following changes to user-generated
enumerated types:
- Rename the enumerated type. To rename the enumerated type,
click Rename. The Rename Enumeration window
opens. Enter a name for the enumeration and click OK.
The Rename Enumeration window closes.
- Add new values. To add a new value, click the Add button
that is next to the table of values. A new value and display name
are added to the table.
- Remove values. To remove a value, select the value to remove
and click the Remove button that is next to
the table of values. The value is removed from the table.
If a value is the only entry in the table, you cannot
remove it.
- Change existing values and display names. To edit a value
or display name, double-click the value or display name in the table.
Type a new entry and then press Enter to save the new display name
or value.
- Duplicate the enumerated type. To duplicate an enumerated
type, click Duplicate. The duplicate enumerated
type is displayed. The name of the duplicate enumerated type is the
same as the original, but with _1 added
to the end.
- Remove the enumerated type. To remove an enumerated type,
click Remove. The enumerated type is removed.
If an enumerated type is being used by a pattern
parameter it cannot be removed. You can check if an enumerated type
is being used by a parameter in the This enumerated type
is used by the following parameter field. To modify a
parameter so that it does not use an enumerated type, see Defining the user interface.
- You can make the following changes to enumerated
types that are created from target properties:
- Rename the enumerated type. To rename the enumerated type,
click Rename. The Rename Enumeration window
opens. Enter a name for the enumeration and click OK.
The Rename Enumeration window closes.
- Remove values. To remove a value, select the value to remove
and click the Remove button that is next to
the table of values. The value is removed from the table.
If a value is the only entry in the table, you cannot
remove it.
- Reset the original values. To restore values you have removed
from the list, click Reset Values. The original
list is displayed.
- Duplicate the enumerated type. To duplicate an enumerated
type, click Duplicate. The duplicate enumerated
type is displayed. The name of the duplicate enumerated type is the
same as the original, but with _1 added
to the end.
- Remove the enumerated type. To remove an enumerated type,
click Remove. The enumerated type is removed.
If an enumerated type is being used by a pattern
parameter it cannot be removed. You can see if an enumerated type
is being used by a parameter in the This enumerated type
is used by the following parameter field. To modify a
parameter so that it does not use an enumerated type, see Defining the user interface.
- Repeat the tasks in steps 3 and 4 until your changes are complete. Click OK.
The Configure Enumerated Types window
closes.
What to do next
You can now build your pattern; see Building pattern plug-ins.