summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSaid Salem2012-10-18 10:38:25 (EDT)
committer Michael Jastram2013-01-11 08:16:17 (EST)
commit20710fe7ee0b7435b5f8585b4a44536486fc5528 (patch)
treecf1c1fd7a2dcb39281c5cf419ed79ebb95eff25c
parent5e68ec2384a15a664153dd7751e2aca524c3aaf5 (diff)
downloadorg.eclipse.rmf-20710fe7ee0b7435b5f8585b4a44536486fc5528.zip
org.eclipse.rmf-20710fe7ee0b7435b5f8585b4a44536486fc5528.tar.gz
org.eclipse.rmf-20710fe7ee0b7435b5f8585b4a44536486fc5528.tar.bz2
Bug 391425 fixed (Relations are not refreshed in specification editor after actions like delete, add, etc.)
-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 04fda78..7d50ddf 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();
}
/**