Package net.sourceforge.marathon.util

Examples of net.sourceforge.marathon.util.AbstractSimpleAction


        showReportAction.setEnabled(false);
        return;
    }

    private AbstractSimpleAction createAction(final IMarathonAction action) {
        return new AbstractSimpleAction(action.getName(), action.getDescription(), action.getMneumonic(), action.getEnabledIcon(),
                action.getDisabledIcon()) {
            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                try {
View Full Code Here


            try {
                field.setAccessible(true);
                ISimpleAction annotation = field.getAnnotation(ISimpleAction.class);
                if (annotation == null)
                    continue;
                AbstractSimpleAction action = createAction(field.getName(), annotation);
                field.set(o, action);
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                field.setAccessible(accessible);
View Full Code Here

            iconDisabledS = name;
        Icon iconDisabled = findDisabledIcon(iconDisabledS);
        String description = annotation.description();
        if (description.equals(""))
            description = commandName;
        return new AbstractSimpleAction(commandName, description, mneumonic, icon, iconDisabled) {
            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent e) {
                try {
                    m.invoke(o);
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.util.AbstractSimpleAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.