1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-03 13:43:31 +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 2004-03-30 Alain Magloire
Reset the non C Resource when the project is closed. 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()) { if (!descriptionPath.toFile().exists()) {
fOwner = new COwner(manager.getOwnerConfiguration(project)); fOwner = new COwner(manager.getOwnerConfiguration(project));
fOwner.configure(project, this); fOwner.configure(project, this);
isInitializing = false;
fManager.updateDescriptor(this); fManager.updateDescriptor(this);
} else { } else {
String ownerId = readCDTProjectFile(descriptionPath); String ownerId = readCDTProjectFile(descriptionPath);
fOwner = new COwner(manager.getOwnerConfiguration(ownerId)); fOwner = new COwner(manager.getOwnerConfiguration(ownerId));
} }
isInitializing = false;
} }
protected CDescriptor(CDescriptorManager manager, IProject project, COwner owner) throws CoreException { protected CDescriptor(CDescriptorManager manager, IProject project, COwner owner) throws CoreException {

View file

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

View file

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