Package org.fcrepo.client.actions

Source Code of org.fcrepo.client.actions.Login

/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.client.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.fcrepo.client.Administrator;
import org.fcrepo.client.LoginDialog;


/**
* Action for launching the login window.
*
* @author Chris Wilper
*/
public class Login
        extends AbstractAction {

    private static final long serialVersionUID = 1L;

    public Login() {
        super("Change Repository...");
    }

    public void actionPerformed(ActionEvent ae) {
        try {
            LoginDialog ld = new LoginDialog();
        } catch (Exception e) {
            Administrator.showErrorDialog(Administrator.getDesktop(),
                                          "Login Error",
                                          e.getClass().getName() + ": "
                                                  + e.getMessage(),
                                          e);
        }
    }

}
TOP

Related Classes of org.fcrepo.client.actions.Login

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.