blob: b70eec7b0f7e390d937e33ab9c3b9f0852f82784 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2017 Obeo.
* 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:
* Obeo - initial API and implementation and/or initial documentation
* ...
*******************************************************************************/
package org.eclipse.intent.mapping.sirius.ide.ui.command;
import org.eclipse.intent.mapping.ide.ui.command.RemoveFromSynchronizationPaletteHandler;
/**
* Removes selected semantic elements {@link org.eclipse.intent.mapping.base.ILocationDescriptor
* ILocationDescriptor} from the
* {@link org.eclipse.intent.mapping.ide.IdeMappingUtils#getSynchronizationPalette() synchronization palette}.
*
* @author <a href="mailto:yvan.lussaud@obeo.fr">Yvan Lussaud</a>
*/
public class RemoveSemanticElementFromSynchronizationPaletteHandler extends RemoveFromSynchronizationPaletteHandler {
@Override
protected Object getElementFromSelectedObject(Object selected) {
return SiriusMappingUtils.getSemanticElementFromSelectedObject(selected);
}
}