简体   繁体   中英

How to set custom console by default in Eclipse plug-in project

I have a custom Eclipse console. I need to set this console by default on project load (see attachment). Any solution will be helpful. Thanks in advance

在此处输入图片说明

You can use perspective extensions or create your own perspective to place the Console View at the desired location. However, the Console View , does not show any specific console when it is shown.

To bring up your console page you'd need to listen for the Console View to become visible and then select the desired console.

An IPartListener that can be registered at the IPartService (or IWorkbenchPage ) will tell you when a view is opened.

But great care must be taken to avoid unwanted side effects, eg a user may be in the process to open a specific console and certainly won't be amused if your listener code switches to a differnt console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM