blob: 4ca3603ca1fa151f6a7a03d58be0fcc71d580ad4 [file] [log] [blame]
/*******************************************************************************
* Copyright 2012 EclipseSource Muenchen GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
******************************************************************************/
package org.eclipse.emf.emfstore.client.ui.handlers;
import org.eclipse.emf.emfstore.client.model.ServerInfo;
import org.eclipse.emf.emfstore.client.ui.controller.UILoginSessionController;
/**
* Handler for logging into a selected server.<br/>
* It is assumed that the user previously has selected a {@link ServerInfo} instance.
*
* @author emueller
*/
public class ServerLoginHandler extends AbstractEMFStoreHandler {
/**
*
* {@inheritDoc}
*
* @see org.eclipse.emf.emfstore.client.ui.handlers.AbstractEMFStoreHandler#handle()
*/
@Override
public void handle() {
ServerInfo serverInfo = requireSelection(ServerInfo.class);
new UILoginSessionController(getShell(), serverInfo).execute();
}
}