Creating an Ability and Associating Configurations
See Also
Abilities are identifiers that enable you to group similar project
configurations and simplify the process of managing preprocessor
code.
When you create an ability, you associate it with a project configuration.
After you create the ability, you can then associate it with other configurations
as well.
To create an ability and associate it with a project configuration:
- Right-click on a project in the Projects view and choose Properties .
- Choose the Abilities page from the Category menu tree.
- If necessary, uncheck the Use Values from "DefaultConfiguration"
check box.
- Click the Add button.
This opens the Add Ability dialog.
- In the Add Ability dialog, enter a name for the ability.
- Optionally, add
a value for the new ability.
Values can be integer numbers, strings or empty symbols used as booleans.
- Click OK to close the Add Ability dialog.
The ability is now associated with
the selected project configuration.
You can associate the ability with other configurations by choosing a different
configuration from the Project Configuration menu and clicking the Add Ability
button.
You can also add and associate abilities in the Navigator. Select one or more
project configuration nodes in the Projects window and right-click on one or
more abilities in the Navigator.
If you select more than one configuration, the Navigator shows the intersection
of abilities assigned to the selected configurations. Abilities with different
values are shown with the value "Multiple different values." Selected
configurations must be part of the same project.
The pop-up menu lists the following actions:
- Add. Adds the selected ability or abilities to all of the
selected configurations.
- Remove. Removes the selected abilities from all of the
selected configurations.
- Copy. Copies the selected abilities to an internal buffer.
- Paste. Pastes abilities from the buffer to the selected
configurations.
See Also
- Working with Project Configurations
- Customizing Project Configurations
- About Project Configurations
- About Preprocessing
- About Abilities
- Java ME MIDP Project Configuration Tasks:
Quick Reference
Legal Notices