| Index: plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
|
| diff --git a/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..256b53168306b220629034e56db28c63e0950b9a
|
| --- /dev/null
|
| +++ b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
|
| @@ -0,0 +1,23 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.sdk.internal.v8native.protocol.output;
|
| +
|
| +import org.chromium.sdk.internal.v8native.DebuggerCommand;
|
| +import org.json.simple.JSONObject;
|
| +
|
| +/**
|
| + * Represents a "setVariableValue" request message.
|
| + */
|
| +public class SetVariableValueMessage extends DebuggerMessage {
|
| + public SetVariableValueMessage(ScopeMessage.Ref scopeRef, String variableName,
|
| + EvaluateMessage.Value value) {
|
| + super(DebuggerCommand.SETVARIABLEVALUE.value);
|
| + JSONObject scopeObject = new JSONObject();
|
| + scopeRef.fillJson(scopeObject);
|
| + putArgument("scope", scopeObject);
|
| + putArgument("name", variableName);
|
| + putArgument("newValue", value.createJsonParameter());
|
| + }
|
| +}
|
|
|