blob: 5f7e01732d54e7aa9e0603482322aebe11a2047f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2016 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Johannes Faltermeier - initial API and implementation
******************************************************************************/
package org.eclipse.emfforms.spi.swt.core.data;
import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
import org.eclipse.emf.ecp.view.spi.model.VElement;
/**
* This service is used by renderers to set data on SWT controls.
*
* @author Johannes Faltermeier
* @since 1.9
*
*/
public interface EMFFormsSWTDataService {
/**
* Return an ID for the given element.
*
* @param element the {@link VElement}
* @param viewModelContext the {@link ViewModelContext}
* @return the id
*/
String getId(VElement element, ViewModelContext viewModelContext);
}