public void handleDebugEvents ( DebugEvent [ ] events ) { for ( int i = 0 ; i < events . length ; i ++ ) { DebugEvent event = events [ i ] ; if ( event . getSource ( ) . equals ( getProcess ( ) ) ) { if ( event . getKind ( ) == DebugEvent . TERMINATE ) { closeStreams ( ) ; DebugPlugin . getDefault ( ) . removeDebugEventListener ( this ) ; } resetName ( ) ; } } }
Notify listeners when name changes .