mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Do not add closed projects.
We can not have launch configuration on closed projects so better to not add these projects at all. This prevents filling LaunchBar filling the Error Log with "Project /NAME is closed." Change-Id: I2f7d81e23aa4d76a1ba1894ae786b7b403124abf Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
231758acfc
commit
fd7e8fcde0
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2014 QNX Software Systems and others.
|
||||
* Copyright (c) 2014, 2017 QNX Software Systems and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -35,7 +35,9 @@ public class ProjectLaunchObjectProvider implements ILaunchObjectProvider, IReso
|
|||
public void init(ILaunchBarManager manager) throws CoreException {
|
||||
this.manager = manager;
|
||||
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
|
||||
manager.launchObjectAdded(project);
|
||||
if (project.isOpen()) {
|
||||
manager.launchObjectAdded(project);
|
||||
}
|
||||
}
|
||||
ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue