Custom errors in Eclipse RCP application

不羁的心 提交于 2019-12-12 04:59:02

问题


I was looking for a way to provide users of an RCP application customized errors that will help them understand what causes some runtime errors. I created a custom Problems view and I create a marker each time an error occur. I'm showing in this view only markers of a custom marker type that are related to an annotation.

My questions:

1-Is there a better approach then this one ?

2-How to handle the errors that occur in a core plugin ? Is there a way to be notified in a ui plugin when an Activator method is called (like Activator.logError (..) ...) in a core plugin ?


回答1:


You can listen to logging events on the Eclipse log by calling:

Platform.addLogListener(listener);

where listener implements org.eclipse.core.runtime.ILogListener.



来源:https://stackoverflow.com/questions/45576195/custom-errors-in-eclipse-rcp-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!