debugger/debug_ui_tools_swing/src/main/com/thesett/aima/logic/fol/wam/debugger/uifactory/impl/SwingKeyCombinationBuilder.java
private String modifiersToString(int modifiers)
    {
        String result = "";

        if ((modifiers & InputEvent.SHIFT_MASK) != 0)
        {
            result += "shift ";
        }

        if ((modifiers & InputEvent.CTRL_MASK) != 0)
        {
            result += "ctrl ";
        }

        if ((modifiers & InputEvent.META_MASK) != 0)
        {
            result += "meta ";
        }

        if ((modifiers & InputEvent.ALT_MASK) != 0)
        {
            result += "alt ";
        }

        if ((modifiers & InputEvent.ALT_GRAPH_MASK) != 0)
        {
            result += "altGraph ";
        }

        return result;
    }
private String modifiersToString(int modifiers)
    {
        String result = "";

        if ((modifiers & InputEvent.SHIFT_MASK) != 0)
        {
            result += "shift ";
        }

        if ((modifiers & InputEvent.CTRL_MASK) != 0)
        {
            result += "ctrl ";
        }

        if ((modifiers & InputEvent.META_MASK) != 0)
        {
            result += "meta ";
        }

        if ((modifiers & InputEvent.ALT_MASK) != 0)
        {
            result += "alt ";
        }

        if ((modifiers & InputEvent.ALT_GRAPH_MASK) != 0)
        {
            result += "altGraph ";
        }

        return result;
    }
private String modifiersToString ( int modifiers ) { String result = "" ; if ( ( modifiers & InputEvent . SHIFT_MASK ) != 0 ) { result += "shift " ; } if ( ( modifiers & InputEvent . CTRL_MASK ) != 0 ) { result += "ctrl " ; } if ( ( modifiers & InputEvent . META_MASK ) != 0 ) { result += "meta " ; } if ( ( modifiers & InputEvent . ALT_MASK ) != 0 ) { result += "alt " ; } if ( ( modifiers & InputEvent . ALT_GRAPH_MASK ) != 0 ) { result += "altGraph " ; } return result ; }
Converts the modifiers to a specification string for KeyStroke.

@param  modifiers The modifiers.

@return A fragment of the key specification string used by KeyStroke.
Converts the modifiers to a specification string for KeyStroke .