Package org.apache.tools.ant.gui.event

Examples of org.apache.tools.ant.gui.event.OpenRequestEvent


        chooser.addChoosableFileFilter(filter);
        int val = chooser.showOpenDialog(getContext().getParentFrame());
        if(val == JFileChooser.APPROVE_OPTION) {
            File selected = chooser.getSelectedFile();
            getContext().getEventBus().postEvent(
                new OpenRequestEvent(getContext(), selected));
        }
    }
View Full Code Here


        while(i.hasNext()) {
            String name = (String) map.get(i.next());
           
            // Setup an event which will be sent when
            // the menu item is pressed.
            OpenRequestEvent event = new OpenRequestEvent(
            getContext(), new File(name));
            AntMenu subMenu = new AntMenu(getContext(),
            event, name);
           
            JMenuItem item = _menu.add(subMenu);
View Full Code Here

        chooser.addChoosableFileFilter(filter);
        int val = chooser.showOpenDialog(getContext().getParentFrame());
        if(val == JFileChooser.APPROVE_OPTION) {
            File selected = chooser.getSelectedFile();
            getContext().getEventBus().postEvent(
                new OpenRequestEvent(getContext(), selected));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.gui.event.OpenRequestEvent

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.