/*******************************************************************************
* Copyright (c) 2012-2013 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Edgar
******************************************************************************/
package org.eclipse.emf.emfstore.internal.client.ui.handlers;
import org.eclipse.emf.emfstore.internal.client.model.ServerInfo;
import org.eclipse.emf.emfstore.internal.client.ui.controller.UILogoutSessionController;
/**
*
* @author Edgar
*
*/
public class ChangeSessionHandler extends AbstractEMFStoreHandler {
@Override
public void handle() {
new UILogoutSessionController(getShell(), requireSelection(
ServerInfo.class).getLastUsersession().toAPI()).execute();
}
}