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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/dialogs/RemoteConnectionDialog.java

Issue 321583008: Merge to trunk cl - fixes/features for mobile support in the editor (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/dialogs/RemoteConnectionDialog.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/dialogs/RemoteConnectionDialog.java (revision 37106)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.ui/src/com/google/dart/tools/debug/ui/internal/dialogs/RemoteConnectionDialog.java (working copy)
@@ -14,7 +14,6 @@
package com.google.dart.tools.debug.ui.internal.dialogs;
-import com.google.dart.tools.core.mobile.AndroidDebugBridge;
import com.google.dart.tools.debug.core.configs.DartServerLaunchConfigurationDelegate;
import com.google.dart.tools.debug.core.configs.DartiumLaunchConfigurationDelegate;
import com.google.dart.tools.debug.core.util.IRemoteConnectionDelegate;
@@ -137,8 +136,7 @@
@Override
protected IStatus run(IProgressMonitor monitor) {
try {
- // TODO(keertip): add forwarding for chrome
- AndroidDebugBridge.getAndroidDebugBridge().setupPortForwarding(Integer.toString(port));
+
connectionDelegate.performRemoteConnection(host, port, monitor, usePubServe);
// Show the debugger view.
@@ -261,6 +259,8 @@
private Button usePubServeButton;
+ private Group pubGroup;
+
/**
* Create a new RemoteConnectionDialog with the given shell as its parent.
*
@@ -360,24 +360,27 @@
GridDataFactory.fillDefaults().grab(true, false).applyTo(portText);
label = new Label(parent, SWT.NONE);
- // pub setttings
- group = new Group(parent, SWT.NONE);
- group.setText("Pub settings");
- GridDataFactory.fillDefaults().grab(true, false).applyTo(group);
- GridLayoutFactory.fillDefaults().margins(12, 6).applyTo(group);
- usePubServeButton = new Button(group, SWT.CHECK);
- usePubServeButton.setText("Using pub to serve the application");
- usePubServeButton.setSelection(true);
- GridDataFactory.fillDefaults().grab(true, false).applyTo(usePubServeButton);
+ instructionsLabel = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
+ instructionsLabel.setBackground(parent.getBackground());
+ GridDataFactory.fillDefaults().grab(true, false).hint(100, -1).applyTo(instructionsLabel);
// spacer
label = new Label(parent, SWT.NONE);
- instructionsLabel = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
- instructionsLabel.setBackground(parent.getBackground());
- GridDataFactory.fillDefaults().grab(true, false).hint(100, -1).applyTo(instructionsLabel);
+ label = new Label(parent, SWT.NONE);
+ label = new Label(parent, SWT.NONE);
+ pubGroup = new Group(parent, SWT.NONE);
+ pubGroup.setText("Pub settings");
+ GridDataFactory.fillDefaults().grab(true, false).applyTo(pubGroup);
+ GridLayoutFactory.fillDefaults().margins(12, 6).applyTo(pubGroup);
+
+ usePubServeButton = new Button(pubGroup, SWT.CHECK);
+ usePubServeButton.setText("Using pub to serve the application");
+ usePubServeButton.setSelection(true);
+ GridDataFactory.fillDefaults().grab(true, false).applyTo(usePubServeButton);
+
try {
exceptionsCombo.select(getDialogSettings().getInt("selected"));
} catch (NumberFormatException nfe) {
@@ -427,6 +430,8 @@
IDialogSettings settings = getDialogSettings();
hostText.setText(notNull(settings.get(connection.name() + ".host")));
portText.setText(notNull(settings.get(connection.name() + ".port")));
+
+ pubGroup.setVisible(connection == ConnectionType.CHROME);
}
private String notNull(String str) {

Powered by Google App Engine
This is Rietveld 408576698