PreviousNext

Set source control preferences

    1. On the Edit menu, click Preferences.
    2. Click the Source Control tab.
    3. Set any of the following options to customize how the BlackBerry® IDE uses a source control system.
      Option
      Description

      Enable source control integration

      Specify whether the BlackBerry IDE uses a source control system to check out, add, change or revert changes to files.

      Run source control commands in the background

      Specify whether the BlackBerry IDE runs source control commands in the background, without interrupting workflow.

    4. Click the Check out tab.
    5. Set any of the following options:
      Option
      Description

      Check out files without prompting

      When the user types in a checked-in file, check it out without prompting.

      Silently make file read-write if checkout command fails

      Change source files in the BlackBerry IDE without prompting if the checkout command fails.

      Run command if checkout fails

      Specify a command to run if the checkout fails.

    6. In the Check out field, type the command to open a file for edit. For example type:

      p4 edit %1

      Note: The %1 parameter represents the name and absolute path of a file. For example: for a file called foo.java located in c:\mypath, when the BlackBerry IDE runs the command p4 edit %1, the BlackBerry IDE actually runs the command checkout c:\mypath\foo.java.

    7. Click the Add file tab.
    8. In the Add new file field, type the command to add a new file to your source control application. For example type:

      p4 add %1

    9. Click the Revert file tab.
    10. In the Revert changes field, type the command to revert a file in your source control application. For example type:

      p4 revert %1

    11. Click OK.

Related topic


   BlackBerry