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 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 /** | 166 /** |
167 * Execute the pub operation. This is overridden when testing this class to re
cord the intent to | 167 * Execute the pub operation. This is overridden when testing this class to re
cord the intent to |
168 * run pub but prevent actually running pub. | 168 * run pub but prevent actually running pub. |
169 * | 169 * |
170 * @param container the working directory in which pub should be run (not <cod
e>null</code>) | 170 * @param container the working directory in which pub should be run (not <cod
e>null</code>) |
171 * @param monitor the progress monitor (not <code>null</code>) | 171 * @param monitor the progress monitor (not <code>null</code>) |
172 */ | 172 */ |
173 protected void runPub(IContainer container, final IProgressMonitor monitor) { | 173 protected void runPub(IContainer container, final IProgressMonitor monitor) { |
174 if (DartCore.getPlugin().isAutoRunPubEnabled()) { | 174 if (DartCore.getPlugin().isAutoRunPubEnabled()) { |
175 new RunPubJob(container, RunPubJob.INSTALL_COMMAND).schedule(); | 175 new RunPubJob(container, RunPubJob.INSTALL_COMMAND).run(monitor); |
176 } else { | 176 } else { |
177 MessageConsole console = DartCore.getConsole(); | 177 MessageConsole console = DartCore.getConsole(); |
178 console.printSeparator(""); | 178 console.printSeparator(""); |
179 console.println("Run Tools > Pub Install to install packages"); | 179 console.println("Run Tools > Pub Install to install packages"); |
180 } | 180 } |
181 } | 181 } |
182 } | 182 } |
OLD | NEW |