1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Fix for [Bug 182205] ScannerInfoProvider specified by custom extension is not being called

This commit is contained in:
Mikhail Sennikovsky 2007-04-16 19:11:41 +00:00
parent aa17ffe74c
commit e6dbc5b189
4 changed files with 10 additions and 3 deletions

View file

@ -38,7 +38,7 @@ public interface IManagedOptionValueHandler{
* button (or the OK button). The valueHandler can
* transfer the value of the option to its own
* back-end. */
public final int EVENT_LOAD = 5; /** Posted when the managed build extensions (defined in the manifext files)extension option isThe option has been set by pressing the Apply
public final int EVENT_LOAD = 5; /** Posted when the managed build extensions (defined in the manifest files)
* are loadded.
* The handler is allowed to adjust the extension elements
*/

View file

@ -643,6 +643,7 @@ public class CConfigurationSpecSettings implements ICSettingsStorage{
if(extRef == null){
extRef = createRef(extensionPoint, extension);
checkReconsile(extensionPoint, false);
fIsModified = true;
}
return extRef;
}

View file

@ -147,6 +147,10 @@ public class CConfigBasedDescriptor implements ICDescriptor {
return r;
}
void setDirty(boolean dirty){
fIsDirty = dirty;
}
public void updateConfiguration(ICConfigurationDescription des) throws CoreException{
fCfgDes = des;
fProject = fCfgDes.getProjectDescription().getProject();

View file

@ -382,9 +382,10 @@ public class CConfigBasedDescriptorManager implements ICDescriptorManager {
//the descriptor was requested while load process
des = (CProjectDescription)CProjectDescriptionManager.getInstance().getProjectDescription(des.getProject(), true);
ICConfigurationDescription cfgDescription = des.getIndexConfiguration();
if(cfgDescription != null)
if(cfgDescription != null){
dr.updateConfiguration((CConfigurationDescription)cfgDescription);
else
dr.setDirty(false);
} else
setLoaddedDescriptor(des, null);
}
}
@ -454,6 +455,7 @@ public class CConfigBasedDescriptorManager implements ICDescriptorManager {
CProjectDescription writableDes = (CProjectDescription)CProjectDescriptionManager.getInstance().getProjectDescription(event.getProject(), true);
ICConfigurationDescription indexCfg = writableDes.getIndexConfiguration();
dr.updateConfiguration((CConfigurationDescription)indexCfg);
dr.setDirty(false);
}
if(desEvent != null){
notifyListeners(desEvent);