Eclipse RCP MessageConsole: How to allow user to input and handle this listener?

后端 未结 1 1425
轮回少年
轮回少年 2021-01-23 00:42

I\'m writing an eclipse-plugin which creating a new Console. Please see my source code:

IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow(         


        
1条回答
  •  爱一瞬间的悲伤
    2021-01-23 00:48

    Use an IOConsole instead! MessageConsole is basically a read-only version of IOConsole.

    From MessageConsole.createPage(...):

    public IPageBookViewPage createPage(IConsoleView view) {
        IOConsolePage page = (IOConsolePage) super.createPage(view);
        page.setReadOnly();
        return page;
    }
    

    0 讨论(0)
提交回复
热议问题