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:
parent
dcf186c8c1
commit
97170d3d09
1 changed files with 7 additions and 5 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue