Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/agilegrid/ProrAgileGridContentProvider.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/agilegrid/ProrAgileGridContentProvider.java b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/agilegrid/ProrAgileGridContentProvider.java
index 04fda784..7d50ddfa 100644
--- a/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/agilegrid/ProrAgileGridContentProvider.java
+++ b/org.eclipse.rmf.reqif10.pror.editor/src/org/eclipse/rmf/reqif10/pror/editor/agilegrid/ProrAgileGridContentProvider.java
@@ -95,7 +95,7 @@ public class ProrAgileGridContentProvider extends AbstractContentProvider {
*/
public void setShowSpecRelations(boolean status) {
this.showSpecRelations = status;
- cache = null;
+ flushCache();
}
/**
@@ -117,7 +117,9 @@ public class ProrAgileGridContentProvider extends AbstractContentProvider {
return getCache().get(row);
}
-
+ private void flushCache(){
+ cache = null;
+ }
private ArrayList<ProrRow> getCache() {
ArrayList<ProrRow> tmpCache = null;
@@ -202,6 +204,7 @@ public class ProrAgileGridContentProvider extends AbstractContentProvider {
void updateElement(SpecElementWithAttributes element) {
recurseUpdateElement(0, element, root.getChildren());
+ flushCache();
}
/**

Back to the top