OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. | 2 * Copyright (c) 2012, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 private DartiumDebugTarget target; | 122 private DartiumDebugTarget target; |
123 private DartiumDebugVariable parentVariable; | 123 private DartiumDebugVariable parentVariable; |
124 | 124 |
125 private CountDownLatch latch; | 125 private CountDownLatch latch; |
126 private List<IVariable> variables = new ArrayList<IVariable>(); | 126 private List<IVariable> variables = new ArrayList<IVariable>(); |
127 private List<WebkitPropertyDescriptor> webkitProperties = new ArrayList<Webkit
PropertyDescriptor>(); | 127 private List<WebkitPropertyDescriptor> webkitProperties = new ArrayList<Webkit
PropertyDescriptor>(); |
128 | 128 |
129 public VariableCollector(DartiumDebugTarget target, List<IVariable> variables)
{ | 129 public VariableCollector(DartiumDebugTarget target, List<IVariable> variables)
{ |
130 this.target = target; | 130 this.target = target; |
131 this.variables.addAll(variables); | 131 this.variables.addAll(variables); |
| 132 |
| 133 latch = new CountDownLatch(0); |
132 } | 134 } |
133 | 135 |
134 private VariableCollector(DartiumDebugTarget target, int work) { | 136 private VariableCollector(DartiumDebugTarget target, int work) { |
135 this(target, work, null); | 137 this(target, work, null); |
136 } | 138 } |
137 | 139 |
138 private VariableCollector(DartiumDebugTarget target, int work, DartiumDebugVar
iable parentVariable) { | 140 private VariableCollector(DartiumDebugTarget target, int work, DartiumDebugVar
iable parentVariable) { |
139 this.target = target; | 141 this.target = target; |
140 this.parentVariable = parentVariable; | 142 this.parentVariable = parentVariable; |
141 | 143 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 Arrays.sort(properties); | 308 Arrays.sort(properties); |
307 | 309 |
308 return properties; | 310 return properties; |
309 } | 311 } |
310 | 312 |
311 private void worked() { | 313 private void worked() { |
312 latch.countDown(); | 314 latch.countDown(); |
313 } | 315 } |
314 | 316 |
315 } | 317 } |
OLD | NEW |