equal
deleted
inserted
replaced
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be |
2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. |
3 // found in the LICENSE file. |
4 |
4 |
5 package org.chromium.debug.core.model; |
5 package org.chromium.debug.core.model; |
|
6 |
|
7 import java.util.Collections; |
6 |
8 |
7 import org.chromium.debug.core.ChromiumDebugPlugin; |
9 import org.chromium.debug.core.ChromiumDebugPlugin; |
8 import org.chromium.debug.core.util.JsValueStringifier; |
10 import org.chromium.debug.core.util.JsValueStringifier; |
9 import org.chromium.sdk.JsArray; |
11 import org.chromium.sdk.JsArray; |
10 import org.chromium.sdk.JsValue; |
12 import org.chromium.sdk.JsValue; |
54 |
56 |
55 public IVariable[] getVariables() throws DebugException { |
57 public IVariable[] getVariables() throws DebugException { |
56 try { |
58 try { |
57 if (variables == null) { |
59 if (variables == null) { |
58 if (value.asObject() != null) { |
60 if (value.asObject() != null) { |
59 variables = StackFrame.wrapVariables(getDebugTarget(), value.asObject().getProperties(), |
61 variables = StackFrame.wrapVariables(getDebugTarget(), |
|
62 value.asObject().getProperties(), Collections.<String>emptySet(), |
60 value.asObject().getInternalProperties()); |
63 value.asObject().getInternalProperties()); |
61 } else { |
64 } else { |
62 variables = EMPTY_VARIABLES; |
65 variables = EMPTY_VARIABLES; |
63 } |
66 } |
64 } |
67 } |