Hi!

I have an observation to do about documentation.
There are examples that still uses the Action.perform() signature:


In the Actions Example:


private Action addSymbolAction = new Action(false) {
    @Override
    @SuppressWarnings("unchecked")
    public void perform() {
        ...
    }
};


In the MenuBar Example:

        Action.getNamedActions().put("fileOpen", new Action() {
            @Override
            public void perform() {
                fileBrowserSheet.open(window);
            }
        });

        Action.getNamedActions().put("cut", new Action(false) {
            @Override
            public void perform() {
                TextInput textInput =
(TextInput)window.getFocusDescendant();
                textInput.cut();
            }
        });




But in the API, this method requires a Component parameter.



Cheers!

Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

Reply via email to