1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 313512 - [vm][cache][api] Add update flag to flush all properties

This commit is contained in:
Anton Leherbauer 2010-08-20 08:06:11 +00:00
parent 1342519672
commit edd73c9886
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007, 2009 Wind River Systems and others.
* Copyright (c) 2007, 2010 Wind River 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
@ -767,6 +767,8 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
elementDataEntry.fChildren = null;
elementDataEntry.fAllChildrenKnown = false;
elementDataEntry.fDirty = false;
} else if ((updateFlags & IVMUpdatePolicy.FLUSH_ALL_PROPERTIES) != 0) {
elementDataEntry.fProperties = null;
} else if ((updateFlags & IVMUpdatePolicy.FLUSH_PARTIAL_PROPERTIES) != 0) {
Collection<String> propertiesToFlush = flushKey.getPropertiesToFlush(elementDataKey, elementDataEntry.fDirty);
if (propertiesToFlush != null && elementDataEntry.fProperties != null) {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007, 2009 Wind River Systems and others.
* Copyright (c) 2007, 2010 Wind River 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
@ -50,6 +50,14 @@ public interface IVMUpdatePolicy {
*/
public static int FLUSH_PARTIAL_PROPERTIES = 0x8;
/**
* Flag indicating that the cache should flush all properties of
* an element.
*
* @since 2.2
*/
public static int FLUSH_ALL_PROPERTIES = 0x10;
/**
* Returns unique ID of this update policy.
*/