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

Fix for 225316: CoreModel does not issue event when resolution of IInclude changes

This commit is contained in:
Anton Leherbauer 2008-04-04 07:34:48 +00:00
parent dcf186c8c1
commit 97170d3d09

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -104,9 +104,11 @@ public class Include extends SourceManipulation implements IInclude {
}
public static boolean equals(IInclude lhs, IInclude rhs) {
return CElement.equals(lhs, rhs) &&
lhs.isActive() == rhs.isActive() &&
lhs.isResolved() == rhs.isResolved() &&
lhs.isLocal() == rhs.isLocal();
return CElement.equals(lhs, rhs)
&& lhs.isActive() == rhs.isActive()
&& lhs.isResolved() == rhs.isResolved()
&& lhs.isLocal() == rhs.isLocal()
&& (lhs.getFullFileName() == rhs.getFullFileName()
|| lhs.getFullFileName() != null && lhs.getFullFileName().equals(rhs.getFullFileName()));
}
}