Displaying a dialog box when the editor content is changed
I want to display a dialog box each time user changes editor contents. I think I have to use a document listener for that! But I do not know how to override the relevant methods inorder to detect the editor changes! how can I do it?
请先登录再写评论。
Editor switch listener:
Contents of editor changed listener:
Hi thanx in which method do I have to place this? Is it the project opened?
Yes, you can add e.g. the first listener in the 'projectOpened' method of your ProjectComponent.