Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: plugins/org.chromium.debug.ui/src/org/chromium/debug/ui/liveedit/PushChangesWizard.java

Issue 11833010: Expose liveedit compile error data in SDK (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: fcr Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.ui.liveedit; 5 package org.chromium.debug.ui.liveedit;
6 6
7 import java.util.ArrayList; 7 import java.util.ArrayList;
8 import java.util.Arrays; 8 import java.util.Arrays;
9 import java.util.List; 9 import java.util.List;
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 /** 244 /**
245 * Performs update to a VM and returns result in form of dialog window input. 245 * Performs update to a VM and returns result in form of dialog window input.
246 */ 246 */
247 private static LiveEditResultDialog.SingleInput performSingleVmUpdate( 247 private static LiveEditResultDialog.SingleInput performSingleVmUpdate(
248 final PushChangesPlan changesPlan, IProgressMonitor monitor) { 248 final PushChangesPlan changesPlan, IProgressMonitor monitor) {
249 final LiveEditResultDialog.SingleInput[] input = { null }; 249 final LiveEditResultDialog.SingleInput[] input = { null };
250 250
251 UpdatableScript.UpdateCallback callback = new UpdatableScript.UpdateCallback () { 251 UpdatableScript.UpdateCallback callback = new UpdatableScript.UpdateCallback () {
252 public void failure(String message) { 252 public void failure(String message, UpdatableScript.Failure failure) {
253 String text = NLS.bind("Failure: {0}", message); 253 String text = NLS.bind("Failure: {0}", message);
254 input[0] = LiveEditResultDialog.createTextInput(text, changesPlan); 254 input[0] = LiveEditResultDialog.createTextInput(text, changesPlan);
255 } 255 }
256 public void success(Object report, 256 public void success(Object report,
257 final UpdatableScript.ChangeDescription changeDescription) { 257 final UpdatableScript.ChangeDescription changeDescription) {
258 if (changeDescription == null) { 258 if (changeDescription == null) {
259 input[0] = LiveEditResultDialog.createTextInput( 259 input[0] = LiveEditResultDialog.createTextInput(
260 Messages.PushChangesWizard_EMPTY_CHANGE, changesPlan); 260 Messages.PushChangesWizard_EMPTY_CHANGE, changesPlan);
261 } else { 261 } else {
262 final String oldScriptName = changeDescription.getCreatedScriptName(); 262 final String oldScriptName = changeDescription.getCreatedScriptName();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 CallbackSemaphore syncCallback = new CallbackSemaphore(); 302 CallbackSemaphore syncCallback = new CallbackSemaphore();
303 RelayOk relayOk = changesPlan.execute(false, callback, syncCallback); 303 RelayOk relayOk = changesPlan.execute(false, callback, syncCallback);
304 syncCallback.acquireDefault(relayOk); 304 syncCallback.acquireDefault(relayOk);
305 305
306 monitor.done(); 306 monitor.done();
307 307
308 return input[0]; 308 return input[0];
309 } 309 }
310 } 310 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698