1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

fixed problem with .cdtproject not updating

This commit is contained in:
David Inglis 2004-04-02 13:51:58 +00:00
parent 193f840df1
commit 3683cff5a7
4 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-04-02 David Inglis
Fixed problem with .cdtproject not getting updated.
* src/org/eclipse/cdt/internal/core/CDescriptor.java
2004-03-30 Alain Magloire
Reset the non C Resource when the project is closed.

View file

@ -128,12 +128,12 @@ public class CDescriptor implements ICDescriptor {
if (!descriptionPath.toFile().exists()) {
fOwner = new COwner(manager.getOwnerConfiguration(project));
fOwner.configure(project, this);
isInitializing = false;
fManager.updateDescriptor(this);
} else {
String ownerId = readCDTProjectFile(descriptionPath);
fOwner = new COwner(manager.getOwnerConfiguration(ownerId));
}
isInitializing = false;
}
protected CDescriptor(CDescriptorManager manager, IProject project, COwner owner) throws CoreException {

View file

@ -51,6 +51,10 @@ public class CExtensionReference implements ICExtensionReference {
return false;
}
public int hashCode() {
return fExtPoint.hashCode() + fId.hashCode();
}
public void setExtensionData(String key, String value) throws CoreException {
getInfo().setAttribute(key, value);
if (!fDescriptor.isInitializing) {
@ -70,4 +74,4 @@ public class CExtensionReference implements ICExtensionReference {
public IConfigurationElement[] getExtensionElements() throws CoreException {
return fDescriptor.getConfigurationElement(this);
}
}
}

View file

@ -58,4 +58,8 @@ public class COwner implements ICOwnerInfo {
}
return false;
}
public int hashCode() {
return getID().hashCode();
}
}