eclipse plugin - Attach console to LaunchConfiguration -
i'm writing plugin implements ilaunchconfigurationdelegate
.
i have override method: launch(ilaunchconfiguration configuration, string mode, ilaunch launch, iprogressmonitor monitor);
can attach textconsole
ones in javaapplication
launch type when writing system.out.println()
?
i have in order launch has same lifecycle management console.
essentially ilaunchconfiguration
type container holds possible other ilaunchconfiguration
types. when launching launch container want log behaviour of others start in sequence. logging ideal in textconsole. example: 'hello world started.' 'hello world terminated', 'pi approximator started' ... etc.
afaik, there no steps necessary redirect std in/out eclipse console. common tab of every launch configuration type has allocate console option provides feature if enabled.
if launch configuration type not provide commontab
, can set idebuguiconstants.attr_capture_in_console
attribute of ilaunchconfiguration
true
.
for container launch, can allocate textconsole
write log messages to. debug/launch framework attaches consoles iprocess
instances , won't here may want processconsole
, processconsolemanager
adopt relevant part opening , discarding console.
alternatively, investigate if setting attr_capture_in_console
of container launch true , creating dummy iprocess
satisfies requirements of processconsolemanager
wrt consoles.
Comments
Post a Comment