mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
we should throw exception as per API
This commit is contained in:
parent
671f4b339d
commit
fbcd0437b1
1 changed files with 7 additions and 10 deletions
|
@ -205,18 +205,15 @@ public class CDescriptor implements ICDescriptor {
|
|||
return refs;
|
||||
}
|
||||
|
||||
synchronized public ICExtensionReference[] get(String extensionID, boolean update) {
|
||||
synchronized public ICExtensionReference[] get(String extensionID, boolean update) throws CoreException {
|
||||
ICExtensionReference[] refs = get(extensionID);
|
||||
if (refs.length == 0 && update) {
|
||||
try {
|
||||
boolean oldIsInitializing = isInitializing;
|
||||
isInitializing = true;
|
||||
fOwner.update(fProject, this, extensionID);
|
||||
isInitializing = oldIsInitializing;
|
||||
updateIfDirty();
|
||||
refs = get(extensionID);
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
boolean oldIsInitializing = isInitializing;
|
||||
isInitializing = true;
|
||||
fOwner.update(fProject, this, extensionID);
|
||||
isInitializing = oldIsInitializing;
|
||||
updateIfDirty();
|
||||
refs = get(extensionID);
|
||||
}
|
||||
return refs;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue