ide/src/wombat/util/files/DocumentManager.java
@Override
    public void focusGained(FocusEvent e) {
        if (!(e.getSource() instanceof Component))
            return;

        Component c = (Component) e.getSource();
        while (c != null)
        {
            if (c instanceof SchemeTextArea)
            {
                activeDocument = (SchemeTextArea) c;
                return;
            }

            c = c.getParent();
        }
    }
/**
     * Keep track of which text area last had focus.
     * @param e The event.
     */
Keep track of which text area last had focus.
@param e The event.
Keep track of which text area last had focus . @param e The event .
@Override
    public void focusGained(FocusEvent e) {
        if (!(e.getSource() instanceof Component))
            return;
        Component c = (Component) e.getSource();
        while (c != null)
        {
            if (c instanceof SchemeTextArea)
            {
                activeDocument = (SchemeTextArea) c;
                return;
            }
            c = c.getParent();
        }
    }
@ Override public void focusGained ( FocusEvent e ) { if ( ! ( e . getSource ( ) instanceof Component ) ) return ; Component c = ( Component ) e . getSource ( ) ; while ( c != null ) { if ( c instanceof SchemeTextArea ) { activeDocument = ( SchemeTextArea ) c ; return ; } c = c . getParent ( ) ; } }
Keep track of which text area last had focus.
Keep track of which text area last had focus .