Lines 360-365
Link Here
|
360 |
abstract public MIControlDMContext getControlDMContext(); |
360 |
abstract public MIControlDMContext getControlDMContext(); |
361 |
|
361 |
|
362 |
/** |
362 |
/** |
|
|
363 |
* @since 1.1 |
364 |
*/ |
365 |
public AbstractCLIProcess getCLIProcess() { return null; }; |
366 |
|
367 |
|
368 |
/** |
363 |
* @since 1.1 |
369 |
* @since 1.1 |
364 |
*/ |
370 |
*/ |
365 |
public boolean isActive() { |
371 |
public boolean isActive() { |
Lines 524-529
Link Here
|
524 |
fOutputStream.flush(); |
530 |
fOutputStream.flush(); |
525 |
|
531 |
|
526 |
MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$ |
532 |
MIPlugin.debug(MIPlugin.getDebugTime() + " " + str); //$NON-NLS-1$ |
|
|
533 |
AbstractCLIProcess cli = getCLIProcess(); |
534 |
if (cli != null) { |
535 |
cli.getConsoleOutputStream().write(str.getBytes()); |
536 |
cli.getConsoleOutputStream().flush(); |
537 |
} |
527 |
} |
538 |
} |
528 |
} catch (IOException e) { |
539 |
} catch (IOException e) { |
529 |
// Shutdown thread in case of IO error. |
540 |
// Shutdown thread in case of IO error. |
Lines 556-561
Link Here
|
556 |
while ((line = reader.readLine()) != null) { |
567 |
while ((line = reader.readLine()) != null) { |
557 |
if (line.length() != 0) { |
568 |
if (line.length() != 0) { |
558 |
MIPlugin.debug(MIPlugin.getDebugTime() + " " + line +"\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
569 |
MIPlugin.debug(MIPlugin.getDebugTime() + " " + line +"\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
570 |
AbstractCLIProcess cli = getCLIProcess(); |
571 |
if (cli != null) { |
572 |
cli.getConsoleOutputStream().write(line.getBytes()); |
573 |
cli.getConsoleOutputStream().write('\n'); |
574 |
cli.getConsoleOutputStream().flush(); |
575 |
} |
559 |
processMIOutput(line); |
576 |
processMIOutput(line); |
560 |
} |
577 |
} |
561 |
} |
578 |
} |