Skip to content

Commit

Permalink
[#1346] Remove RO descriptors layer
Browse files Browse the repository at this point in the history
apply to Agreements domain

Signed-off-by: Alexander Fedorov <[email protected]>
  • Loading branch information
ruspl-afed committed Apr 30, 2024
1 parent 1bc71e5 commit 96feaa8
Show file tree
Hide file tree
Showing 43 changed files with 248 additions and 526 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
<?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="agreements" nsURI="http://www.eclipse.org/passage/lic/agreements/0.1.0"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="agreements" nsURI="http://www.eclipse.org/passage/lic/agreements/3.0.0"
nsPrefix="agreements">
<eClassifiers xsi:type="ecore:EClass" name="AgreementDescriptor" instanceClassName="org.eclipse.passage.lic.agreements.AgreementDescriptor"
abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="AgreementGroupDescriptor" instanceClassName="org.eclipse.passage.lic.agreements.AgreementGroupDescriptor"
abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="Agreement" eSuperTypes="#//AgreementDescriptor">
<eClassifiers xsi:type="ecore:EClass" name="Agreement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="identifier" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="spdx" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="file" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mime" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AgreementGroup" eSuperTypes="#//AgreementGroupDescriptor">
<eClassifiers xsi:type="ecore:EClass" name="AgreementGroup">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="identifier" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
Expand Down
17 changes: 7 additions & 10 deletions bundles/org.eclipse.passage.lic.agreements.edit/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,27 @@ available under the terms of the Eclipse Public License 2.0\n\
which is available at https://www.eclipse.org/legal/epl-2.0/\n\
\n\
SPDX-License-Identifier: EPL-2.0\n\

_UI_CreateChild_text = {0}
_UI_CreateChild_text2 = {1} {0}
_UI_CreateChild_text3 = {1}
_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
_UI_PropertyDescriptor_description = The {0} of the {1}
_UI_Agreement_type = Agreement
_UI_AgreementDescriptor_type = Agreement Descriptor
_UI_AgreementGroupDescriptor_type = Agreement Group Descriptor
_UI_Agreement_type = Agreement
_UI_AgreementGroup_type = Agreement Group
_UI_Unknown_type = Object
_UI_Unknown_datatype= Value
_UI_Agreement_identifier_feature = Identifier
_UI_Unknown_type = Object
_UI_Unknown_datatype= Value
_UI_Agreement_identifier_feature = Identifier
_UI_Agreement_spdx_feature = Spdx
_UI_Agreement_name_feature = Name
_UI_Agreement_file_feature = File
_UI_Agreement_mime_feature = Mime

_UI_AgreementGroup_identifier_feature = Identifier
_UI_AgreementGroup_name_feature = Name
_UI_AgreementGroup_description_feature = Description
_UI_AgreementGroup_agreements_feature = Agreements

_UI_Unknown_feature = Unspecified

_UI_CreateChild_text = {0}
Expand Down
4 changes: 2 additions & 2 deletions bundles/org.eclipse.passage.lic.agreements.edit/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<plugin>

<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
<!-- @generated features -->
<!-- @generated agreements -->
<factory
uri="http://www.eclipse.org/passage/lic/agreements/0.1.0"
uri="http://www.eclipse.org/passage/lic/agreements/3.0.0"
class="org.eclipse.passage.lic.agreements.edit.providers.AgreementsItemProviderAdapterFactory"
supportedTypes=
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
editorPluginClass="org.eclipse.passage.lic.agreements.editor.AgreementsEditorPlugin"
nonNLSMarkers="true" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
codeFormatting="true" testSuiteClass="org.eclipse.passage.lic.agreements.model.tests.AgreementsAllTests"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" copyrightFields="false"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="17.0" copyrightFields="false"
editPluginID="org.eclipse.passage.lic.agreements.edit" editorPluginID="org.eclipse.passage.lic.agreements.editor"
language="" operationReflection="true" runtimePlatform="RCP" importOrganizing="true"
cleanup="true" oSGiCompatible="true">
Expand All @@ -18,8 +18,6 @@
classPackageSuffix="model.impl" utilityPackageSuffix="model.util" providerPackageSuffix="edit.providers"
presentationPackageSuffix="editor" testsPackageSuffix="model.tests" literalsInterface="false"
ecorePackage="../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#/">
<genClasses image="false" ecoreClass="../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#//AgreementDescriptor"/>
<genClasses image="false" ecoreClass="../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#//AgreementGroupDescriptor"/>
<genClasses image="false" ecoreClass="../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#//Agreement">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute ../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#//Agreement/identifier"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute ../../org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore#//Agreement/spdx"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated agreements -->
<package
uri="http://www.eclipse.org/passage/lic/agreements/0.1.0"
uri="http://www.eclipse.org/passage/lic/agreements/3.0.0"
class="org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage"
genModel="model/agreements.genmodel"/>
</extension>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 ArSysOp
* Copyright (c) 2018, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -14,8 +14,6 @@

import org.eclipse.emf.ecore.EObject;

import org.eclipse.passage.lic.agreements.AgreementDescriptor;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Agreement</b></em>'.
Expand All @@ -33,10 +31,10 @@
* </ul>
*
* @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement()
* @model superTypes="org.eclipse.passage.lic.agreements.model.api.AgreementDescriptor"
* @model
* @generated
*/
public interface Agreement extends EObject, AgreementDescriptor {
public interface Agreement extends EObject {
/**
* Returns the value of the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
Expand All @@ -47,7 +45,6 @@ public interface Agreement extends EObject, AgreementDescriptor {
* @model required="true"
* @generated
*/
@Override
String getIdentifier();

/**
Expand All @@ -70,7 +67,6 @@ public interface Agreement extends EObject, AgreementDescriptor {
* @model
* @generated
*/
@Override
String getSpdx();

/**
Expand All @@ -93,7 +89,6 @@ public interface Agreement extends EObject, AgreementDescriptor {
* @model required="true"
* @generated
*/
@Override
String getName();

/**
Expand All @@ -116,7 +111,6 @@ public interface Agreement extends EObject, AgreementDescriptor {
* @model required="true"
* @generated
*/
@Override
String getFile();

/**
Expand All @@ -139,7 +133,6 @@ public interface Agreement extends EObject, AgreementDescriptor {
* @model required="true"
* @generated
*/
@Override
String getMime();

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 ArSysOp
* Copyright (c) 2018, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -14,7 +14,6 @@

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.passage.lic.agreements.AgreementGroupDescriptor;

/**
* <!-- begin-user-doc -->
Expand All @@ -32,10 +31,10 @@
* </ul>
*
* @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup()
* @model superTypes="org.eclipse.passage.lic.agreements.model.api.AgreementGroupDescriptor"
* @model
* @generated
*/
public interface AgreementGroup extends EObject, AgreementGroupDescriptor {
public interface AgreementGroup extends EObject {
/**
* Returns the value of the '<em><b>Identifier</b></em>' attribute.
* <!-- begin-user-doc -->
Expand All @@ -46,7 +45,6 @@ public interface AgreementGroup extends EObject, AgreementGroupDescriptor {
* @model required="true"
* @generated
*/
@Override
String getIdentifier();

/**
Expand All @@ -69,7 +67,6 @@ public interface AgreementGroup extends EObject, AgreementGroupDescriptor {
* @model required="true"
* @generated
*/
@Override
String getName();

/**
Expand All @@ -92,7 +89,6 @@ public interface AgreementGroup extends EObject, AgreementGroupDescriptor {
* @model required="true"
* @generated
*/
@Override
String getDescription();

/**
Expand All @@ -115,7 +111,6 @@ public interface AgreementGroup extends EObject, AgreementGroupDescriptor {
* @model containment="true"
* @generated
*/
@Override
EList<Agreement> getAgreements();

} // AgreementsGroup
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 ArSysOp
* Copyright (c) 2018, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -17,21 +17,15 @@

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

import org.eclipse.passage.lic.agreements.model.api.Agreement;
import org.eclipse.passage.lic.agreements.model.api.AgreementGroup;

import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage;

/**
Expand Down Expand Up @@ -361,4 +355,4 @@ public String toString() {
return result.toString();
}

} //AgreementsGroupImpl
} // AgreementsGroupImpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 ArSysOp
* Copyright (c) 2018, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -15,14 +15,10 @@
import java.util.Objects;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.eclipse.passage.lic.agreements.model.api.Agreement;

import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage;

/**
Expand Down Expand Up @@ -412,4 +408,4 @@ public String toString() {
return result.toString();
}

} //AgreementImpl
} // AgreementImpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 ArSysOp
* Copyright (c) 2018, 2024 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -15,13 +15,10 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

import org.eclipse.passage.lic.agreements.model.api.*;

import org.eclipse.passage.lic.agreements.model.api.Agreement;
import org.eclipse.passage.lic.agreements.model.api.AgreementGroup;
import org.eclipse.passage.lic.agreements.model.meta.AgreementsFactory;
import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage;

Expand Down Expand Up @@ -121,4 +118,4 @@ public static AgreementsPackage getPackage() {
return AgreementsPackage.eINSTANCE;
}

} //AgreementsFactoryImpl
} // AgreementsFactoryImpl
Loading

0 comments on commit 96feaa8

Please sign in to comment.