cdt/cdt_5_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java
equal
deleted
inserted
replaced
259 * @param fileNames the absolute paths of the executables to import |
259 * @param fileNames the absolute paths of the executables to import |
260 * @param monitor progress monitor |
260 * @param monitor progress monitor |
261 */ |
261 */ |
262 public void importExecutables(final String[] fileNames, IProgressMonitor monitor) { |
262 public void importExecutables(final String[] fileNames, IProgressMonitor monitor) { |
263 |
263 |
|
264 boolean handled = false; |
264 monitor.beginTask("Import Executables", executableImporters.size()); |
265 monitor.beginTask("Import Executables", executableImporters.size()); |
265 synchronized (executableImporters) { |
266 synchronized (executableImporters) { |
266 Collections.sort(executableImporters, new Comparator<IExecutableImporter>() { |
267 Collections.sort(executableImporters, new Comparator<IExecutableImporter>() { |
267 |
268 |
268 public int compare(IExecutableImporter arg0, IExecutableImporter arg1) { |
269 public int compare(IExecutableImporter arg0, IExecutableImporter arg1) { |
274 return -1; |
275 return -1; |
275 return 0; |
276 return 0; |
276 }}); |
277 }}); |
277 |
278 |
278 for (IExecutableImporter importer : executableImporters) { |
279 for (IExecutableImporter importer : executableImporters) { |
279 boolean handled = importer.importExecutables(fileNames, new SubProgressMonitor(monitor, 1)); |
280 handled = importer.importExecutables(fileNames, new SubProgressMonitor(monitor, 1)); |
280 if (handled || monitor.isCanceled()) { |
281 if (handled || monitor.isCanceled()) { |
281 break; |
282 break; |
282 } |
283 } |
283 } |
284 } |
284 } |
285 } |
285 |
286 |
286 scheduleRefresh(); |
287 if (handled) |
|
288 scheduleRefresh(); |
287 } |
289 } |
288 |
290 |
289 /** |
291 /** |
290 * Determines if the given executable is currently known by the manager |
292 * Determines if the given executable is currently known by the manager |
291 * @param exePath the absolute path to the executable |
293 * @param exePath the absolute path to the executable |