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 |
11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
12 * the License. | 12 * the License. |
13 */ | 13 */ |
14 | 14 |
15 package com.google.dart.tools.debug.core; | 15 package com.google.dart.tools.debug.core; |
16 | 16 |
17 import com.google.dart.tools.core.DartCore; | 17 import com.google.dart.tools.core.DartCore; |
18 import com.google.dart.tools.debug.core.dartium.DartiumDebugTarget; | 18 import com.google.dart.tools.debug.core.dartium.DartiumDebugTarget; |
19 | 19 |
| 20 import org.eclipse.core.runtime.CoreException; |
20 import org.eclipse.core.runtime.IConfigurationElement; | 21 import org.eclipse.core.runtime.IConfigurationElement; |
21 import org.eclipse.core.runtime.IExtensionPoint; | 22 import org.eclipse.core.runtime.IExtensionPoint; |
22 import org.eclipse.core.runtime.IExtensionRegistry; | 23 import org.eclipse.core.runtime.IExtensionRegistry; |
23 import org.eclipse.core.runtime.Platform; | 24 import org.eclipse.core.runtime.Platform; |
24 | 25 |
25 import java.io.File; | 26 import java.io.File; |
26 | 27 |
27 /** | 28 /** |
28 * A helper class to allow core classes to communicate with the UI. | 29 * A helper class to allow core classes to communicate with the UI. |
29 */ | 30 */ |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 protected DebugUIHelper() { | 107 protected DebugUIHelper() { |
107 | 108 |
108 } | 109 } |
109 | 110 |
110 public abstract void activateApplication(File application, String name); | 111 public abstract void activateApplication(File application, String name); |
111 | 112 |
112 public abstract void handleDevtoolsDisconnect(DartiumDebugTarget target); | 113 public abstract void handleDevtoolsDisconnect(DartiumDebugTarget target); |
113 | 114 |
114 public abstract void openBrowserTab(String url); | 115 public abstract void openBrowserTab(String url); |
115 | 116 |
| 117 public void showError(String title, CoreException e) { |
| 118 showError(title, e.getMessage()); |
| 119 } |
| 120 |
116 public abstract void showError(String title, String message); | 121 public abstract void showError(String title, String message); |
117 | 122 |
118 public abstract void showStatusLineMessage(String message); | 123 public abstract void showStatusLineMessage(String message); |
119 | 124 |
120 } | 125 } |
OLD | NEW |