blob: 18f57204d76d12473b4516562a7d0ea608598fc3 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2017 CEA LIST 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:
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
*****************************************************************************/
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.1 to SysML 1.4.
*/
helper getManagerInS14Configuration(existingAxisManagerRepresentations:Set(nattableaxisconfiguration::AxisManagerRepresentation), oldManager:nattableaxisconfiguration::AxisManagerRepresentation) : nattableaxisconfiguration::AxisManagerRepresentation {
return existingAxisManagerRepresentations->any(curr | curr.axisManagerId = oldManager.axisManagerId);
}
/**
* Get the first model kind in the papyrus configuration.
**/
helper getPrototypeInS14Viewpoint(rootS14Prototype:viewpoint::PapyrusConfiguration) : ecore::EObject {
return rootS14Prototype.viewpoints->any(true).modelKinds->any(true).oclAsType(ecore::EObject);
}