In Eclipse, there is a variable ${project_loc} (path in the FS to the project). However, it is defined only relative to the current resource, that is, for example, a file opened in the editor. If in the future there is no open file, then this variable is empty. Even if the project is the only one open, and the focus is on it in the Project Explorer. Hence the question: how to get the path to the project in this case? Any options like ${workspace_loc}/${project_name} do not work either, because ${project_name} also empty.
|