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.
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 (
) and choose tab Path Variables.Click to the and Define a New Path Variable
dialog appear.
Enter the new variable name and location. In location, you can use already define variables. You can finish the process by click to .
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:
-
.
Fig. 3. New linked folder -
Click to .
-
Choose
Link to alternate location (Linked Folder)
. -
Click .
Fig. 4. Select path variable -
Choose your previously defined variable (
MY_NEW_SOURCE_PATH
). -
Click .
Fig. 5. Select path variable -
Choose your source file folder and click to .
-
Click to .