Lines 14-21
Link Here
|
14 |
import java.io.IOException; |
14 |
import java.io.IOException; |
15 |
import java.text.MessageFormat; |
15 |
import java.text.MessageFormat; |
16 |
import java.util.ArrayList; |
16 |
import java.util.ArrayList; |
|
|
17 |
import java.util.Collection; |
18 |
import java.util.HashMap; |
17 |
import java.util.HashSet; |
19 |
import java.util.HashSet; |
|
|
20 |
import java.util.Iterator; |
18 |
import java.util.List; |
21 |
import java.util.List; |
|
|
22 |
import java.util.Map; |
19 |
import java.util.MissingResourceException; |
23 |
import java.util.MissingResourceException; |
20 |
import java.util.ResourceBundle; |
24 |
import java.util.ResourceBundle; |
21 |
import java.util.Set; |
25 |
import java.util.Set; |
Lines 337-342
Link Here
|
337 |
private AsmTextTools fAsmTextTools; |
341 |
private AsmTextTools fAsmTextTools; |
338 |
private ProblemMarkerManager fProblemMarkerManager; |
342 |
private ProblemMarkerManager fProblemMarkerManager; |
339 |
private BuildConsoleManager fBuildConsoleManager; |
343 |
private BuildConsoleManager fBuildConsoleManager; |
|
|
344 |
private Map fSubConsoleManagers = new HashMap(); |
340 |
private ResourceAdapterFactory fResourceAdapterFactory; |
345 |
private ResourceAdapterFactory fResourceAdapterFactory; |
341 |
private CElementAdapterFactory fCElementAdapterFactory; |
346 |
private CElementAdapterFactory fCElementAdapterFactory; |
342 |
|
347 |
|
Lines 416-421
Link Here
|
416 |
return fBuildConsoleManager; |
421 |
return fBuildConsoleManager; |
417 |
} |
422 |
} |
418 |
|
423 |
|
|
|
424 |
public IBuildConsoleManager getSubConsoleManager(String name, String id, String contextId) { |
425 |
BuildConsoleManager manager = (BuildConsoleManager)fSubConsoleManagers.get(id); |
426 |
if (manager == null ) { |
427 |
manager = new BuildConsoleManager(); |
428 |
fSubConsoleManagers.put(id, manager); |
429 |
manager.startup(name, id, contextId); |
430 |
} |
431 |
return manager; |
432 |
} |
433 |
|
419 |
/* (non-Javadoc) |
434 |
/* (non-Javadoc) |
420 |
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) |
435 |
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) |
421 |
*/ |
436 |
*/ |
Lines 443-448
Link Here
|
443 |
} |
458 |
} |
444 |
if (fImageDescriptorRegistry != null) |
459 |
if (fImageDescriptorRegistry != null) |
445 |
fImageDescriptorRegistry.dispose(); |
460 |
fImageDescriptorRegistry.dispose(); |
|
|
461 |
|
462 |
if (!fSubConsoleManagers.isEmpty()) { |
463 |
Collection x = fSubConsoleManagers.values(); |
464 |
for (Iterator i = x.iterator(); i.hasNext(); ) { |
465 |
BuildConsoleManager b = (BuildConsoleManager)i.next(); |
466 |
b.shutdown(); |
467 |
} |
468 |
fSubConsoleManagers.clear(); |
469 |
} |
470 |
|
446 |
if ( fBuildConsoleManager != null ) { |
471 |
if ( fBuildConsoleManager != null ) { |
447 |
fBuildConsoleManager.shutdown(); |
472 |
fBuildConsoleManager.shutdown(); |
448 |
fBuildConsoleManager = null; |
473 |
fBuildConsoleManager = null; |