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;
|
return refs;
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized public ICExtensionReference[] get(String extensionID, boolean update) {
|
synchronized public ICExtensionReference[] get(String extensionID, boolean update) throws CoreException {
|
||||||
ICExtensionReference[] refs = get(extensionID);
|
ICExtensionReference[] refs = get(extensionID);
|
||||||
if (refs.length == 0 && update) {
|
if (refs.length == 0 && update) {
|
||||||
try {
|
|
||||||
boolean oldIsInitializing = isInitializing;
|
boolean oldIsInitializing = isInitializing;
|
||||||
isInitializing = true;
|
isInitializing = true;
|
||||||
fOwner.update(fProject, this, extensionID);
|
fOwner.update(fProject, this, extensionID);
|
||||||
isInitializing = oldIsInitializing;
|
isInitializing = oldIsInitializing;
|
||||||
updateIfDirty();
|
updateIfDirty();
|
||||||
refs = get(extensionID);
|
refs = get(extensionID);
|
||||||
} catch (CoreException e) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return refs;
|
return refs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue