public void dispose ( ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Disposing of editor " + getId ( ) ) ; } context . register ( GlobalCommandIds . SAVE , null ) ; context . register ( GlobalCommandIds . SAVE_AS , null ) ; //descriptor.removePropertyChangeListener((PropertyChangeListener)context.getPane()); concreteDispose ( ) ; }
This method is called when an editor is removed from the workspace .