Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrennie2010-07-22 16:13:16 -0400
committermrennie2010-07-22 16:13:16 -0400
commit4552580c6ff9f7fa4360ef288605e0db122db68f (patch)
treeddea9f4320aa3c7fc281ccb931e79a1d0cdf921a /development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request
parente02c42dca6f7d93575a6be20f5fab90f9cd9bdee (diff)
downloadwebtools.jsdt.debug-4552580c6ff9f7fa4360ef288605e0db122db68f.tar.gz
webtools.jsdt.debug-4552580c6ff9f7fa4360ef288605e0db122db68f.tar.xz
webtools.jsdt.debug-4552580c6ff9f7fa4360ef288605e0db122db68f.zip
updated request*impls
Diffstat (limited to 'development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request')
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java10
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadEnterReqImpl.java28
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadExitReqImpl.java28
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDeathReqImpl.java13
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDisconnectReqImpl.java16
5 files changed, 80 insertions, 15 deletions
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java
index f534d0f..36e75a8 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java
@@ -110,7 +110,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
public ExceptionRequest createExceptionRequest() {
ExceptionReqImpl req = new ExceptionReqImpl(chromeVM(), true);
exceptions.add(req);
- return null;
+ return req;
}
/* (non-Javadoc)
@@ -172,7 +172,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createThreadEnterRequest()
*/
public ThreadEnterRequest createThreadEnterRequest() {
- ThreadEnterReqImpl req = new ThreadEnterReqImpl();
+ ThreadEnterReqImpl req = new ThreadEnterReqImpl(chromeVM(), true);
threadenters.add(req);
return req;
}
@@ -188,7 +188,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createThreadExitRequest()
*/
public ThreadExitRequest createThreadExitRequest() {
- ThreadExitReqImpl req = new ThreadExitReqImpl();
+ ThreadExitReqImpl req = new ThreadExitReqImpl(chromeVM(), true);
threadexits.add(req);
return req;
}
@@ -224,7 +224,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createVMDeathRequest()
*/
public VMDeathRequest createVMDeathRequest() {
- VMDeathReqImpl req = new VMDeathReqImpl();
+ VMDeathReqImpl req = new VMDeathReqImpl(chromeVM(), true);
deaths.add(req);
return req;
}
@@ -240,7 +240,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createVMDisconnectRequest()
*/
public VMDisconnectRequest createVMDisconnectRequest() {
- VMDisconnectReqImpl req = new VMDisconnectReqImpl();
+ VMDisconnectReqImpl req = new VMDisconnectReqImpl(chromeVM(), true);
disconnects.add(req);
return req;
}
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadEnterReqImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadEnterReqImpl.java
index 709a231..2a2fba4 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadEnterReqImpl.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadEnterReqImpl.java
@@ -12,17 +12,39 @@ package org.eclipse.wst.jsdt.debug.internal.chrome.request;
import org.eclipse.wst.jsdt.debug.core.jsdi.ThreadReference;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.ThreadEnterRequest;
+import org.eclipse.wst.jsdt.debug.internal.chrome.jsdi.VMImpl;
/**
- *
+ * {@link ThreadEnterRequest} impl
+ *
+ * @since 1.0
*/
-public class ThreadEnterReqImpl extends EventReqImpl implements
- ThreadEnterRequest {
+public class ThreadEnterReqImpl extends EventReqImpl implements ThreadEnterRequest {
+
+ private ThreadReference thread = null;
+
+ /**
+ * Constructor
+ * @param vm
+ * @param enabled
+ */
+ public ThreadEnterReqImpl(VMImpl vm, boolean enabled) {
+ super(vm, enabled);
+ }
/* (non-Javadoc)
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.ThreadEnterRequest#addThreadFilter(org.eclipse.wst.jsdt.debug.core.jsdi.ThreadReference)
*/
public void addThreadFilter(ThreadReference thread) {
+ this.thread = thread;
}
+ /**
+ * Returns the underlying {@link ThreadReference} this request applies to
+ *
+ * @return the underlying {@link ThreadReference}
+ */
+ public synchronized ThreadReference thread() {
+ return this.thread;
+ }
}
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadExitReqImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadExitReqImpl.java
index 32fff48..77617bf 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadExitReqImpl.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ThreadExitReqImpl.java
@@ -12,17 +12,39 @@ package org.eclipse.wst.jsdt.debug.internal.chrome.request;
import org.eclipse.wst.jsdt.debug.core.jsdi.ThreadReference;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.ThreadExitRequest;
+import org.eclipse.wst.jsdt.debug.internal.chrome.jsdi.VMImpl;
/**
- *
+ * {@link ThreadExitRequest} impl
+ *
+ * @since 1.0
*/
-public class ThreadExitReqImpl extends EventReqImpl implements
- ThreadExitRequest {
+public class ThreadExitReqImpl extends EventReqImpl implements ThreadExitRequest {
+
+ private ThreadReference thread = null;
+
+ /**
+ * Constructor
+ * @param vm
+ * @param enabled
+ */
+ public ThreadExitReqImpl(VMImpl vm, boolean enabled) {
+ super(vm, enabled);
+ }
/* (non-Javadoc)
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.ThreadExitRequest#addThreadFilter(org.eclipse.wst.jsdt.debug.core.jsdi.ThreadReference)
*/
public void addThreadFilter(ThreadReference thread) {
+ this.thread = thread;
}
+ /**
+ * Returns the underlying {@link ThreadReference} this request applies to
+ *
+ * @return the underlying {@link ThreadReference}
+ */
+ public synchronized ThreadReference thread() {
+ return this.thread;
+ }
}
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDeathReqImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDeathReqImpl.java
index d183f28..b39d3b2 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDeathReqImpl.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDeathReqImpl.java
@@ -11,10 +11,21 @@
package org.eclipse.wst.jsdt.debug.internal.chrome.request;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.VMDeathRequest;
+import org.eclipse.wst.jsdt.debug.internal.chrome.jsdi.VMImpl;
/**
- *
+ * {@link VMDeathRequest} impl
+ *
+ * @since 1.0
*/
public class VMDeathReqImpl extends EventReqImpl implements VMDeathRequest {
+ /**
+ * Constructor
+ * @param vm
+ * @param enabled
+ */
+ public VMDeathReqImpl(VMImpl vm, boolean enabled) {
+ super(vm, enabled);
+ }
}
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDisconnectReqImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDisconnectReqImpl.java
index c5b9c2a..1bba98d 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDisconnectReqImpl.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/VMDisconnectReqImpl.java
@@ -11,11 +11,21 @@
package org.eclipse.wst.jsdt.debug.internal.chrome.request;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.VMDisconnectRequest;
+import org.eclipse.wst.jsdt.debug.internal.chrome.jsdi.VMImpl;
/**
- *
+ * {@link VMDisconnectRequest} impl
+ *
+ * @since 1.0
*/
-public class VMDisconnectReqImpl extends EventReqImpl implements
- VMDisconnectRequest {
+public class VMDisconnectReqImpl extends EventReqImpl implements VMDisconnectRequest {
+ /**
+ * Constructor
+ * @param vm
+ * @param enabled
+ */
+ public VMDisconnectReqImpl(VMImpl vm, boolean enabled) {
+ super(vm, enabled);
+ }
}

Back to the top