如何在Pure Eclipse 4 RCP中实现控制台视图

时间:2016-10-20 12:32:23

标签: java eclipse eclipse-plugin eclipse-rcp e4

我在e4xmi中创建了一个应该像控制台视图一样的部分。如何将此部件作为视图的控制台。

1 个答案:

答案 0 :(得分:1)

There is no support for a console view or launching programs in a pure e4 RCP so you are going to have to craft everything yourself.

If you are using ProcessBuilder or Runtime.exec to launch a program you just need to set up threads to read the output of the program and send it to a part.

The part could use something like the JFace SourceViewer to display the output.