Skip to content

Commit

Permalink
1441 model (#1452)
Browse files Browse the repository at this point in the history
* [#1441] Prepare 4.0.0 M1

bump up licenses meta-model version

* [#1441] Prepare 4.0.0 M1

bump up licenses meta-model version

* [#1441] Prepare 4.0.0 M1

bump up licenses meta-model version
  • Loading branch information
eparovyshnaya authored Oct 21, 2024
1 parent 27a7f05 commit 2639cae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="licenses" nsURI="http://www.eclipse.org/passage/lic/licenses/3.0.0"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="licenses" nsURI="http://www.eclipse.org/passage/lic/licenses/4.0.0"
nsPrefix="org.eclipse.passage.lic">
<eClassifiers xsi:type="ecore:EClass" name="AgreementData">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.passage.lic.licenses.model/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated licenses -->
<package
uri="http://www.eclipse.org/passage/lic/licenses/3.0.0"
uri="http://www.eclipse.org/passage/lic/licenses/4.0.0"
class="org.eclipse.passage.lic.licenses.model.meta.LicensesPackage"
genModel="model/licenses.genmodel"/>
</extension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public interface LicensesPackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.eclipse.org/passage/lic/licenses/3.0.0"; //$NON-NLS-1$
String eNS_URI = "http://www.eclipse.org/passage/lic/licenses/4.0.0"; //$NON-NLS-1$

/**
* The package namespace name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ protected final void register() {
migrate100();
migrate110();
migrate200();
migrate300();
}

@Override
Expand Down Expand Up @@ -146,4 +147,10 @@ private void migrate200() {
EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate);
}

private void migrate300() {
String uri = "http://www.eclipse.org/passage/lic/licenses/3.0.0"; //$NON-NLS-1$
LicensesPackage delegate = LicensesPackage.eINSTANCE;
EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate);
}

}

0 comments on commit 2639cae

Please sign in to comment.