Path variables

In some cases, the use of path variables can help you in a project management, for example, when you have to include source files out of the project location. The following section describes some technics which can help you to deal with such cases.

The path variables specify the locations in the files system, optionally including other path variables with the syntax ${OTHER_PATH_VAR}. You can use the path variables to specify the location used by multiple linked resources.

Tab. 1. Default path variables
Variable Descritption

ECLIPSE_HOME

Points to the root folder of the HighTec IDE installation

PARENT_LOC

Points to the root folder of the workspace.

PROJECT_LOC

Points to the root folder of the current project.

WORKSPACE_LOC

Points to the root folder of the workspace.

You can not change the default variables, but you can add your variable to fit your needs. If you want to add new path variable open (Project  Properties  Resource  Linked Resources) and choose tab Path Variables.

ide path variables
Fig. 1. Path variables

Click to the btnNew dot and Define a New Path Variable dialog appear.

ide define new path variable dialog
Fig. 2. New path variable

Enter the new variable name and location. In location, you can use already define variables. You can finish the process by click to btnOk.

PRACTICAL USE CASE

Once you define new variable pointing to your shared source folder, you can use it to link new resources into your project by following steps:

  • right-click on the project name  New  Folder.

    ide new linked folder
    Fig. 3. New linked folder
  • Click to btnAdvanced arrow.

  • Choose Link to alternate location (Linked Folder).

  • Click btnVariables dot.

    ide new linked folder 1
    Fig. 4. Select path variable
  • Choose your previously defined variable (MY_NEW_SOURCE_PATH).

  • Click btnExtend dot.

    ide new linked folder 2
    Fig. 5. Select path variable
  • Choose your source file folder and click to btnOk.

  • Click to btnFinish.