blob: 43c9fb1871df3695e1a456f0bcdd8c1ce4bde8ac [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 ALL4TEC & CEA LIST.
* 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:
* ALL4TEC & CEA LIST - initial API and implementation
******************************************************************************/
package org.polarsys.esf.core.importmodel.common.handlers;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.polarsys.esf.core.importmodel.common.commands.UMLImportModelFromFileCommand;
/**
* Handler class for import UML models.
*
* @author $Author: ymunoz $
* @version $Revision: 168 $
*/
public final class UMLImportModelHandler
extends AbstractImportModelHandler {
/**
* Default constructor.
*/
public UMLImportModelHandler() {
super();
}
/**
* {@inheritDoc}
*/
@Override
protected ICommand getGMFCommand(TransactionalEditingDomain domain) {
return new UMLImportModelFromFileCommand(
domain,
getSelectedElements(),
getSelection());
}
}