mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
2004-08-18 Alain Magloire
When running the CDescriptorOperation make sure we have an ICDescriptor. * src/org/eclipse/cdt/internal/core/CDescriptorManager.java
This commit is contained in:
parent
1d70c5bb43
commit
f56c0202be
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-08-18 Alain Magloire
|
||||||
|
|
||||||
|
When running the CDescriptorOperation make sure we have an ICDescriptor.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/internal/core/CDescriptorManager.java
|
||||||
|
|
||||||
2004-08-18 Alain Magloire
|
2004-08-18 Alain Magloire
|
||||||
|
|
||||||
The DeltaProcessor should update the sourceRoot also if
|
The DeltaProcessor should update the sourceRoot also if
|
||||||
|
|
|
@ -358,9 +358,9 @@ public class CDescriptorManager implements ICDescriptorManager, IResourceChangeL
|
||||||
}
|
}
|
||||||
|
|
||||||
public void runDescriptorOperation(IProject project, ICDescriptorOperation op, IProgressMonitor monitor) throws CoreException {
|
public void runDescriptorOperation(IProject project, ICDescriptorOperation op, IProgressMonitor monitor) throws CoreException {
|
||||||
ICDescriptor descriptor = getDescriptor(project, false);
|
ICDescriptor descriptor = getDescriptor(project, true);
|
||||||
if (descriptor == null) {
|
if (descriptor == null) {
|
||||||
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Project does not have descriptor", null)); //$NON-NLS-1$
|
throw new CoreException(new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, "Failed to create descriptor", null)); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
CDescriptorEvent event = null;
|
CDescriptorEvent event = null;
|
||||||
synchronized (descriptor) {
|
synchronized (descriptor) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue