Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/services/WaitForEventCache.java')
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/services/WaitForEventCache.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/services/WaitForEventCache.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/services/WaitForEventCache.java
new file mode 100644
index 000000000..3966c58bf
--- /dev/null
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/services/WaitForEventCache.java
@@ -0,0 +1,16 @@
+package org.eclipse.tcf.debug.test.services;
+
+import org.eclipse.tcf.debug.test.util.AbstractCache;
+
+class WaitForEventCache<V> extends AbstractCache<V> implements IWaitForEventCache<V> {
+ @Override
+ protected void retrieve() { } // no-op - called by listener
+ @Override
+ protected void canceled() { } // no-op - no command sent
+
+ public void eventReceived(V data) {
+ if (!isValid()) {
+ set(data, null, true); // notify listeners
+ }
+ }
+} \ No newline at end of file

Back to the top