mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
SCD profiles: integration with CPathEntry framework.
Added generation of path entry change deltas for per file discovery profile.
This commit is contained in:
parent
98162945ac
commit
b733817bab
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-03-03 Vladimir Hirsl
|
||||
Small change for enabling generation of path entry container change events.
|
||||
* model/org/eclipse/cdt/core/model/PathEntryContainerChanged.java
|
||||
* model/org/eclipse/cdt/internal/core/model/PathEntryManager.java
|
||||
|
||||
2005-03-02 Alain Magloire
|
||||
Fix PR 84527: PathEntryManager marker jobs were start to often.
|
||||
* model/org/eclipse/cdt/internla/core/model/PathEntrymanager.java
|
||||
|
|
|
@ -74,7 +74,7 @@ public class PathEntryContainerChanged {
|
|||
* @return
|
||||
*/
|
||||
public boolean isIncludeChange() {
|
||||
return fType == INCLUDE_CHANGED;
|
||||
return (fType & INCLUDE_CHANGED) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -82,7 +82,7 @@ public class PathEntryContainerChanged {
|
|||
* @return
|
||||
*/
|
||||
public boolean isMacroChange() {
|
||||
return fType == MACRO_CHANGED;
|
||||
return (fType & MACRO_CHANGED) != 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -997,9 +997,10 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
|||
}
|
||||
int flag =0;
|
||||
if (event.isIncludeChange()) {
|
||||
flag = ICElementDelta.F_CHANGED_PATHENTRY_INCLUDE;
|
||||
} else if (event.isMacroChange()) {
|
||||
flag = ICElementDelta.F_CHANGED_PATHENTRY_MACRO;
|
||||
flag |= ICElementDelta.F_CHANGED_PATHENTRY_INCLUDE;
|
||||
}
|
||||
if (event.isMacroChange()) {
|
||||
flag |= ICElementDelta.F_CHANGED_PATHENTRY_MACRO;
|
||||
}
|
||||
CElementDelta delta = new CElementDelta(celement.getCModel());
|
||||
delta.changed(celement, flag);
|
||||
|
|
Loading…
Add table
Reference in a new issue