mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 417199 - Fix project-less debug
Change-Id: Icf2c185dbc53eccd068e384431d16d82a38d789e Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/16414 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
21a3e327a7
commit
f22100e80b
1 changed files with 2 additions and 2 deletions
|
@ -95,11 +95,11 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
|
|||
* variables in the context of the given project.
|
||||
*
|
||||
* @param projectName the name of the project used to resolve project_name, project_loc and
|
||||
* project_path variables. If {@code null}, the project is determined based on the current
|
||||
* project_path variables. If {@code null} or empty, the project is determined based on the current
|
||||
* selection.
|
||||
*/
|
||||
public DebugStringVariableSubstitutor(String projectName) {
|
||||
this(projectName == null ? null : ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
|
||||
this(projectName == null || projectName.isEmpty() ? null : ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
|
||||
}
|
||||
|
||||
public IStringVariable[] getVariables() {
|
||||
|
|
Loading…
Add table
Reference in a new issue