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:
parent
193f840df1
commit
3683cff5a7
4 changed files with 16 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -58,4 +58,8 @@ public class COwner implements ICOwnerInfo {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return getID().hashCode();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue