BeIDE Add-Ons



Currently, the BeIDE add-ons are stored in files and projects that refer to them as "plugins." These names may change (to "add-ons") in a later release.

Three add-ons accompany the BeIDE release.

The source code for these add-ons is available in the samples directory.


Using ShellPlugin

ShellPlugin lets you add shell scripts to your project.  Each script is executed at one of three stages in the build cycle:  just before the build starts, after a compile stage, or after the build is finished.  By deft employment of project targets and file extensions, you can register a different script to be run at each of the three stages.  For example, to add a script (target) that runs before a compile, you do this:

  1. Go to the Settings window and select Project > Target.

  2. Add a target with the following attributes:

    Extension: sh1 (or an extension of your choosing)
    Tool Name: sh
    Flags: Precompile Stage

  3. Add a script file to your project; give it the extension ".sh1".

    To add script targets for the other stages, simply specify unique file extensions for each stage.  At the various stages of the build, the appropriate scripts will be executed.

    The Flags: field includes a Link Stage item.  This stage doesn't apply to shell scripts.  The three legitimate stage settings are Precompile Stage, Compile Stage and PostLink Stage.


    Using MWBResPlugin

    The MWBResPlugin runs the mwbres resource-generating tool on your text-based resource files (or restext files) during a project build.  The tool merges the new resources into your application.  To use the add-on, do this:

    1. Go to the Settings window and select Project > Target.

    2. Add a target with the following attributes:

      Extension: r (or an extension of your choosing)
      Tool Name: mwbres
      Flags: PostLink Stage

    3. Add a restext file (with the appropriate extension, as specified in the Target panel) to your project.

    For more information on creating a restext file, see The mwbres Tool.


    Using Commenter

    To use the Commenter add-on, select some text and then choose Add-ons > Commenter.  C++ style comment marks ("//") are added to the beginning of each line in the selection.  To remove the comments, hold down Shift when choosing the add-on.






    BeOS Release 4.5




    Copyright © 1999 Be, Inc.  All rights reserved.