Examples of ExitAction


Examples of org.tmatesoft.sqljet.browser.core.actions.ExitAction

        recentItem.setMnemonic('R');
       
        JMenuItem closeItem = fileMenu.add(new CloseAction(manager));
        closeItem.setMnemonic('C');
        fileMenu.add(new JSeparator());
        JMenuItem exitItem = fileMenu.add(new ExitAction(manager));
        exitItem.setAccelerator(KeyStroke.getKeyStroke("alt X"));
        exitItem.setMnemonic('x');
       
        JMenu helpMenu = new JMenu("Help");
        helpMenu.setMnemonic('H');
View Full Code Here

Examples of slash.navigation.gui.actions.ExitAction

        elevationServiceFacade = new ElevationServiceFacade();
    }

    private void initializeActions() {
        final ActionManager actionManager = getContext().getActionManager();
        actionManager.register("exit", new ExitAction());
        actionManager.register("print-map", new PrintMapAction(false));
        actionManager.register("print-map-and-route", new PrintMapAction(true));
        actionManager.register("print-profile", new PrintProfileAction());
        actionManager.register("find-place", new FindPlaceAction());
        actionManager.register("show-map-and-positionlist", new ShowMapAndPositionListAction());
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.action.ExitAction

        }

        StopRunningProfilesAction stopRunningAction = new StopRunningProfilesAction(profileManager, droidContext, this);
        if (stopRunningAction.execute()) {
            ProfileSelectionDialog dialog = new SaveAllProfilesDialog(this, droidContext.allDirtyProfiles());
            final ExitAction action = new ExitAction(droidContext, dialog, profileManager);
            action.addPropertyChangeListener(new PropertyChangeListener() {
                @Override
                public void propertyChange(PropertyChangeEvent evt) {
                    if (STATE.equals(evt.getPropertyName()) && evt.getNewValue().equals(SwingWorker.StateValue.DONE)
                            && !action.isCancelled()) {
                       
                       
                        setVisible(false);
                        log.info("Closing DROID.");
                        File tempDir = globalContext.getGlobalConfig().getTempDir();
                        ResourceUtils.attemptToDeleteTempFiles(tempDir);
                        // CHECKSTYLE:OFF
                        System.exit(0);
                        // CHECKSTYLE:ON
                    }
                }
            });

            action.start();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.