Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Papyrus/Migration Guide/Oxygen"
(→ElementTypesConfiguration Metamodel Changes) |
(→ElementTypesConfiguration Metamodel Changes) |
||
Line 11: | Line 11: | ||
Although these changes don't change the underlying concepts of the elementtypesconfigurations and their extensions, they impact the <code>*.elementtypesconfigurations</code> models created with this metamodel. | Although these changes don't change the underlying concepts of the elementtypesconfigurations and their extensions, they impact the <code>*.elementtypesconfigurations</code> models created with this metamodel. | ||
− | You'll find all the details of the changes below. A little developer tool has been developed to assist the migration in the <code>org.eclipse.papyrus.types.dev</code> plugin (namely: <code>org.eclipse.papyrus.dev.types.handlers.MigrateSpecializations</code>). | + | You'll find all the details of the changes below. A little developer tool has been developed to assist the migration in the <code>org.eclipse.papyrus.types.dev</code> plugin (namely: <code>org.eclipse.papyrus.dev.types.handlers.MigrateSpecializations</code>). Note that if there are specializations of elementtypes coming from multiple files, you must select all the files to migrate. |
'''Migration of the NsURI''' | '''Migration of the NsURI''' |
Revision as of 08:02, 4 August 2016
Contents
Papyrus Oxygen API Migration Guide
This document provides a guide to migrating applications that extend Papyrus to the new Oxygen version APIs.
Infra Layer
ElementTypesConfiguration Framework
ElementTypesConfiguration Metamodel Changes
The metamodel for the ElementTypesConfigurations has been changed to use model-based defintion of specialization relationships among elementtypes and advice ordering specification.
Although these changes don't change the underlying concepts of the elementtypesconfigurations and their extensions, they impact the *.elementtypesconfigurations
models created with this metamodel.
You'll find all the details of the changes below. A little developer tool has been developed to assist the migration in the org.eclipse.papyrus.types.dev
plugin (namely: org.eclipse.papyrus.dev.types.handlers.MigrateSpecializations
). Note that if there are specializations of elementtypes coming from multiple files, you must select all the files to migrate.
Migration of the NsURI
Old Namespace URI | New Namespace URI |
---|---|
http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1
|
http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.2
|
Migration of the SpecializationTypeConfiguration
The specializedTypesID
attribute of org.eclipse.papyrus.infra.types.SpecializationTypeConfiguration
is now specializedTypes
. Instead of being a list of Sting-based identifiers of elementtypes, developers can now reference to the org.eclipse.papyrus.infra.types.ElementTypeConfiguration
to specialize at a model level directly.
Should the elementtype to reference be already defined using the extension point mechanism, developers may use an org.eclipse.papyrus.infra.types.ExternallyRegisteredType
to have a model element that is a "proxy" to the extension point definition.
Migration of the AdviceConfiguration
The before
and after
attributes of org.eclipse.papyrus.infra.types.AdviceConfiguration
are now lists of org.eclipse.papyrus.infra.types.AdviceConfiguration
instead of being lists of String-based qualified names of Java classes implementing org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice
. Developers can now reference to the org.eclipse.papyrus.infra.types.AdviceConfiguration
to force advice execution order at a model level directly.
Should the advice to reference be already defined using the extension point mechanism, developers may use an org.eclipse.papyrus.infra.types.ExternallyRegisteredAdvice
to have a model element that is a "proxy" to the extension point definition.