blob: b16b578b2b6f750fc404c7233b3b8b700a4db627 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2013 CEA LIST.
*
*
* 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:
* Ansgar Radermacher ansgar.radermacher@cea.fr
*
*****************************************************************************/
package org.eclipse.papyrus.designer.transformation.core.transformations;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.papyrus.designer.languages.common.extensionpoints.ILangProjectSupport;
import org.eclipse.papyrus.designer.transformation.base.utils.ModelManagement;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.InstanceSpecification;
import org.eclipse.uml2.uml.Package;
/**
* Return information about the current values in the context of a transformation
* e.g. the current instance, the current port (container transformation), ...
* A part of these data changes during a single transformation chain, such as the
* copier and the current modelRoot, since each model split updates these. These
* variables are available on the instance level via the "current" attribute.
*/
public class TransformationContext {
public Package deploymentPlan;
public ModelManagement mm;
public IProject project;
public ILangProjectSupport projectSupport;
public Package modelRoot;
public LazyCopier copier;
// the element, to which transformations are currently applied.
public Classifier classifier;
public InstanceSpecification node;
public static TransformationContext current;
public static IProgressMonitor monitor;
public static Package initialSourceRoot;
public static Package initialDeploymentPlan;
}