OLD | NEW |
1 package com.google.dart.tools.debug.ui.internal.dialogs; | 1 package com.google.dart.tools.debug.ui.internal.dialogs; |
2 | 2 |
3 import com.google.dart.tools.core.DartCore; | 3 import com.google.dart.tools.core.DartCore; |
4 import com.google.dart.tools.core.mobile.AndroidDebugBridge; | 4 import com.google.dart.tools.core.mobile.AndroidDebugBridge; |
5 import com.google.dart.tools.core.mobile.AndroidDevice; | 5 import com.google.dart.tools.core.mobile.AndroidDevice; |
6 import com.google.dart.tools.debug.ui.internal.mobile.MobileMainTab; | 6 import com.google.dart.tools.debug.ui.internal.mobile.MobileMainTab; |
7 import com.google.dart.tools.ui.internal.util.ExternalBrowserUtil; | 7 import com.google.dart.tools.ui.internal.util.ExternalBrowserUtil; |
8 | 8 |
9 import org.eclipse.core.runtime.IStatus; | 9 import org.eclipse.core.runtime.IStatus; |
10 import org.eclipse.core.runtime.Status; | 10 import org.eclipse.core.runtime.Status; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 descriptionLabel = new Link(container, SWT.WRAP); | 110 descriptionLabel = new Link(container, SWT.WRAP); |
111 GridData gd_descriptionLabel = new GridData(SWT.LEFT, SWT.CENTER, true, fals
e, 2, 1); | 111 GridData gd_descriptionLabel = new GridData(SWT.LEFT, SWT.CENTER, true, fals
e, 2, 1); |
112 gd_descriptionLabel.verticalIndent = 20; | 112 gd_descriptionLabel.verticalIndent = 20; |
113 gd_descriptionLabel.horizontalIndent = 20; | 113 gd_descriptionLabel.horizontalIndent = 20; |
114 descriptionLabel.setLayoutData(gd_descriptionLabel); | 114 descriptionLabel.setLayoutData(gd_descriptionLabel); |
115 descriptionLabel.setText("Unable to access the web server" | 115 descriptionLabel.setText("Unable to access the web server" |
116 + " on the developer machine from the mobile device.\n\n" | 116 + " on the developer machine from the mobile device.\n\n" |
117 + "Looks like port forwarding has not been setup between device and the
machine.\n" | 117 + "Looks like port forwarding has not been setup between device and the
machine.\n" |
118 + "Follow the steps listed under " // | 118 + "Follow the steps listed under " // |
119 + " <a href=\"" + MobileMainTab.MOBILE_DOC_URL + "\">Set up port forward
ing</a>\n" | 119 + " <a href=\"" + MobileMainTab.PORT_FORWARD_DOC_URL + "\">Set up port f
orwarding</a>\n" |
120 + "\n\nOnce you are done, use Test Connection to verify the setup."); | 120 + "\n\nOnce you are done, use Test Connection to verify the setup."); |
121 descriptionLabel.addSelectionListener(new SelectionListener() { | 121 descriptionLabel.addSelectionListener(new SelectionListener() { |
122 @Override | 122 @Override |
123 public void widgetDefaultSelected(SelectionEvent e) { | 123 public void widgetDefaultSelected(SelectionEvent e) { |
124 widgetSelected(e); | 124 widgetSelected(e); |
125 } | 125 } |
126 | 126 |
127 @Override | 127 @Override |
128 public void widgetSelected(SelectionEvent e) { | 128 public void widgetSelected(SelectionEvent e) { |
129 ExternalBrowserUtil.openInExternalBrowser(e.text.trim()); | 129 ExternalBrowserUtil.openInExternalBrowser(e.text.trim()); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 if (device == null) { | 196 if (device == null) { |
197 return new Status(IStatus.ERROR, DartCore.PLUGIN_ID, "No device connected"
); | 197 return new Status(IStatus.ERROR, DartCore.PLUGIN_ID, "No device connected"
); |
198 } | 198 } |
199 if (!device.isAuthorized()) { | 199 if (!device.isAuthorized()) { |
200 return new Status(IStatus.ERROR, DartCore.PLUGIN_ID, "Connected device is
not authorized"); | 200 return new Status(IStatus.ERROR, DartCore.PLUGIN_ID, "Connected device is
not authorized"); |
201 } | 201 } |
202 | 202 |
203 return debugBridge.isHtmlPageAccessible(device, pageUrl); | 203 return debugBridge.isHtmlPageAccessible(device, pageUrl); |
204 } | 204 } |
205 } | 205 } |
OLD | NEW |