blob: 7f9a3f3be28c2eacd9305d2c82ca7bf27207470e [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2019 CEA LIST, 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:
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
*
*****************************************************************************/
import org.eclipse.papyrus.interoperability.sysml16.sysml14.blackboxes.table.TableBlackboxHelper;
modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
modeltype nattable "strict" uses 'http://www.eclipse.org/papyrus/nattable/model';
modeltype viewpoint "strict" uses 'http://www.eclipse.org/papyrus/infra/viewpoints/configuration';
modeltype nattableconfiguration "strict" uses "http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration";
modeltype nattableaxisconfiguration "strict" uses "http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration";
modeltype nattableaxisprovider"strict" uses "http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider";
modeltype nattableaxis "strict" uses "http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis";
modeltype nattablestyle "strict" uses "http://www.eclipse.org/papyrus/nattable/model/table/nattablestyle";
/**
* This file provides useful method for SysML tables.
*/
library SysMLTablesUtils;
/**
* This allows to get the corresponding manager from SysML 1.4 to SysML 1.6.
*/
helper getManagerInS16Configuration(existingAxisManagerRepresentations:Set(nattableaxisconfiguration::AxisManagerRepresentation), oldManagerId:String) : nattableaxisconfiguration::AxisManagerRepresentation {
return existingAxisManagerRepresentations->any(curr | curr.axisManagerId = oldManagerId);
}