I have an Eclipse RCP application with own editor. Class editor extends from org.eclipse.ui.texteditor.AbstractTextEditor
and it is added in extension in
For editor close event do something like this:
IWorkbenchPage page = ...;
//adding a listener
IPartListener2 pl = new IPartListener2() {
// ... Other methods
public void partClosed(IWorkbenchPartReference partRef)
{
//if(partRef.getId().equals(youreditor.id){ /* do something*/ }
}
};
page.addPartListener(pl);
Have a look at these links: