You use the General page of the New
Pattern wizard to supply the properties needed to add a new pattern
to the pattern library. The pattern library is created when a new pattern
plug-in is created.
- Pattern Name
- Indicates the pattern name which identifies the pattern for the pattern
applier. It is used as a default name to create the pattern's Java™ class
and other files that implement the pattern. You can change the default name
to provide a name that is more descriptive of the pattern's use.
- Class Name
- Indicates the class name which identifies the primary Java class
for the pattern implementation. A default name is supplied based on the pattern
name with the following character exceptions: spaces and special characters
are deleted and the initial character is capitalized. Accept the default name
or type a different one.
- Package
- Indicates the package that contains all of this pattern's implementation
code. The default is the project name (library), Patterns, and the pattern
name, separated by a dot, for example, myProjectName.Patterns.myPatternName.
Accept the default or type a new name.
- Pattern Type
- Sets the type of the pattern instance. Choose from Collaboration (the
most common), Class, and Package depending on what you want the pattern to
accomplish when applied.
- Parameters
- Lists each parameter as you add and define it by using the Add button
located to the right of this field.
- Add
- Click to open the New Pattern Parameter window to
define new parameters for the pattern. You can also add or modify pattern
parameters from the Pattern Authoring view after the
pattern is created.
- Edit
- Click to open the Edit Pattern Parameter window to
modify a parameter you have defined for the pattern. You can also modify pattern
parameters from the Pattern Authoring view after the
pattern is created.
- Remove
- Click to remove a defined parameter.
- Groups
- Lists the groups for this pattern. Groups organize patterns in the Pattern
Explorer view. At least one group is required for each pattern.
A pattern can belong to several groups and a pattern does not have to share
any groups with the other patterns owned by the library. Groups are not project
specific in the Pattern Explorer view. Patterns from
multiple projects assigned to, for example, a group named Architecture Patterns;
all appear together in this group.
- Add
- Add one or more groups or accept the default group assignment.
- Remove
- Delete any group, including the default group.
- Version
- Indicates the version of the pattern to help you control multiple variations
of the same pattern. This may be useful when patterns are created, published,
tested, and then returned to the pattern author for design changes.