DDC-I Logo

Sitemap  

DDC-I Ada Compiler System  

User Defined Tools in the SCORE® GUI

Product Family: SCORE®
Target CPU: Any
Language: Any
Host: Any

Using the SCORE® GUI, users can easily integrate their own tools. The SCORE® GUI allows user defined tools to exist at three levels. Tools can be defined (1) as available to all users of all projects, (2) as available to all users of a particular project only, or (3) as available for a single user on a single project.

Defining a tool available to all users of all projects

Suppose your company has a tool for handling the configuration management of source code files (eg. rcs). One of the features of most CM tools is the ability to display the history of information about the changes that have been made to a particular file (eg. rlog ). To use this tool, we would like to be able to have a file open in the editor and the tool display the history information for the file. To define this tool, select Preferences | Tools. When the Tools dialog appears, press the "New" button. The New Tool dialog is then displayed which requires the following information:

Menu text :
Enter the name of the new tool you wish to create. For our example, enter "File History".
Command :
Enter the pathname of the new tool. For our example, enter "rlog"
Arguments :
Use the Argument text box to enter arguments (if any) to accompany the new tool you are creating. The SCORE® GUI provides several pre-defined macros that are availble for passing as arguments to tools. For our example, enter the macro name "&FILE_PATH". This macro is defined to be the current file path and file name (eg. c:\source\about.h) open in the editor. See the table below for a complete list of all available macros.
Initial directory :
Enter the name of the initial directory where your new tool is to be invoked. For our example, leave this blank.
Status Bar Text :
Enter the text you wish to display on the status bar (if any) when your new tool is selected. For our example, enter "Display history information for a file".

When finished entering your choices for the New Tool dialog, click OK to implement your changes and exit the dialog. Now a tool called "File History" appears in the Tools menu available that will display the history information for the currently selected file open in the editor.

Defining a tool for all users of a particular project

Some tools may only be needed for a particular project, but all users of the project need to be able to use the tool. The project administrator can define a tool at the project level which will be available for all users of the project. To do this the project administrator opens the particular project and selects Project | Project Mode. Then select Project | Edit to display the Edit Project dialog. Select the Tools tab on the Edit Project dialog and the New Tools dialog is displayed. Here the tool can be defined exactly as stated above and will be listed in the Tools menu. However, this tool will only be available when the particular project it was defined for is opened by a user.

Defining a tool for one user of a particular project

Users often need to be able to define tools that make getting their work done easier. A user can define a tool for a project that is only availble for them. By default a project is in user mode. To define a tool for a project, the user would select Project | Edit to display the Edit Project dialog. Select the Tools tab on the Edit Project dialog and the New Tools dialog is displayed. Here the tool is defined exactly as stated in the first section above and will be listed in the Tools menu. However, this tool will only be availble for this user when the project is opened.

Macro Name Macro Definition
&CURRENT_DIR Current directory
&DEFAULT_ADA_PATH Default Ada Path
&DEFAULT_PROGRAM Default Program
&DEFAULT_TARGET Default Target
&FILE_NAME Current file name (win.ini)
&FILE_PATH Current file path (c:\windows\win.ini)
&FILE_TITLE Current file title (win)
&HOME User's home directory
&INSTALLATION_DIR Installation directory of toolsets
&LISTING_EXT Current target specific listing file extension
&OBJECT_EXT Current target specific object file extension
&PROGRAM Current program
&PROJECT_DIR Current project's directory
&PROJECT_NAME Current project's name
&SELECTION Current selection of text in editor
&TARGET Current target directory (native, ppc603e, etc.)
&TARGET_EXT Current target specific executable extension
&TEMP Temporary directory
&USER Name of currently logged in user
&USER_SRC_DIR Root directory for user source files

Contact
602-275-7172
sales@ddci.com

IDIQ Contract Vehicles:
--------------
AMCOM Express
DESP II
F2AST
R23G

Links

Support

Members Area
    -Member Login/Return
    -Login Help

Atlas Support Packages
    -Atlas Premium
    -Atlas Advantage
    -Atlas Choice

Complimentary Support

Submit a Software Trouble Report

Customer Quote:
"You have talented and dedicated people working for you. They are superlative. DRS appreciates their efforts and I personally am most grateful to be working with such an excellent group."