mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Related to 201254, move access to project model inside of add-project job.
This commit is contained in:
parent
f9895112b7
commit
a9fd68785e
1 changed files with 1 additions and 5 deletions
|
@ -623,14 +623,10 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
|
||||
void addProject(final ICProject cproject) {
|
||||
final IProject project = cproject.getProject();
|
||||
if (!isFullyCreated(project)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Job addProject= new Job(Messages.PDOMManager_StartJob_name) {
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
monitor.beginTask("", 100); //$NON-NLS-1$
|
||||
if (project.isOpen()) {
|
||||
if (project.isOpen() && isFullyCreated(project)) {
|
||||
syncronizeProjectSettings(project, new SubProgressMonitor(monitor, 1));
|
||||
if (getIndexer(cproject) == null) {
|
||||
createIndexer(cproject, new SubProgressMonitor(monitor, 99));
|
||||
|
|
Loading…
Add table
Reference in a new issue