Commit a3a33fee authored by Marco Konersmann's avatar Marco Konersmann

Profiles now explicitly state the profile activation transformation path

parent 19f1ef64
......@@ -9,36 +9,34 @@ import org.modelversioning.emfprofile.Profile;
import org.modelversioning.emfprofileapplication.EMFProfileApplicationPackage;
public enum Profiles {
BEHAVIOUR_STATEMACHINE("behavior/statemachine", "behaviour-statemachine"),
COMPONENTS_HIERARCHY_FLAT("componenthierarchy/flat", "components-hierarchy-flat"),
COMPONENTS_HIERARCHY_SCOPED("componenthierarchy/scoped", "components-hierarchy-scoped"),
COMPONENTS_HIERARCHY_SHAREDCONTEXT("componenthierarchy/sharedcontext", "components-hierarchy-sharedcontext"),
COMPONENTS_INSTANTIATION_FIXED("components/instantiation/fixed", "components-instantiation-fixed"),
COMPONENTS_INSTANTIATION_PERSESSION("components/instantiation/persession", "components-instantiation-persession"),
COMPONENTS_INSTANTIATION_POOLED("components/instantiation/pooled", "components-instantiation-pooled"),
COMPONENTS_STATE_STATEFUL("components/stateful", "components-state-stateful"),
COMPONENTS_STATE_STATELESS("components/stateless", "components-state-stateless"),
BEHAVIOUR_STATEMACHINE("behavior/statemachine", "behavior/statemachine"),
COMPONENTS_HIERARCHY_FLAT("componenthierarchy/flat", "componenthierarchy/flat"),
COMPONENTS_HIERARCHY_SCOPED("componenthierarchy/scoped", "componenthierarchy/scoped"),
COMPONENTS_HIERARCHY_SHAREDCONTEXT("componenthierarchy/sharedcontext", "componenthierarchy/sharedcontext"),
COMPONENTS_INSTANTIATION_FIXED("components/instantiation/fixed", "components/instantiation/fixed"),
COMPONENTS_INSTANTIATION_PERSESSION("components/instantiation/persession", "components/instantiation/persession"),
COMPONENTS_INSTANTIATION_POOLED("components/instantiation/pooled", "components/instantiation/pooled"),
COMPONENTS_STATE_STATEFUL("components/stateful", "components/stateful"),
COMPONENTS_STATE_STATELESS("components/stateless", "components/stateless"),
CONNECTORS("connectors", "connectors"),
CONNECTORS_DELEGATION("connectors/delegation", "connectors-delegation"),
CONNECTORS_EVENTS_1TON("connectors/events/1ton", "connectors-events-onetomany"),
CONNECTORS_PROCEDURE_CALLS_SYNCHRONOUS_1TO1("connectors/pc/sync/1to1", "connectors-pc-sync-onetoone"),
DATATYPES_COMMON("datatypes/common", "datatypes-common"),
DATATYPES_EVENTS("datatypes/events", "datatypes-events"),
DATATYPES_OPERATIONS("datatypes/operations", "datatypes-operations"),
CONNECTORS_DELEGATION("connectors/delegation", "connectors/delegation"),
CONNECTORS_EVENTS_1TON("connectors/events/1ton", "connectors/events/1ton"),
CONNECTORS_PROCEDURE_CALLS_SYNCHRONOUS_1TO1("connectors/pc/sync/1to1", "connectors/pc/sync/onetoone"),
DATATYPES_COMMON("datatypes/common", "datatypes/common"),
DATATYPES_EVENTS("datatypes/events", "datatypes/events"),
DATATYPES_OPERATIONS("datatypes/operations", "datatypes/operations"),
DEPLOYMENT("deployment", "deployment"),
INTERFACES_SCOPED("interfaces/scoped", "interfaces-scoped"),
INTERFACES_SHARED("interfaces/shared", "interfaces-shared"),
INTERFACES_TYPE_EVENTS("interfaces/type/events", "interfaces-type-events"),
INTERFACES_TYPE_OPERATIONS("interfaces/type/operations", "interfaces-type-operations"),
INTERFACES_SCOPED("interfaces/scoped", "interfaces/scoped"),
INTERFACES_SHARED("interfaces/shared", "interfaces/shared"),
INTERFACES_TYPE_EVENTS("interfaces/type/events", "interfaces/type/events"),
INTERFACES_TYPE_OPERATIONS("interfaces/type/operations", "interfaces/type/operations"),
NAMESPACES("namespaces", "namespaces"),
QUALITY_SECURITY_SECURE_INFORMATION_FLOW("quality/sec/sif", "quality-sec-sif"),
QUALITY_TIME("quality/time", "quality-time");
QUALITY_SECURITY_SECURE_INFORMATION_FLOW("quality/sec/sif", "quality/sec/sif"),
QUALITY_TIME("quality/time", "quality/time");
static final String URI_PREFIX = "http://mkonersmann.de/il/profiles/";
static final String URI_POSTFIX = "/1.0";
private String nsUri;
static final String PATH_PREFIX = "platform:/plugin/il.core/src/de/mkonersmann/il/profiles/";
static final String PATH_POSTFIX = ".emfprofile_diagram";
private String profilePath;
......@@ -48,7 +46,7 @@ public enum Profiles {
}
public String getTransformationSourcePath() {
return nsUri;
return profilePath;
}
public String getTransformationTargetPath() {
......@@ -61,10 +59,6 @@ public enum Profiles {
return URI_PREFIX + nsUri + URI_POSTFIX;
}
public String getProfilePath() {
return PATH_PREFIX + profilePath + PATH_POSTFIX;
}
public Profile load() {
// Load the packages
EMFProfilePackage.eINSTANCE.eClass();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment