View | Details | Raw Unified | Return to bug 249227 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/dd/mi/service/command/AbstractMIControl.java (-22 / +3 lines)
Lines 398-419 Link Here
398
    }
398
    }
399
399
400
    private void processCommandDone(CommandHandle commandHandle, ICommandResult result) {
400
    private void processCommandDone(CommandHandle commandHandle, ICommandResult result) {
401
    	
402
    	/*
403
    	 *  Provide tracking for out processing.
404
    	 */
405
    	if ( result != null ) {
406
    		MIInfo cmdResult = (MIInfo) result ;
407
    		MIOutput output =  cmdResult.getMIOutput();
408
    		// Only print the result record and not the out-of-band records.
409
    		// Out-of-band records have already been printed in processEvent()
410
    		MIPlugin.debug(MIPlugin.getDebugTime() + " " + output.getMIResultRecord() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
411
    	}
412
    	else
413
    	{
414
    		MIPlugin.debug(MIPlugin.getDebugTime() + " result output not available\n"); //$NON-NLS-1$
415
    	}
416
    	
417
        /*
401
        /*
418
         *  Tell the listeners we have completed this one.
402
         *  Tell the listeners we have completed this one.
419
         */
403
         */
Lines 423-429 Link Here
423
    }
407
    }
424
    
408
    
425
    private void processEvent(MIOutput output) {
409
    private void processEvent(MIOutput output) {
426
        MIPlugin.debug(MIPlugin.getDebugTime() + " " + output + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
427
        for (IEventListener processor : fEventProcessors) {
410
        for (IEventListener processor : fEventProcessors) {
428
            processor.eventReceived(output);
411
            processor.eventReceived(output);
429
        }
412
        }
Lines 549-559 Link Here
549
                    if (fOutputStream != null) {
532
                    if (fOutputStream != null) {
550
                        fOutputStream.write(str.getBytes());
533
                        fOutputStream.write(str.getBytes());
551
                        fOutputStream.flush();
534
                        fOutputStream.flush();
552
						getExecutor().execute(new DsfRunnable() {
535
553
	                        public void run() {
536
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$
554
	                    		MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$
555
	                        }
556
	                    });
557
                    }
537
                    }
558
                } catch (IOException e) {
538
                } catch (IOException e) {
559
                    // Shutdown thread in case of IO error.
539
                    // Shutdown thread in case of IO error.
Lines 585-590 Link Here
585
                String line;
565
                String line;
586
                while ((line = reader.readLine()) != null) {
566
                while ((line = reader.readLine()) != null) {
587
                    if (line.length() != 0) {
567
                    if (line.length() != 0) {
568
                        MIPlugin.debug(MIPlugin.getDebugTime() + " " + line); //$NON-NLS-1$
588
                    	processMIOutput(line);
569
                    	processMIOutput(line);
589
                    }
570
                    }
590
                }
571
                }

Return to bug 249227