Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrennie2010-10-21 16:21:49 -0400
committermrennie2010-10-21 16:21:49 -0400
commit31b8ce3260847025b7f6c1b68bc4d6e0b126fbed (patch)
treece2db0f0e7fd62e7ad49b94e2cc8216473e8451d /development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome
parent3b0e9f876201ebc4c99c0b7e6b400aa5a7f9e404 (diff)
downloadwebtools.jsdt.debug-31b8ce3260847025b7f6c1b68bc4d6e0b126fbed.tar.gz
webtools.jsdt.debug-31b8ce3260847025b7f6c1b68bc4d6e0b126fbed.tar.xz
webtools.jsdt.debug-31b8ce3260847025b7f6c1b68bc4d6e0b126fbed.zip
Bug 326783 - Provide a ResumeEvent in JSDI
Diffstat (limited to 'development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome')
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/ResumeEventImpl.java20
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/SuspendEventImpl.java3
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/EventReqManager.java19
-rw-r--r--development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ResumeReqImpl.java42
4 files changed, 82 insertions, 2 deletions
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/ResumeEventImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/ResumeEventImpl.java
new file mode 100644
index 0000000..03df2d7
--- /dev/null
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/ResumeEventImpl.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2010 IBM Corporation 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.jsdt.debug.internal.chrome.event;
+
+import org.eclipse.wst.jsdt.debug.core.jsdi.event.ResumeEvent;
+
+/**
+ *
+ */
+public class ResumeEventImpl extends LocatableEventImpl implements ResumeEvent {
+
+}
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/SuspendEventImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/SuspendEventImpl.java
index e6193aa..bfffd29 100644
--- a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/SuspendEventImpl.java
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/event/SuspendEventImpl.java
@@ -15,7 +15,6 @@ import org.eclipse.wst.jsdt.debug.core.jsdi.event.SuspendEvent;
/**
*
*/
-public class SuspendEventImpl extends LocatableEventImpl implements
- SuspendEvent {
+public class SuspendEventImpl extends LocatableEventImpl implements SuspendEvent {
}
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 36e75a8..a35a371 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
@@ -24,6 +24,7 @@ import org.eclipse.wst.jsdt.debug.core.jsdi.request.DebuggerStatementRequest;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequest;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.ExceptionRequest;
+import org.eclipse.wst.jsdt.debug.core.jsdi.request.ResumeRequest;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.ScriptLoadRequest;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.StepRequest;
import org.eclipse.wst.jsdt.debug.core.jsdi.request.SuspendRequest;
@@ -48,6 +49,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
private List loads = Collections.synchronizedList(new ArrayList(4));
private List steps = Collections.synchronizedList(new ArrayList(4));
private List suspends = Collections.synchronizedList(new ArrayList(4));
+ private List resumes = Collections.synchronizedList(new ArrayList(4));
private List disconnects = Collections.synchronizedList(new ArrayList(4));
private List deaths = Collections.synchronizedList(new ArrayList(4));
@@ -66,6 +68,7 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
kind.put(ScriptLoadReqImpl.class, loads);
kind.put(StepReqImpl.class, steps);
kind.put(SuspendReqImpl.class, suspends);
+ kind.put(ResumeReqImpl.class, resumes);
kind.put(ThreadEnterReqImpl.class, threadenters);
kind.put(ThreadExitReqImpl.class, threadexits);
kind.put(VMDisconnectReqImpl.class, disconnects);
@@ -169,6 +172,22 @@ public class EventReqManager extends MirrorImpl implements EventRequestManager {
}
/* (non-Javadoc)
+ * @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createResumeRequest(org.eclipse.wst.jsdt.debug.core.jsdi.ThreadReference)
+ */
+ public ResumeRequest createResumeRequest(ThreadReference thread) {
+ ResumeReqImpl req = new ResumeReqImpl(chromeVM(), thread, true);
+ resumes.add(req);
+ return req;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#resumeRequests()
+ */
+ public List resumeRequests() {
+ return Collections.unmodifiableList(resumes);
+ }
+
+ /* (non-Javadoc)
* @see org.eclipse.wst.jsdt.debug.core.jsdi.request.EventRequestManager#createThreadEnterRequest()
*/
public ThreadEnterRequest createThreadEnterRequest() {
diff --git a/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ResumeReqImpl.java b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ResumeReqImpl.java
new file mode 100644
index 0000000..3c01b73
--- /dev/null
+++ b/development/org.eclipse.wst.jsdt.debug.chrome/src/org/eclipse/wst/jsdt/debug/internal/chrome/request/ResumeReqImpl.java
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2010 IBM Corporation 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+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.ResumeRequest;
+import org.eclipse.wst.jsdt.debug.internal.chrome.jsdi.VMImpl;
+
+/**
+ * {@link ResumeRequest} impl
+ *
+ * @since 1.0
+ */
+public class ResumeReqImpl extends EventReqImpl implements ResumeRequest {
+
+ private ThreadReference thread = null;
+
+ /**
+ * Constructor
+ * @param vm
+ * @param enabled
+ */
+ public ResumeReqImpl(VMImpl vm,ThreadReference thread, boolean enabled) {
+ super(vm, enabled);
+ this.thread = thread;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.wst.jsdt.debug.core.jsdi.request.SuspendRequest#thread()
+ */
+ public ThreadReference thread() {
+ return thread;
+ }
+}

Back to the top