FileDocCategorySizeDatePackage
ExitAction.javaAPI DocAndroid 1.5 API1653Wed May 06 22:41:10 BST 2009com.android.hierarchyviewer.ui.action

ExitAction

public class ExitAction extends AbstractAction

Fields Summary
public static final String
ACTION_NAME
private com.android.hierarchyviewer.ui.Workspace
mWorkspace
Constructors Summary
public ExitAction(com.android.hierarchyviewer.ui.Workspace workspace)


       
        putValue(NAME, "Quit");
        putValue(SHORT_DESCRIPTION, "Quit");
        putValue(LONG_DESCRIPTION, "Quit");
        putValue(MNEMONIC_KEY, KeyEvent.VK_Q);
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_Q,
                Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
        this.mWorkspace = workspace;
    
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)

        mWorkspace.cleanupDevices();
        mWorkspace.dispose();
        DeviceBridge.terminate();
        System.exit(0);