java - override close action in eclipse editor -
I have an eclipse RCP application, in which I created an editor which spreads the EditorPart:
I want its I had tried Or there is any specific listener listening to the event near. I want to do this: You can use pass () editor to act in some release resource, so I have to take action or a method that just takes action before closing the event Came to want to override.
settlement () but for this to work on it for a long time.
@ override public zero-off () {// do some relational releases related work} < P> Update :. Basically I want to stop the event close to an editor
IPartListener For this purpose:
spreads yourEditor to the public class EditPart {@Override Public throws init (IEditorSite Site, IEditorInput Input) PartInitException {getSite () GetPage () AddPartListener (New IPartListener) {@Override Public Zero partOpened (IWorkbenchPart part) {// TODO Automatic Created Method Stub} @Override Public Zero partDeactivated (IWorkbenchPart part) {// TODO Automatic Created Method Stub} @Override Public Zero partClosed {IWorkbenchPart part} {// TODO Automatic Created Method Stub} @Override Public Zero partBroughtToTop (IWorkbenchPart part) {// TODO Automatic Created Method Stub} @Override Public Zero Part Active (IWorkbenchPart part) {// TODO Auto generated Method stub}}); }}
Comments
Post a Comment