Bug 422982 - org.eclipse.cdt.core.CCorePlugin.createCProject() and ISchedulingRule
Summary: org.eclipse.cdt.core.CCorePlugin.createCProject() and ISchedulingRule
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: Next   Edit
Hardware: PC Linux-GTK
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-02 11:42 EST by Ulrik Falklof CLA
Modified: 2020-09-04 15:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrik Falklof CLA 2013-12-02 11:42:56 EST
Hi,

The method org.eclipse.core.internal.resources.Project.create() creates a project with a ISchedulingRule for only the project.

But the method org.eclipse.cdt.core.CCorePlugin.createCProject() uses getWorkspace().getRoot() as ISchedulingRule and locks the whole workspace when creating a new project. Would it be enough to only lock the project and not the whole workspace?

Locking the whole workspace prevents creating new CDT projects for example when executing long time running IncrementalBuilders in the background.

Cheers,
Ulrik Falklöf