How to read message from console tab view in eclipse plugin development

后端 未结 2 1873
孤独总比滥情好
孤独总比滥情好 2021-01-24 05:28

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

2条回答
  •  被撕碎了的回忆
    2021-01-24 06:05

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

    myConsole.getDocument().get();
    

提交回复
热议问题