如何从eclipse插件开发中的控制台选项卡视图中读取消息 [英] How to read message from console tab view in eclipse plugin development

查看:149
本文介绍了如何从eclipse插件开发中的控制台选项卡视图中读取消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要求是从IConsoleConstants.ID_CONSOLE_VIEW读取消息并将其写入文本文件。

requirement is to read message from IConsoleConstants.ID_CONSOLE_VIEW and write it into text file.

推荐答案

myConsole (MessageConsole类型)是对您的控制台的引用。以下代码将给你所需的。

Say myConsole (of type MessageConsole) is the reference to your console. The below code will give you the required.

myConsole.getDocument().get();

这篇关于如何从eclipse插件开发中的控制台选项卡视图中读取消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆