Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2010-08-20 08:06:11 +0000
committerAnton Leherbauer2010-08-20 08:06:11 +0000
commitedd73c9886191a5600f565bbca1dac85efaeabc9 (patch)
treeaf2bd799ce9b2e04d863e074795e7f81db16e8c5 /dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui
parent13425196723c91ed106baaa45d6ab6915e9f7845 (diff)
downloadorg.eclipse.cdt-edd73c9886191a5600f565bbca1dac85efaeabc9.tar.gz
org.eclipse.cdt-edd73c9886191a5600f565bbca1dac85efaeabc9.tar.xz
org.eclipse.cdt-edd73c9886191a5600f565bbca1dac85efaeabc9.zip
Bug 313512 - [vm][cache][api] Add update flag to flush all properties
Diffstat (limited to 'dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java4
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/IVMUpdatePolicy.java10
2 files changed, 12 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
index 55eefebbafc..0340def2021 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
@@ -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) {
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/IVMUpdatePolicy.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/IVMUpdatePolicy.java
index 925029b47a3..ec814d2cf42 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/IVMUpdatePolicy.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/IVMUpdatePolicy.java
@@ -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
@@ -51,6 +51,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.
*/
public String getID();

Back to the top