How to close the current editor tab?

Hi all,

I am new to the OpenAPI, and my Swing is pretty rusty too, so please forgive me if this question is totally off the mark.

I am playing around with the idea of a plugin. In it I've registered an EditorMouseListener, and on mouseReleased() I want to close the current editor tab (the equivalent of Ctrl-F4). What's the best way to do this? The method has a parameter of type EditorMouseEvent, from there I can get the Editor and Document and so on, but I just can't figure out how to close the actual tab.

Any ideas?

Thanks,

Rong

Please sign in to leave a comment.