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:

  1. Right-click on a project in the Projects view and choose Properties .
  2. Choose the Abilities page from the Category menu tree.
  3. Click the Add button.
    This opens the Add Ability dialog.
  4. In the Add Ability dialog, enter a name for the ability.
  5. Optionally, add a value for the new ability.
    Values can be integer numbers, strings or empty symbols used as booleans.
  6. 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:

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