diff options
author | Francois Le Fevre - CEA | 2016-09-21 21:04:13 +0000 |
---|---|---|
committer | Francois Le Fevre - CEA | 2016-09-22 08:27:40 +0000 |
commit | 05583bbee2520b1671086b39232d86b52c4eb896 (patch) | |
tree | 35bfb6ad9e7ce9b591720441b2d737dde7de5bbc | |
parent | f68ba55d4b8c9837e94c3d91dab381ef30b52f48 (diff) | |
download | org.eclipse.papyrus-designer-modular.tar.gz org.eclipse.papyrus-designer-modular.tar.xz org.eclipse.papyrus-designer-modular.zip |
- Fixes to validation plugin
- Make component feature depend on main transformation feature
- Target platform change for milestone
Change-Id: I8898cd3f9d5872d5e6f0736eb160d43bb9923692
Signed-off-by: Francois Le Fevre - CEA <francois.le-fevre@cea.fr>
Signed-off-by: Ansgar Radermacher <ansgar.radermacher@cea.fr>
10 files changed, 26 insertions, 38 deletions
diff --git a/components/org.eclipse.papyrus.designer.components.validation/META-INF/MANIFEST.MF b/components/org.eclipse.papyrus.designer.components.validation/META-INF/MANIFEST.MF index b89c19b73..f8dac5da4 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/META-INF/MANIFEST.MF +++ b/components/org.eclipse.papyrus.designer.components.validation/META-INF/MANIFEST.MF @@ -2,10 +2,14 @@ Manifest-Version: 1.0 Require-Bundle: org.eclipse.core.runtime, org.eclipse.uml2.uml;bundle-version="3.0.1", org.eclipse.emf.validation;bundle-version="1.3.0", - org.eclipse.papyrus.designer.transformation.core;bundle-version="0.7.5", - org.eclipse.papyrus.designer.components.fcm.profile;bundle-version="0.7.4", org.eclipse.ui, - org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0" + org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0", + org.eclipse.papyrus.designer.languages.idl.codegen, + org.eclipse.papyrus.designer.components.transformation;bundle-version="0.7.5", + org.eclipse.papyrus.designer.transformation.base;bundle-version="0.7.5", + org.eclipse.papyrus.designer.transformation.core;bundle-version="0.7.5", + org.eclipse.papyrus.designer.components.fcm.profile;bundle-version="0.7.5", + org.eclipse.papyrus.designer.transformation.library;bundle-version="0.7.5" Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-Version: 0.7.5.qualifier @@ -15,3 +19,4 @@ Bundle-Activator: org.eclipse.papyrus.designer.components.validation.Activator Bundle-ManifestVersion: 2 Bundle-SymbolicName: org.eclipse.papyrus.designer.components.validation;singleton:=true Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Import-Package: org.eclipse.papyrus.designer.deployment.tools diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/AggregationKindValid.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/AggregationKindValid.java index eeb10681c..9782166ab 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/AggregationKindValid.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/AggregationKindValid.java @@ -10,7 +10,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.ConfigurationProperty; -import org.eclipse.papyrus.designer.components.transformation.core.Utils; +import org.eclipse.papyrus.designer.deployment.tools.DepUtils; import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil; import org.eclipse.uml2.uml.AggregationKind; import org.eclipse.uml2.uml.Class; @@ -45,7 +45,7 @@ public class AggregationKindValid extends AbstractModelConstraint { if (type instanceof Class) { AggregationKind aggKind = attribute.getAggregation(); if (aggKind != AggregationKind.COMPOSITE_LITERAL) { - if (StereotypeUtil.isApplicable(attribute, ConfigurationProperty.class) && !Utils.isSingleton((Class) type)) { + if (StereotypeUtil.isApplicable(attribute, ConfigurationProperty.class) && !DepUtils.isSingleton((Class) type)) { // no composition, but not singleton: warn user to make up a proper deployment plan // validation has been made Qompass specific by checking whether the Configuration attribute is applicable diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ConnectorConnectable.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ConnectorConnectable.java index 5a1dd4912..58680b39f 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ConnectorConnectable.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ConnectorConnectable.java @@ -18,8 +18,8 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.InteractionComponent; -import org.eclipse.papyrus.designer.components.transformation.core.templates.ConnectorBinding; -import org.eclipse.papyrus.designer.components.transformation.core.transformations.TransformationException; +import org.eclipse.papyrus.designer.components.transformation.templates.ConnectorBinding; +import org.eclipse.papyrus.designer.transformation.base.utils.TransformationException; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Connector; import org.eclipse.uml2.uml.util.UMLUtil; diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ExecutorIsNotUsedAsPartName.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ExecutorIsNotUsedAsPartName.java index 78e57cddd..43b7985e6 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ExecutorIsNotUsedAsPartName.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/ExecutorIsNotUsedAsPartName.java @@ -18,7 +18,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.RuleApplication; -import org.eclipse.papyrus.designer.components.transformation.core.transformations.container.ContainerTrafo; +import org.eclipse.papyrus.designer.components.transformation.container.ContainerTrafo; import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Property; @@ -38,9 +38,9 @@ public class ExecutorIsNotUsedAsPartName extends AbstractModelConstraint if (StereotypeUtil.isApplied(class_, RuleApplication.class)) { // limit check to classes applying a container rule. for (Property attribute : class_.getOwnedAttributes()) { - if (attribute.getName().equals(ContainerTrafo.executorPartName)) { + //FIXME if (attribute.getName().equals(ContainerTrafo.executorPartName)) { return ctx.createFailureStatus("A property may not use the reserved name \"_executor\""); - } + //} } } return ctx.createSuccessStatus(); diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/InitialEntryPoints.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/InitialEntryPoints.java index 8badde136..746f717d3 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/InitialEntryPoints.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/InitialEntryPoints.java @@ -20,8 +20,8 @@ import org.eclipse.emf.common.util.EList; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.DeploymentPlan; -import org.eclipse.papyrus.designer.components.transformation.core.deployment.BootLoaderGen; -import org.eclipse.papyrus.designer.components.transformation.core.deployment.DepUtils; +import org.eclipse.papyrus.designer.deployment.tools.DepUtils; +import org.eclipse.papyrus.designer.transformation.library.transformations.AbstractBootLoaderGen; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.Classifier; import org.eclipse.uml2.uml.InstanceSpecification; @@ -66,7 +66,7 @@ public class InitialEntryPoints extends AbstractModelConstraint { Classifier cl = DepUtils.getClassifier(is); if (cl instanceof Class) { Class implementation = (Class) cl; - if (BootLoaderGen.hasUnconnectedStartRoutine(null, implementation, null)) { + if (AbstractBootLoaderGen.hasUnconnectedStartRoutine(null, implementation, null)) { entryPoints.add(implementation.getName()); } } diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/SystemHasNoPorts.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/SystemHasNoPorts.java index f68bb553d..16b852f1b 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/SystemHasNoPorts.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/SystemHasNoPorts.java @@ -18,7 +18,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.DeploymentPlan; -import org.eclipse.papyrus.designer.components.transformation.core.deployment.DepUtils; +import org.eclipse.papyrus.designer.deployment.tools.DepUtils; import org.eclipse.uml2.uml.Class; import org.eclipse.uml2.uml.InstanceSpecification; import org.eclipse.uml2.uml.Package; diff --git a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/TemplateRefWithoutBinding.java b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/TemplateRefWithoutBinding.java index 583f8ef2f..82908becd 100644 --- a/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/TemplateRefWithoutBinding.java +++ b/components/org.eclipse.papyrus.designer.components.validation/src/org/eclipse/papyrus/designer/components/validation/constraints/TemplateRefWithoutBinding.java @@ -18,7 +18,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.emf.validation.AbstractModelConstraint; import org.eclipse.emf.validation.IValidationContext; import org.eclipse.papyrus.designer.components.FCM.DerivedElement; -import org.eclipse.papyrus.designer.components.transformation.core.templates.TemplateUtils; +import org.eclipse.papyrus.designer.transformation.core.templates.TemplateUtils; import org.eclipse.papyrus.uml.tools.utils.StereotypeUtil; import org.eclipse.uml2.uml.Element; import org.eclipse.uml2.uml.Package; diff --git a/releng/org.eclipse.papyrus.designer.components.main.feature/feature.xml b/releng/org.eclipse.papyrus.designer.components.main.feature/feature.xml index b4d982826..bf9231e3d 100644 --- a/releng/org.eclipse.papyrus.designer.components.main.feature/feature.xml +++ b/releng/org.eclipse.papyrus.designer.components.main.feature/feature.xml @@ -39,16 +39,10 @@ http://www.eclipse.org/legal/epl-v10.html <import feature="org.eclipse.papyrus.designer.languages.common.feature"/> <import feature="org.eclipse.papyrus.designer.languages.cpp.feature"/> <import feature="org.eclipse.papyrus.designer.languages.java.feature"/> + <import feature="org.eclipse.papyrus.designer.transformation.main.feature"/> </requires> <plugin - id="org.eclipse.papyrus.designer.transformation.core" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin id="org.eclipse.papyrus.designer.components.transformation.ui" download-size="0" install-size="0" @@ -77,35 +71,28 @@ http://www.eclipse.org/legal/epl-v10.html unpack="false"/> <plugin - id="org.eclipse.papyrus.designer.ui" - download-size="0" - install-size="0" - version="0.0.0" - unpack="false"/> - - <plugin - id="org.eclipse.papyrus.designer.components.transformation.cpp" + id="org.eclipse.papyrus.designer.components.modellibs.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin - id="org.eclipse.papyrus.designer.components.modellibs.core" + id="org.eclipse.papyrus.designer.components.transformation" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin - id="org.eclipse.papyrus.designer.components.transformation" + id="org.eclipse.papyrus.designer.components.transformation.java" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin - id="org.eclipse.papyrus.designer.components.transformation.java" + id="org.eclipse.papyrus.designer.components.transformation.cpp" download-size="0" install-size="0" version="0.0.0" diff --git a/targetplatform/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone.target b/targetplatform/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone.target index 12ca63c50..b2bc7f371 100644 --- a/targetplatform/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone.target +++ b/targetplatform/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone/org.eclipse.papyrus.designer.targetplatform.neon-papyrusmilestone.target @@ -27,9 +27,5 @@ <unit id="org.eclipse.papyrus.marte.core.feature.feature.group" version="0.0.0"/> <repository location="https://hudson.eclipse.org/papyrus/view/MARTE/job/papyrus-marte-neon/ws/releng/org.eclipse.papyrus.marte.p2/target/repository/"/> </location> -<!--location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit"> -<unit id="org.eclipse.swt.dummyfragments.feature.group" version="0.0.0"/> -<repository location="https://eclipseguru.github.io/missing-swt-fragments/"/> -</location--> </locations> </target> diff --git a/transformation/org.eclipse.papyrus.designer.transformation.library/src/org/eclipse/papyrus/designer/transformation/library/transformations/AbstractBootLoaderGen.java b/transformation/org.eclipse.papyrus.designer.transformation.library/src/org/eclipse/papyrus/designer/transformation/library/transformations/AbstractBootLoaderGen.java index efda397ef..19179b24f 100644 --- a/transformation/org.eclipse.papyrus.designer.transformation.library/src/org/eclipse/papyrus/designer/transformation/library/transformations/AbstractBootLoaderGen.java +++ b/transformation/org.eclipse.papyrus.designer.transformation.library/src/org/eclipse/papyrus/designer/transformation/library/transformations/AbstractBootLoaderGen.java @@ -173,7 +173,7 @@ abstract public class AbstractBootLoaderGen implements IM2MTrafoCDP { * @param containerSlot * @return */ - public boolean hasUnconnectedStartRoutine(LazyCopier copier, Class implementation, Slot containerSlot) { + public static boolean hasUnconnectedStartRoutine(LazyCopier copier, Class implementation, Slot containerSlot) { Port startPort = AllocUtils.getStartPort(implementation); if (startPort != null) { return !isConnected(copier, containerSlot, startPort); |