| OLD | NEW |
| 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.actions; | 5 package org.chromium.debug.ui.actions; |
| 6 | 6 |
| 7 import java.util.List; | 7 import java.util.List; |
| 8 | 8 |
| 9 import org.chromium.debug.core.util.ScriptTargetMapping; | 9 import org.chromium.debug.core.util.ScriptTargetMapping; |
| 10 import org.chromium.debug.ui.liveedit.LiveEditResultDialog; |
| 10 import org.chromium.debug.ui.liveedit.PushChangesWizard; | 11 import org.chromium.debug.ui.liveedit.PushChangesWizard; |
| 11 import org.eclipse.swt.widgets.Shell; | 12 import org.eclipse.swt.widgets.Shell; |
| 12 import org.eclipse.ui.IWorkbenchPart; | 13 import org.eclipse.ui.IWorkbenchPart; |
| 13 | 14 |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * An action that opens a full-featured wizard for pushing changes to remote V8
VM. | 17 * An action that opens a full-featured wizard for pushing changes to remote V8
VM. |
| 17 */ | 18 */ |
| 18 public class LiveEditWizardAction extends V8ScriptAction { | 19 public class LiveEditWizardAction extends V8ScriptAction { |
| 19 @Override | 20 @Override |
| 20 protected void execute(List<? extends ScriptTargetMapping> filePairList, Shell
shell, | 21 protected void execute(List<? extends ScriptTargetMapping> filePairList, Shell
shell, |
| 21 IWorkbenchPart workbenchPart) { | 22 IWorkbenchPart workbenchPart) { |
| 22 PushChangesWizard.start(filePairList, shell); | 23 LiveEditResultDialog.ErrorPositionHighlighter positionHighlighter = |
| 24 PushChangesAction.createPositionHighlighter(workbenchPart); |
| 25 PushChangesWizard.start(filePairList, shell, positionHighlighter); |
| 23 } | 26 } |
| 24 } | 27 } |
| OLD | NEW |