diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/.classpath b/bundles/org.eclipse.passage.lic.agreements.ecore/.classpath deleted file mode 100644 index 1a821310b..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/.project b/bundles/org.eclipse.passage.lic.agreements.ecore/.project deleted file mode 100644 index 7e7ba3c7e..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.agreements.ecore - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.agreements.ecore/META-INF/MANIFEST.MF deleted file mode 100644 index 192746067..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.agreements.ecore -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.agreements.ecore -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.agreements.ecore/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 48eff635a..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Agreements Ecore -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/about.html b/bundles/org.eclipse.passage.lic.agreements.ecore/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/build.properties b/bundles/org.eclipse.passage.lic.agreements.ecore/build.properties deleted file mode 100644 index 0dd897ce9..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -# ArSysOp - further support -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - OSGI-INF/,\ - model/,\ - about.html,\ - . -src.includes = model/ diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/images/agreements.svg b/bundles/org.eclipse.passage.lic.agreements.ecore/images/agreements.svg deleted file mode 100644 index 19399f177..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/images/agreements.svg +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AgreementDescriptor - - - - - - - AgreementGroupDescriptor - - - - - - - Agreement - - - - identifier : EString - - spdx : EString - - name : EString - - file : EString - - mime : EString - - - - - - - AgreementGroup - - identifier : EString - - name : EString - - description : EString - - - - - [0..*] agreements - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore b/bundles/org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore deleted file mode 100644 index 95a69dbd3..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.ecore/src/.gitkeep b/bundles/org.eclipse.passage.lic.agreements.ecore/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/.classpath b/bundles/org.eclipse.passage.lic.agreements.edit/.classpath deleted file mode 100644 index abaf32b3e..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/.project b/bundles/org.eclipse.passage.lic.agreements.edit/.project deleted file mode 100644 index 0d8084a30..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.agreements.edit - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.agreements.edit/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.agreements.edit/META-INF/MANIFEST.MF deleted file mode 100644 index c7be6d96a..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.agreements.edit -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.agreements.edit;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.passage.lic.agreements.model;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport -Import-Package: org.osgi.framework -Export-Package: org.eclipse.passage.lic.agreements.edit, - org.eclipse.passage.lic.agreements.edit.providers -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.passage.lic.agreements.edit.AgreementsEditPlugin$Implementation$Activator -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/about.html b/bundles/org.eclipse.passage.lic.agreements.edit/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/build.properties b/bundles/org.eclipse.passage.lic.agreements.edit/build.properties deleted file mode 100644 index 5dea17a35..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/ -output.. = bin/ -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/icons/full/obj16/agreement.png b/bundles/org.eclipse.passage.lic.agreements.edit/icons/full/obj16/agreement.png deleted file mode 100644 index 9602511ab..000000000 Binary files a/bundles/org.eclipse.passage.lic.agreements.edit/icons/full/obj16/agreement.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/plugin.properties b/bundles/org.eclipse.passage.lic.agreements.edit/plugin.properties deleted file mode 100644 index ce0fe6b9f..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/plugin.properties +++ /dev/null @@ -1,47 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Agreements Edit Support -providerName=Eclipse Passage - -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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_AgreementGroup_type = Agreement Group -_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 - diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/plugin.xml b/bundles/org.eclipse.passage.lic.agreements.edit/plugin.xml deleted file mode 100644 index bc3aad828..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/AgreementsEditPlugin.java b/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/AgreementsEditPlugin.java deleted file mode 100644 index b4184eba0..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/AgreementsEditPlugin.java +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.edit; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.osgi.framework.BundleActivator; - -/** - * This is the central singleton for the Agreements edit plugin. - * - * - * @generated - */ -public final class AgreementsEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final AgreementsEditPlugin INSTANCE = new AgreementsEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public AgreementsEditPlugin() { - super(new ResourceLocator[] {}); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - - /** - * The actual implementation of the purely OSGi-compatible Bundle Activator. - * - * - * @generated - */ - public static final class Activator extends EMFPlugin.OSGiDelegatingBundleActivator { - @Override - protected BundleActivator createBundle() { - return new Implementation(); - } - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementGroupItemProvider.java b/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementGroupItemProvider.java deleted file mode 100644 index b8daee492..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementGroupItemProvider.java +++ /dev/null @@ -1,241 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.agreements.edit.AgreementsEditPlugin; -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; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup} object. - * - * - * @generated - */ -public class AgreementGroupItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AgreementGroupItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_AgreementGroup_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_AgreementGroup_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_AgreementGroup_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreementGroup_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_AgreementGroup_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_AgreementGroup_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_AgreementGroup_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreementGroup_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_AgreementGroup_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_AgreementGroup_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_AgreementGroup_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreementGroup_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(AgreementsPackage.eINSTANCE.getAgreementGroup_Agreements()); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns general 'agreement' image - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/agreement.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((AgreementGroup) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_AgreementGroup_type") : //$NON-NLS-1$ - getString("_UI_AgreementGroup_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(AgreementGroup.class)) { - case AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER: - case AgreementsPackage.AGREEMENT_GROUP__NAME: - case AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(AgreementsPackage.eINSTANCE.getAgreementGroup_Agreements(), - AgreementsFactory.eINSTANCE.createAgreement())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return AgreementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementItemProvider.java b/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementItemProvider.java deleted file mode 100644 index 2dee73015..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementItemProvider.java +++ /dev/null @@ -1,238 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.agreements.edit.AgreementsEditPlugin; -import org.eclipse.passage.lic.agreements.model.api.Agreement; -import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.agreements.model.api.Agreement} object. - * - * - * @generated - */ -public class AgreementItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public AgreementItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addSpdxPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addFilePropertyDescriptor(object); - addMimePropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Agreement_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Agreement_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Agreement_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreement_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Spdx feature. - * - * - * @generated - */ - protected void addSpdxPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Agreement_spdx_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Agreement_spdx_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Agreement_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreement_Spdx(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Agreement_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Agreement_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Agreement_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreement_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the File feature. - * - * - * @generated - */ - protected void addFilePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Agreement_file_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Agreement_file_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Agreement_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreement_File(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Mime feature. - * - * - * @generated - */ - protected void addMimePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Agreement_mime_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Agreement_mime_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Agreement_type"), //$NON-NLS-1$ - AgreementsPackage.eINSTANCE.getAgreement_Mime(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns 'agreement' image - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/agreement.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Agreement) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_Agreement_type") : //$NON-NLS-1$ - getString("_UI_Agreement_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Agreement.class)) { - case AgreementsPackage.AGREEMENT__IDENTIFIER: - case AgreementsPackage.AGREEMENT__SPDX: - case AgreementsPackage.AGREEMENT__NAME: - case AgreementsPackage.AGREEMENT__FILE: - case AgreementsPackage.AGREEMENT__MIME: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return AgreementsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementsItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementsItemProviderAdapterFactory.java deleted file mode 100644 index a2d60febd..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.edit/src-gen/org/eclipse/passage/lic/agreements/edit/providers/AgreementsItemProviderAdapterFactory.java +++ /dev/null @@ -1,240 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.edit.providers; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.passage.lic.agreements.model.util.AgreementsAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class AgreementsItemProviderAdapterFactory extends AgreementsAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public AgreementsItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.agreements.model.api.Agreement} instances. - * - * - * @generated - */ - protected AgreementItemProvider agreementItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.agreements.model.api.Agreement}. - * - * - * @generated - */ - @Override - public Adapter createAgreementAdapter() { - if (agreementItemProvider == null) { - agreementItemProvider = new AgreementItemProvider(this); - } - - return agreementItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup} instances. - * - * - * @generated - */ - protected AgreementGroupItemProvider agreementGroupItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup}. - * - * - * @generated - */ - @Override - public Adapter createAgreementGroupAdapter() { - if (agreementGroupItemProvider == null) { - agreementGroupItemProvider = new AgreementGroupItemProvider(this); - } - - return agreementGroupItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - @Override - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - @Override - public void dispose() { - if (agreementItemProvider != null) - agreementItemProvider.dispose(); - if (agreementGroupItemProvider != null) - agreementGroupItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.model/.classpath b/bundles/org.eclipse.passage.lic.agreements.model/.classpath deleted file mode 100644 index 8ec7c5862..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/.project b/bundles/org.eclipse.passage.lic.agreements.model/.project deleted file mode 100644 index 45098a044..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/.project +++ /dev/null @@ -1,46 +0,0 @@ - - - org.eclipse.passage.lic.agreements.model - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.agreements.model/META-INF/MANIFEST.MF deleted file mode 100644 index ac72c2028..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/META-INF/MANIFEST.MF +++ /dev/null @@ -1,24 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.agreements.model -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.agreements.model;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.emf.ecore;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.ecore.xmi;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.agreements;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.emf;bundle-version="0.0.0" -Export-Package: org.eclipse.passage.lic.agreements.model.api, - org.eclipse.passage.lic.agreements.model.impl;x-internal:=true, - org.eclipse.passage.lic.agreements.model.meta, - org.eclipse.passage.lic.agreements.model.util, - org.eclipse.passage.lic.internal.agreements.model;x-internal:=true, - org.eclipse.passage.lic.internal.agreements.model.util;x-internal:=true -Bundle-ClassPath: . -Bundle-ActivationPolicy: lazy - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/about.html b/bundles/org.eclipse.passage.lic.agreements.model/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.agreements.model/build.properties b/bundles/org.eclipse.passage.lic.agreements.model/build.properties deleted file mode 100644 index d8b313d26..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/,\ - src/ -output.. = target/classes -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.agreements.model/model/agreements.genmodel b/bundles/org.eclipse.passage.lic.agreements.model/model/agreements.genmodel deleted file mode 100644 index 0d4aff6f0..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/model/agreements.genmodel +++ /dev/null @@ -1,35 +0,0 @@ - - - platform:/resource/org.eclipse.passage.lic.agreements.ecore/model/agreements.ecore - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/plugin.properties b/bundles/org.eclipse.passage.lic.agreements.model/plugin.properties deleted file mode 100644 index e41f5c494..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Agreements Model -providerName=Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/plugin.xml b/bundles/org.eclipse.passage.lic.agreements.model/plugin.xml deleted file mode 100644 index 55c987fa1..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/Agreement.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/Agreement.java deleted file mode 100644 index f836df3f6..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/Agreement.java +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Agreement'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.agreements.model.api.Agreement#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.Agreement#getSpdx Spdx}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.Agreement#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.Agreement#getFile File}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.Agreement#getMime Mime}
  • - *
- * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement() - * @model - * @generated - */ -public interface Agreement extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Spdx' attribute. - * - * - * @return the value of the 'Spdx' attribute. - * @see #setSpdx(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement_Spdx() - * @model - * @generated - */ - String getSpdx(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getSpdx Spdx}' attribute. - * - * - * @param value the new value of the 'Spdx' attribute. - * @see #getSpdx() - * @generated - */ - void setSpdx(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement_Name() - * @model required="true" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'File' attribute. - * - * - * @return the value of the 'File' attribute. - * @see #setFile(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement_File() - * @model required="true" - * @generated - */ - String getFile(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getFile File}' attribute. - * - * - * @param value the new value of the 'File' attribute. - * @see #getFile() - * @generated - */ - void setFile(String value); - - /** - * Returns the value of the 'Mime' attribute. - * - * - * @return the value of the 'Mime' attribute. - * @see #setMime(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreement_Mime() - * @model required="true" - * @generated - */ - String getMime(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getMime Mime}' attribute. - * - * - * @param value the new value of the 'Mime' attribute. - * @see #getMime() - * @generated - */ - void setMime(String value); - -} // Agreement diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/AgreementGroup.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/AgreementGroup.java deleted file mode 100644 index 152db6b73..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/api/AgreementGroup.java +++ /dev/null @@ -1,116 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Group'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getAgreements Agreements}
  • - *
- * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup() - * @model - * @generated - */ -public interface AgreementGroup extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup_Name() - * @model required="true" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup_Description() - * @model required="true" - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Agreements' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.agreements.model.api.Agreement}. - * - * - * @return the value of the 'Agreements' containment reference list. - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#getAgreementGroup_Agreements() - * @model containment="true" - * @generated - */ - EList getAgreements(); - -} // AgreementsGroup diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementGroupImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementGroupImpl.java deleted file mode 100644 index 38853659c..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementGroupImpl.java +++ /dev/null @@ -1,358 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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; - -/** - * - * An implementation of the model object 'Group'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl#getAgreements Agreements}
  • - *
- * - * @generated - */ -public class AgreementGroupImpl extends MinimalEObjectImpl.Container implements AgreementGroup { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getAgreements() Agreements}' containment reference list. - * - * - * @see #getAgreements() - * @generated - * @ordered - */ - protected EList agreements; - - /** - * - * - * @generated - */ - protected AgreementGroupImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AgreementsPackage.eINSTANCE.getAgreementGroup(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER, - oldIdentifier, identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT_GROUP__NAME, oldName, - name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION, - oldDescription, description)); - } - } - - /** - * - * - * @generated - */ - @Override - public EList getAgreements() { - if (agreements == null) { - agreements = new EObjectContainmentEList(Agreement.class, this, - AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS); - } - return agreements; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - return ((InternalEList) getAgreements()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER: - return getIdentifier(); - case AgreementsPackage.AGREEMENT_GROUP__NAME: - return getName(); - case AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION: - return getDescription(); - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - return getAgreements(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER: - setIdentifier((String) newValue); - return; - case AgreementsPackage.AGREEMENT_GROUP__NAME: - setName((String) newValue); - return; - case AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION: - setDescription((String) newValue); - return; - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - getAgreements().clear(); - getAgreements().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT_GROUP__NAME: - setName(NAME_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - getAgreements().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case AgreementsPackage.AGREEMENT_GROUP__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case AgreementsPackage.AGREEMENT_GROUP__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case AgreementsPackage.AGREEMENT_GROUP__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case AgreementsPackage.AGREEMENT_GROUP__AGREEMENTS: - return agreements != null && !agreements.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // AgreementsGroupImpl diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementImpl.java deleted file mode 100644 index 573e512b5..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementImpl.java +++ /dev/null @@ -1,411 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.impl; - -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; - -/** - * - * An implementation of the model object 'Agreement'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl#getSpdx Spdx}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl#getFile File}
  • - *
  • {@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl#getMime Mime}
  • - *
- * - * @generated - */ -public class AgreementImpl extends MinimalEObjectImpl.Container implements Agreement { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getSpdx() Spdx}' attribute. - * - * - * @see #getSpdx() - * @generated - * @ordered - */ - protected static final String SPDX_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSpdx() Spdx}' attribute. - * - * - * @see #getSpdx() - * @generated - * @ordered - */ - private String spdx = SPDX_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getFile() File}' attribute. - * - * - * @see #getFile() - * @generated - * @ordered - */ - protected static final String FILE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFile() File}' attribute. - * - * - * @see #getFile() - * @generated - * @ordered - */ - private String file = FILE_EDEFAULT; - - /** - * The default value of the '{@link #getMime() Mime}' attribute. - * - * - * @see #getMime() - * @generated - * @ordered - */ - protected static final String MIME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMime() Mime}' attribute. - * - * - * @see #getMime() - * @generated - * @ordered - */ - private String mime = MIME_EDEFAULT; - - /** - * - * - * @generated - */ - protected AgreementImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return AgreementsPackage.eINSTANCE.getAgreement(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT__IDENTIFIER, - oldIdentifier, identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getSpdx() { - return spdx; - } - - /** - * - * - * @generated - */ - @Override - public void setSpdx(String newSpdx) { - String oldSpdx = spdx; - spdx = newSpdx; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT__SPDX, oldSpdx, spdx)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getFile() { - return file; - } - - /** - * - * - * @generated - */ - @Override - public void setFile(String newFile) { - String oldFile = file; - file = newFile; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT__FILE, oldFile, file)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getMime() { - return mime; - } - - /** - * - * - * @generated - */ - @Override - public void setMime(String newMime) { - String oldMime = mime; - mime = newMime; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, AgreementsPackage.AGREEMENT__MIME, oldMime, mime)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case AgreementsPackage.AGREEMENT__IDENTIFIER: - return getIdentifier(); - case AgreementsPackage.AGREEMENT__SPDX: - return getSpdx(); - case AgreementsPackage.AGREEMENT__NAME: - return getName(); - case AgreementsPackage.AGREEMENT__FILE: - return getFile(); - case AgreementsPackage.AGREEMENT__MIME: - return getMime(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case AgreementsPackage.AGREEMENT__IDENTIFIER: - setIdentifier((String) newValue); - return; - case AgreementsPackage.AGREEMENT__SPDX: - setSpdx((String) newValue); - return; - case AgreementsPackage.AGREEMENT__NAME: - setName((String) newValue); - return; - case AgreementsPackage.AGREEMENT__FILE: - setFile((String) newValue); - return; - case AgreementsPackage.AGREEMENT__MIME: - setMime((String) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case AgreementsPackage.AGREEMENT__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT__SPDX: - setSpdx(SPDX_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT__NAME: - setName(NAME_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT__FILE: - setFile(FILE_EDEFAULT); - return; - case AgreementsPackage.AGREEMENT__MIME: - setMime(MIME_EDEFAULT); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case AgreementsPackage.AGREEMENT__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case AgreementsPackage.AGREEMENT__SPDX: - return !Objects.equals(SPDX_EDEFAULT, spdx); - case AgreementsPackage.AGREEMENT__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case AgreementsPackage.AGREEMENT__FILE: - return !Objects.equals(FILE_EDEFAULT, file); - case AgreementsPackage.AGREEMENT__MIME: - return !Objects.equals(MIME_EDEFAULT, mime); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", spdx: "); //$NON-NLS-1$ - result.append(spdx); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", file: "); //$NON-NLS-1$ - result.append(file); - result.append(", mime: "); //$NON-NLS-1$ - result.append(mime); - result.append(')'); - return result.toString(); - } - -} // AgreementImpl diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsFactoryImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsFactoryImpl.java deleted file mode 100644 index 7716bc351..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsFactoryImpl.java +++ /dev/null @@ -1,121 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.impl; - -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.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; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class AgreementsFactoryImpl extends EFactoryImpl implements AgreementsFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static AgreementsFactory init() { - try { - AgreementsFactory theAgreementsFactory = (AgreementsFactory) EPackage.Registry.INSTANCE - .getEFactory(AgreementsPackage.eNS_URI); - if (theAgreementsFactory != null) { - return theAgreementsFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new AgreementsFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public AgreementsFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case AgreementsPackage.AGREEMENT: - return createAgreement(); - case AgreementsPackage.AGREEMENT_GROUP: - return createAgreementGroup(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * @generated - */ - @Override - public Agreement createAgreement() { - AgreementImpl agreement = new AgreementImpl(); - return agreement; - } - - /** - * - * - * @generated - */ - @Override - public AgreementGroup createAgreementGroup() { - AgreementGroupImpl agreementGroup = new AgreementGroupImpl(); - return agreementGroup; - } - - /** - * - * - * @generated - */ - @Override - public AgreementsPackage getAgreementsPackage() { - return (AgreementsPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static AgreementsPackage getPackage() { - return AgreementsPackage.eINSTANCE; - } - -} // AgreementsFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsPackageImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsPackageImpl.java deleted file mode 100644 index 33dc106e6..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/impl/AgreementsPackageImpl.java +++ /dev/null @@ -1,326 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -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; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class AgreementsPackageImpl extends EPackageImpl implements AgreementsPackage { - /** - * - * - * @generated - */ - private EClass agreementEClass = null; - - /** - * - * - * @generated - */ - private EClass agreementGroupEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage#eNS_URI - * @see #init() - * @generated - */ - private AgreementsPackageImpl() { - super(eNS_URI, AgreementsFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link AgreementsPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static AgreementsPackage init() { - if (isInited) - return (AgreementsPackage) EPackage.Registry.INSTANCE.getEPackage(AgreementsPackage.eNS_URI); - - // Obtain or create and register package - Object registeredAgreementsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - AgreementsPackageImpl theAgreementsPackage = registeredAgreementsPackage instanceof AgreementsPackageImpl - ? (AgreementsPackageImpl) registeredAgreementsPackage - : new AgreementsPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theAgreementsPackage.createPackageContents(); - - // Initialize created meta-data - theAgreementsPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theAgreementsPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(AgreementsPackage.eNS_URI, theAgreementsPackage); - return theAgreementsPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getAgreement() { - return agreementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreement_Identifier() { - return (EAttribute) agreementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreement_Spdx() { - return (EAttribute) agreementEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreement_Name() { - return (EAttribute) agreementEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreement_File() { - return (EAttribute) agreementEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreement_Mime() { - return (EAttribute) agreementEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EClass getAgreementGroup() { - return agreementGroupEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreementGroup_Identifier() { - return (EAttribute) agreementGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreementGroup_Name() { - return (EAttribute) agreementGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAgreementGroup_Description() { - return (EAttribute) agreementGroupEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getAgreementGroup_Agreements() { - return (EReference) agreementGroupEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public AgreementsFactory getAgreementsFactory() { - return (AgreementsFactory) getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - agreementEClass = createEClass(AGREEMENT); - createEAttribute(agreementEClass, AGREEMENT__IDENTIFIER); - createEAttribute(agreementEClass, AGREEMENT__SPDX); - createEAttribute(agreementEClass, AGREEMENT__NAME); - createEAttribute(agreementEClass, AGREEMENT__FILE); - createEAttribute(agreementEClass, AGREEMENT__MIME); - - agreementGroupEClass = createEClass(AGREEMENT_GROUP); - createEAttribute(agreementGroupEClass, AGREEMENT_GROUP__IDENTIFIER); - createEAttribute(agreementGroupEClass, AGREEMENT_GROUP__NAME); - createEAttribute(agreementGroupEClass, AGREEMENT_GROUP__DESCRIPTION); - createEReference(agreementGroupEClass, AGREEMENT_GROUP__AGREEMENTS); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes, features, and operations; add parameters - initEClass(agreementEClass, Agreement.class, "Agreement", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAgreement_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, Agreement.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreement_Spdx(), ecorePackage.getEString(), "spdx", null, 0, 1, Agreement.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreement_Name(), ecorePackage.getEString(), "name", null, 1, 1, Agreement.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreement_File(), ecorePackage.getEString(), "file", null, 1, 1, Agreement.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreement_Mime(), ecorePackage.getEString(), "mime", null, 1, 1, Agreement.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(agreementGroupEClass, AgreementGroup.class, "AgreementGroup", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAgreementGroup_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ - AgreementGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreementGroup_Name(), ecorePackage.getEString(), "name", null, 1, 1, AgreementGroup.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getAgreementGroup_Description(), ecorePackage.getEString(), "description", null, 1, 1, //$NON-NLS-1$ - AgreementGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getAgreementGroup_Agreements(), this.getAgreement(), null, "agreements", null, 0, -1, //$NON-NLS-1$ - AgreementGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // AgreementsPackageImpl diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsFactory.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsFactory.java deleted file mode 100644 index 9dcb81686..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.meta; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.passage.lic.agreements.model.api.Agreement; -import org.eclipse.passage.lic.agreements.model.api.AgreementGroup; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage - * @generated - */ -public interface AgreementsFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - AgreementsFactory eINSTANCE = org.eclipse.passage.lic.agreements.model.impl.AgreementsFactoryImpl.init(); - - /** - * Returns a new object of class 'Agreement'. - * - * - * @return a new object of class 'Agreement'. - * @generated - */ - Agreement createAgreement(); - - /** - * Returns a new object of class 'Agreement Group'. - * - * - * @return a new object of class 'Agreement Group'. - * @generated - */ - AgreementGroup createAgreementGroup(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - AgreementsPackage getAgreementsPackage(); - -} // AgreementsFactory diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsPackage.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsPackage.java deleted file mode 100644 index 9dd4eb7c9..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/meta/AgreementsPackage.java +++ /dev/null @@ -1,334 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.meta; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *

    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsFactory - * @model kind="package" - * @generated - */ -public interface AgreementsPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "agreements"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/passage/lic/agreements/3.0.0"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "agreements"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - AgreementsPackage eINSTANCE = org.eclipse.passage.lic.agreements.model.impl.AgreementsPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.agreements.model.impl.AgreementImpl Agreement}' class. - * - * - * @see org.eclipse.passage.lic.agreements.model.impl.AgreementImpl - * @see org.eclipse.passage.lic.agreements.model.impl.AgreementsPackageImpl#getAgreement() - * @generated - */ - int AGREEMENT = 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT__IDENTIFIER = 0; - - /** - * The feature id for the 'Spdx' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT__SPDX = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT__NAME = 2; - - /** - * The feature id for the 'File' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT__FILE = 3; - - /** - * The feature id for the 'Mime' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT__MIME = 4; - - /** - * The number of structural features of the 'Agreement' class. - * - * - * @generated - * @ordered - */ - int AGREEMENT_FEATURE_COUNT = 5; - - /** - * The number of operations of the 'Agreement' class. - * - * - * @generated - * @ordered - */ - int AGREEMENT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl Agreement Group}' class. - * - * - * @see org.eclipse.passage.lic.agreements.model.impl.AgreementGroupImpl - * @see org.eclipse.passage.lic.agreements.model.impl.AgreementsPackageImpl#getAgreementGroup() - * @generated - */ - int AGREEMENT_GROUP = 1; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP__DESCRIPTION = 2; - - /** - * The feature id for the 'Agreements' containment reference list. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP__AGREEMENTS = 3; - - /** - * The number of structural features of the 'Agreement Group' class. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP_FEATURE_COUNT = 4; - - /** - * The number of operations of the 'Agreement Group' class. - * - * - * @generated - * @ordered - */ - int AGREEMENT_GROUP_OPERATION_COUNT = 0; - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.agreements.model.api.Agreement Agreement}'. - * - * - * @return the meta object for class 'Agreement'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement - * @generated - */ - EClass getAgreement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement#getIdentifier() - * @see #getAgreement() - * @generated - */ - EAttribute getAgreement_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getSpdx Spdx}'. - * - * - * @return the meta object for the attribute 'Spdx'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement#getSpdx() - * @see #getAgreement() - * @generated - */ - EAttribute getAgreement_Spdx(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement#getName() - * @see #getAgreement() - * @generated - */ - EAttribute getAgreement_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getFile File}'. - * - * - * @return the meta object for the attribute 'File'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement#getFile() - * @see #getAgreement() - * @generated - */ - EAttribute getAgreement_File(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.Agreement#getMime Mime}'. - * - * - * @return the meta object for the attribute 'Mime'. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement#getMime() - * @see #getAgreement() - * @generated - */ - EAttribute getAgreement_Mime(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup Agreement Group}'. - * - * - * @return the meta object for class 'Agreement Group'. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup - * @generated - */ - EClass getAgreementGroup(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getIdentifier() - * @see #getAgreementGroup() - * @generated - */ - EAttribute getAgreementGroup_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getName() - * @see #getAgreementGroup() - * @generated - */ - EAttribute getAgreementGroup_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getDescription() - * @see #getAgreementGroup() - * @generated - */ - EAttribute getAgreementGroup_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getAgreements Agreements}'. - * - * - * @return the meta object for the containment reference list 'Agreements'. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup#getAgreements() - * @see #getAgreementGroup() - * @generated - */ - EReference getAgreementGroup_Agreements(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - AgreementsFactory getAgreementsFactory(); - -} // AgreementsPackage diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsAdapterFactory.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsAdapterFactory.java deleted file mode 100644 index 83bde7e50..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsAdapterFactory.java +++ /dev/null @@ -1,151 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -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; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the - * model. - * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage - * @generated - */ -public class AgreementsAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static AgreementsPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public AgreementsAdapterFactory() { - if (modelPackage == null) { - modelPackage = AgreementsPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the - * model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected AgreementsSwitch modelSwitch = new AgreementsSwitch() { - @Override - public Adapter caseAgreement(Agreement object) { - return createAgreementAdapter(); - } - - @Override - public Adapter caseAgreementGroup(AgreementGroup object) { - return createAgreementGroupAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.agreements.model.api.Agreement Agreement}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.agreements.model.api.Agreement - * @generated - */ - public Adapter createAgreementAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.agreements.model.api.AgreementGroup Agreement Group}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.agreements.model.api.AgreementGroup - * @generated - */ - public Adapter createAgreementGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // AgreementsAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsSwitch.java b/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsSwitch.java deleted file mode 100644 index ac942dcae..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src-gen/org/eclipse/passage/lic/agreements/model/util/AgreementsSwitch.java +++ /dev/null @@ -1,145 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2018, 2021 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.agreements.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.util.Switch; -import org.eclipse.passage.lic.agreements.model.api.*; - -import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage - * @generated - */ -public class AgreementsSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static AgreementsPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public AgreementsSwitch() { - if (modelPackage == null) { - modelPackage = AgreementsPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case AgreementsPackage.AGREEMENT: { - Agreement agreement = (Agreement) theEObject; - T result = caseAgreement(agreement); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case AgreementsPackage.AGREEMENT_GROUP: { - AgreementGroup agreementGroup = (AgreementGroup) theEObject; - T result = caseAgreementGroup(agreementGroup); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Agreement'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Agreement'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAgreement(Agreement object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Agreement Group'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Agreement Group'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAgreementGroup(AgreementGroup object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} //AgreementsSwitch diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/AgreementsClassMetadata.java b/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/AgreementsClassMetadata.java deleted file mode 100644 index 3c1c42ff7..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/AgreementsClassMetadata.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.agreements.model; - -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -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; -import org.eclipse.passage.lic.emf.meta.ClassMetadata; -import org.eclipse.passage.lic.emf.meta.EntityMetadata; -import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; - -public final class AgreementsClassMetadata implements ClassMetadata { - - private final AgreementsPackage meta; - private final Map, EntityMetadata> map; - - public AgreementsClassMetadata() { - meta = AgreementsPackage.eINSTANCE; - map = new HashMap, EntityMetadata>(); - map.put(AgreementGroup.class, // - new PlainEntityMetadata(// - meta.getAgreementGroup(), // - meta.getAgreementGroup_Identifier(), // - meta.getAgreementGroup_Name())); - map.put(Agreement.class, // - new PlainEntityMetadata(// - meta.getAgreement(), // - meta.getAgreement_Identifier(), // - meta.getAgreement_Name())); - } - - @Override - public Optional find(Class clazz) { - return Optional.ofNullable(map.get(clazz)); - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/migration/AgreementsResourceHandler.java b/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/migration/AgreementsResourceHandler.java deleted file mode 100644 index fe52ef876..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/migration/AgreementsResourceHandler.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.agreements.model.migration; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.passage.lic.agreements.model.meta.AgreementsPackage; -import org.eclipse.passage.lic.emf.migration.MigrationRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleMigrationRoutes; -import org.eclipse.passage.lic.emf.xmi.MigratingResourceHandler; - -public final class AgreementsResourceHandler extends MigratingResourceHandler { - - @Override - protected void complete(XMLResource resource) { - // do nothing - } - - @Override - protected void register() { - migrate010(); - } - - @Override - protected MigrationRoutes attributes() { - return new SimpleMigrationRoutes(); - } - - private void migrate010() { - String uri = "http://www.eclipse.org/passage/lic/agreements/0.1.0"; //$NON-NLS-1$ - AgreementsPackage delegate = AgreementsPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceFactoryImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceFactoryImpl.java deleted file mode 100644 index 3094abce2..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceFactoryImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.agreements.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -public class AgreementsResourceFactoryImpl extends ResourceFactoryImpl { - - @Override - public Resource createResource(URI uri) { - return new AgreementsResourceImpl(uri); - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceImpl.java b/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceImpl.java deleted file mode 100644 index 316ef57d2..000000000 --- a/bundles/org.eclipse.passage.lic.agreements.model/src/org/eclipse/passage/lic/internal/agreements/model/util/AgreementsResourceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.agreements.model.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; -import org.eclipse.passage.lic.internal.agreements.model.migration.AgreementsResourceHandler; - -public class AgreementsResourceImpl extends XMIResourceImpl { - - public AgreementsResourceImpl(URI uri) { - super(uri); - } - - @Override - protected void init() { - super.init(); - Map options = getDefaultLoadOptions(); - options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); - options.put(OPTION_RESOURCE_HANDLER, new AgreementsResourceHandler()); - } - -} diff --git a/bundles/org.eclipse.passage.lic.agreements/.project b/bundles/org.eclipse.passage.lic.agreements/.project deleted file mode 100644 index 6230a00d2..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.passage.lic.agreements - - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.agreements/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.agreements/META-INF/MANIFEST.MF deleted file mode 100644 index 9cabd0d28..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.agreements -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.agreements -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.agreements/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.agreements/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index cbc04b6b0..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Agreements -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.agreements/about.html b/bundles/org.eclipse.passage.lic.agreements/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.agreements/about.ini b/bundles/org.eclipse.passage.lic.agreements/about.ini deleted file mode 100644 index f55638433..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.agreements/about.mappings b/bundles/org.eclipse.passage.lic.agreements/about.mappings deleted file mode 100644 index b8aef0258..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.agreements/about.properties b/bundles/org.eclipse.passage.lic.agreements/about.properties deleted file mode 100644 index 6776f0ef6..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Eclipse Passage Licensing Integration Components: EMF Model API for Licensing Agreements data\n\ -\n\ -Version: {featureVersion}\n\ -\n\ -(c) Copyright (c) 2018, 2024 ArSysOp. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.agreements/build.properties b/bundles/org.eclipse.passage.lic.agreements/build.properties deleted file mode 100644 index 497031022..000000000 --- a/bundles/org.eclipse.passage.lic.agreements/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.agreements/passage32.png b/bundles/org.eclipse.passage.lic.agreements/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.agreements/passage32.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.define.branding/.classpath b/bundles/org.eclipse.passage.lic.define.branding/.classpath deleted file mode 100644 index bca6ff68c..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.define.branding/.project b/bundles/org.eclipse.passage.lic.define.branding/.project deleted file mode 100644 index ab7547ea4..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.define.branding - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.define.branding/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.define.branding/META-INF/MANIFEST.MF deleted file mode 100644 index 428fd5114..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.define.branding -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.define.branding -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.define.branding/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.define.branding/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 7a707c30d..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Define Branding -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.define.branding/about.html b/bundles/org.eclipse.passage.lic.define.branding/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.define.branding/about.ini b/bundles/org.eclipse.passage.lic.define.branding/about.ini deleted file mode 100644 index 8dbb28325..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.define.branding/about.mappings b/bundles/org.eclipse.passage.lic.define.branding/about.mappings deleted file mode 100644 index 7d53a6a2c..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.define.branding/about.properties b/bundles/org.eclipse.passage.lic.define.branding/about.properties deleted file mode 100644 index 0c65f01ad..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Passage Licensing Integration Components: Define - licensing constraints definition and extention dependencies \n\ -\n\ -Version: {featureVersion}\n\ -\n\ -Copyright (c) 2018, 2024 ArSysOp and others. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.define.branding/build.properties b/bundles/org.eclipse.passage.lic.define.branding/build.properties deleted file mode 100644 index 72820f86c..000000000 --- a/bundles/org.eclipse.passage.lic.define.branding/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.define.branding/passage32.png b/bundles/org.eclipse.passage.lic.define.branding/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.define.branding/passage32.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.define.branding/src/.gitkeep b/bundles/org.eclipse.passage.lic.define.branding/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.features.ecore/.classpath b/bundles/org.eclipse.passage.lic.features.ecore/.classpath deleted file mode 100644 index 1a821310b..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.ecore/.project b/bundles/org.eclipse.passage.lic.features.ecore/.project deleted file mode 100644 index ee3238f1a..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.features.ecore - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.features.ecore/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.features.ecore/META-INF/MANIFEST.MF deleted file mode 100644 index 258c9eea3..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.features.ecore -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.features.ecore -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.features.ecore/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.features.ecore/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index fe62428b9..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Features Ecore -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.features.ecore/about.html b/bundles/org.eclipse.passage.lic.features.ecore/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.features.ecore/build.properties b/bundles/org.eclipse.passage.lic.features.ecore/build.properties deleted file mode 100644 index 5daf1235e..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2023 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - OSGI-INF/,\ - model/,\ - about.html,\ - . -src.includes = model/ diff --git a/bundles/org.eclipse.passage.lic.features.ecore/images/features.svg b/bundles/org.eclipse.passage.lic.features.ecore/images/features.svg deleted file mode 100644 index f0483d7db..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/images/features.svg +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FeatureSetDescriptor - - - - - - - FeatureDescriptor - - - - - - - FeatureVersionDescriptor - - - - - - - FeatureSet - - - - identifier : EString - - name : EString - - description : EString - - - - - - - Feature - - identifier : EString - - provider : EString - - name : EString - - description : EString - - - - - - - FeatureVersion - - version : EString - - news : EString - - - - - - - - - - - - - - - - - - - - - - [1..1] featureSet - [0..*] features - - - - - - - - [1..1] feature - [0..*] featureVersions - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.ecore/model/features.ecore b/bundles/org.eclipse.passage.lic.features.ecore/model/features.ecore deleted file mode 100644 index 5d11a7e0b..000000000 --- a/bundles/org.eclipse.passage.lic.features.ecore/model/features.ecore +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.ecore/src/.gitkeep b/bundles/org.eclipse.passage.lic.features.ecore/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.features.edit/.classpath b/bundles/org.eclipse.passage.lic.features.edit/.classpath deleted file mode 100644 index abaf32b3e..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.edit/.project b/bundles/org.eclipse.passage.lic.features.edit/.project deleted file mode 100644 index 706470e3c..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.features.edit - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.features.edit/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.features.edit/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.features.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.features.edit/META-INF/MANIFEST.MF deleted file mode 100644 index a1f96c823..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.features.edit -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.features.edit;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.passage.lic.features.model;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport -Import-Package: org.osgi.framework -Export-Package: org.eclipse.passage.lic.features.edit, - org.eclipse.passage.lic.features.edit.providers -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.passage.lic.features.edit.FeaturesEditPlugin$Implementation$Activator -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.features.edit/about.html b/bundles/org.eclipse.passage.lic.features.edit/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.features.edit/build.properties b/bundles/org.eclipse.passage.lic.features.edit/build.properties deleted file mode 100644 index 9c6876f96..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/ -output.. = bin/ -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.features.edit/icons/full/obj16/feature.png b/bundles/org.eclipse.passage.lic.features.edit/icons/full/obj16/feature.png deleted file mode 100644 index 0e68e2d4f..000000000 Binary files a/bundles/org.eclipse.passage.lic.features.edit/icons/full/obj16/feature.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.features.edit/plugin.properties b/bundles/org.eclipse.passage.lic.features.edit/plugin.properties deleted file mode 100644 index 26d34e310..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/plugin.properties +++ /dev/null @@ -1,54 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Features Edit Support -providerName=Eclipse Passage - -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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_FeatureSet_type = Feature Set -_UI_Feature_type = Feature -_UI_FeatureVersion_type = Feature Version -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_FeatureSet_identifier_feature = Identifier -_UI_FeatureSet_name_feature = Name -_UI_FeatureSet_description_feature = Description -_UI_FeatureSet_features_feature = Features -_UI_Feature_identifier_feature = Identifier -_UI_Feature_name_feature = Name -_UI_Feature_description_feature = Description -_UI_Feature_featureSet_feature = Feature Set -_UI_Feature_featureVersions_feature = Feature Versions -_UI_Feature_provider_feature = Provider -_UI_FeatureVersion_agreements_feature = Agreements -_UI_FeatureVersion_version_feature = Version -_UI_FeatureVersion_feature_feature = Feature -_UI_FeatureVersion_news_feature = News -_UI_Unknown_feature = Unspecified -_UI_Feature_text_pattern = {1} ({0}) -_UI_FeatureSet_text_pattern = {1} ({0}) -_UI_FeatureVersion_text_pattern = {0} {1} diff --git a/bundles/org.eclipse.passage.lic.features.edit/plugin.xml b/bundles/org.eclipse.passage.lic.features.edit/plugin.xml deleted file mode 100644 index 07dca5605..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/FeaturesEditPlugin.java b/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/FeaturesEditPlugin.java deleted file mode 100644 index 7fcbc2932..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/FeaturesEditPlugin.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.edit; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.osgi.framework.BundleActivator; - -/** - * This is the central singleton for the Features edit plugin. - * - * - * - * @generated - */ -public final class FeaturesEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * - * @generated - */ - public static final FeaturesEditPlugin INSTANCE = new FeaturesEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * - * @generated - */ - public FeaturesEditPlugin() { - super(new ResourceLocator[] {}); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - - /** - * The actual implementation of the purely OSGi-compatible Bundle Activator. - * - * - * - * @generated - */ - public static final class Activator extends EMFPlugin.OSGiDelegatingBundleActivator { - @Override - protected BundleActivator createBundle() { - return new Implementation(); - } - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureItemProvider.java b/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureItemProvider.java deleted file mode 100644 index 56c39df0e..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureItemProvider.java +++ /dev/null @@ -1,280 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.features.edit.FeaturesEditPlugin; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.meta.FeaturesFactory; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.features.model.api.Feature} object. - * - * - * - * @generated - */ -public class FeatureItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public FeatureItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addProviderPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Feature_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Feature_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Feature_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeature_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Provider feature. - * - * - * @generated - */ - protected void addProviderPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Feature_provider_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Feature_provider_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Feature_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeature_Provider(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Feature_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Feature_name_feature", "_UI_Feature_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FeaturesPackage.eINSTANCE.getFeature_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Feature_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Feature_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Feature_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeature_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(FeaturesPackage.eINSTANCE.getFeature_FeatureVersions()); - } - return childrenFeatures; - } - - /** - * - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Feature.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/feature.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - Feature feature = (Feature) object; - String identifier = feature.getIdentifier(); - if (identifier == null || identifier.length() == 0) { - return getString("_UI_Feature_type"); //$NON-NLS-1$ - } - String name = feature.getName(); - if (name == null || name.length() == 0) { - return identifier; - } - return getString("_UI_Feature_text_pattern", new Object[] { identifier, name }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Feature.class)) { - case FeaturesPackage.FEATURE__IDENTIFIER: - case FeaturesPackage.FEATURE__PROVIDER: - case FeaturesPackage.FEATURE__NAME: - case FeaturesPackage.FEATURE__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(FeaturesPackage.eINSTANCE.getFeature_FeatureVersions(), - FeaturesFactory.eINSTANCE.createFeatureVersion())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return FeaturesEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureSetItemProvider.java b/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureSetItemProvider.java deleted file mode 100644 index 25ad586a4..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureSetItemProvider.java +++ /dev/null @@ -1,263 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.features.edit.FeaturesEditPlugin; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.meta.FeaturesFactory; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.features.model.api.FeatureSet} object. - * - * - * - * @generated - */ -public class FeatureSetItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public FeatureSetItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_FeatureSet_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_FeatureSet_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_FeatureSet_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeatureSet_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_FeatureSet_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_FeatureSet_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_FeatureSet_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeatureSet_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_FeatureSet_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_FeatureSet_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_FeatureSet_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeatureSet_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(FeaturesPackage.eINSTANCE.getFeatureSet_Features()); - } - return childrenFeatures; - } - - /** - * - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Feature.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/feature.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - FeatureSet featureSet = (FeatureSet) object; - String identifier = featureSet.getIdentifier(); - String name = featureSet.getName(); - if (identifier == null || identifier.length() == 0) { - return getString("_UI_FeatureSet_type"); //$NON-NLS-1$ - } - if (name == null || name.length() == 0) { - return identifier; - } - return getString("_UI_FeatureSet_text_pattern", new Object[] { identifier, name }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(FeatureSet.class)) { - case FeaturesPackage.FEATURE_SET__IDENTIFIER: - case FeaturesPackage.FEATURE_SET__NAME: - case FeaturesPackage.FEATURE_SET__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case FeaturesPackage.FEATURE_SET__FEATURES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(FeaturesPackage.eINSTANCE.getFeatureSet_Features(), - FeaturesFactory.eINSTANCE.createFeature())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return FeaturesEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureVersionItemProvider.java b/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureVersionItemProvider.java deleted file mode 100644 index f389e68af..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeatureVersionItemProvider.java +++ /dev/null @@ -1,205 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.features.edit.FeaturesEditPlugin; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.features.model.api.FeatureVersion} object. - * - * - * - * @generated - */ -public class FeatureVersionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public FeatureVersionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addVersionPropertyDescriptor(object); - addNewsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Version feature. - * - * - * - * @generated - */ - protected void addVersionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_FeatureVersion_version_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_FeatureVersion_version_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_FeatureVersion_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeatureVersion_Version(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the News feature. - * - * - * - * @generated - */ - protected void addNewsPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_FeatureVersion_news_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_FeatureVersion_news_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_FeatureVersion_type"), //$NON-NLS-1$ - FeaturesPackage.eINSTANCE.getFeatureVersion_News(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns Feature.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/feature.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - FeatureVersion featureVersion = (FeatureVersion) object; - Feature feature = featureVersion.getFeature(); - if (feature == null) { - return getString("_UI_FeatureVersion_type"); //$NON-NLS-1$ - } - String version = featureVersion.getVersion(); - String featureName = feature.getName(); - if (version == null || version.length() == 0) { - return featureName; - } - return getString("_UI_FeatureVersion_text_pattern", new Object[] { featureName, version }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(FeatureVersion.class)) { - case FeaturesPackage.FEATURE_VERSION__VERSION: - case FeaturesPackage.FEATURE_VERSION__NEWS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return FeaturesEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeaturesItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeaturesItemProviderAdapterFactory.java deleted file mode 100644 index b7107950e..000000000 --- a/bundles/org.eclipse.passage.lic.features.edit/src-gen/org/eclipse/passage/lic/features/edit/providers/FeaturesItemProviderAdapterFactory.java +++ /dev/null @@ -1,285 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.edit.providers; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.passage.lic.features.model.util.FeaturesAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * - * @generated - */ -public class FeaturesItemProviderAdapterFactory extends FeaturesAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * - * @generated - */ - public FeaturesItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.features.model.api.FeatureSet} instances. - * - * - * - * @generated - */ - protected FeatureSetItemProvider featureSetItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.features.model.api.FeatureSet}. - * - * - * - * @generated - */ - @Override - public Adapter createFeatureSetAdapter() { - if (featureSetItemProvider == null) { - featureSetItemProvider = new FeatureSetItemProvider(this); - } - - return featureSetItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.features.model.api.Feature} instances. - * - * - * - * @generated - */ - protected FeatureItemProvider featureItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.features.model.api.Feature}. - * - * - * - * @generated - */ - @Override - public Adapter createFeatureAdapter() { - if (featureItemProvider == null) { - featureItemProvider = new FeatureItemProvider(this); - } - - return featureItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.features.model.api.FeatureVersion} instances. - * - * - * - * @generated - */ - protected FeatureVersionItemProvider featureVersionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.features.model.api.FeatureVersion}. - * - * - * - * @generated - */ - @Override - public Adapter createFeatureVersionAdapter() { - if (featureVersionItemProvider == null) { - featureVersionItemProvider = new FeatureVersionItemProvider(this); - } - - return featureVersionItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * - * @generated - */ - @Override - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * - * @generated - */ - @Override - public void dispose() { - if (featureSetItemProvider != null) - featureSetItemProvider.dispose(); - if (featureItemProvider != null) - featureItemProvider.dispose(); - if (featureVersionItemProvider != null) - featureVersionItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.model/.classpath b/bundles/org.eclipse.passage.lic.features.model/.classpath deleted file mode 100644 index 8ec7c5862..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.model/.project b/bundles/org.eclipse.passage.lic.features.model/.project deleted file mode 100644 index dab38226f..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.features.model - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.features.model/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.features.model/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.features.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.features.model/META-INF/MANIFEST.MF deleted file mode 100644 index 0ce4f92a5..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.features.model -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.features.model;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.emf.ecore;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.ecore.xmi;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.features;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.emf;bundle-version="0.0.0" -Export-Package: org.eclipse.passage.lic.features.model.api, - org.eclipse.passage.lic.features.model.impl;x-internal:=true, - org.eclipse.passage.lic.features.model.meta, - org.eclipse.passage.lic.features.model.util, - org.eclipse.passage.lic.internal.features.model;x-internal:=true, - org.eclipse.passage.lic.internal.features.model.util;x-internal:=true -Bundle-ClassPath: . -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.features.model/about.html b/bundles/org.eclipse.passage.lic.features.model/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.features.model/build.properties b/bundles/org.eclipse.passage.lic.features.model/build.properties deleted file mode 100644 index 4c5385c2e..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/,\ - src/ -output.. = target/classes -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.features.model/model/features.genmodel b/bundles/org.eclipse.passage.lic.features.model/model/features.genmodel deleted file mode 100644 index 1aec5279b..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/model/features.genmodel +++ /dev/null @@ -1,41 +0,0 @@ - - - platform:/resource/org.eclipse.passage.lic.features.ecore/model/features.ecore - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.model/plugin.properties b/bundles/org.eclipse.passage.lic.features.model/plugin.properties deleted file mode 100644 index 03ddf80ab..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Features Model -providerName=Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/bundles/org.eclipse.passage.lic.features.model/plugin.xml b/bundles/org.eclipse.passage.lic.features.model/plugin.xml deleted file mode 100644 index 9357936b3..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/plugin.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/Feature.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/Feature.java deleted file mode 100644 index 978a0c731..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/Feature.java +++ /dev/null @@ -1,166 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getProvider Provider}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet Feature Set}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureVersions Feature Versions}
  • - *
- * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature() - * @model - * @generated - */ -public interface Feature extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.Feature#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Provider' attribute. - * - * - * @return the value of the 'Provider' attribute. - * @see #setProvider(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_Provider() - * @model - * @generated - */ - String getProvider(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.Feature#getProvider Provider}' attribute. - * - * - * @param value the new value of the 'Provider' attribute. - * @see #getProvider() - * @generated - */ - void setProvider(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.Feature#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.Feature#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Feature Set' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getFeatures Features}'. - * - * - * @return the value of the 'Feature Set' container reference. - * @see #setFeatureSet(FeatureSet) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_FeatureSet() - * @see org.eclipse.passage.lic.features.model.api.FeatureSet#getFeatures - * @model opposite="features" required="true" transient="false" - * @generated - */ - FeatureSet getFeatureSet(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet Feature Set}' container reference. - * - * - * @param value the new value of the 'Feature Set' container reference. - * @see #getFeatureSet() - * @generated - */ - void setFeatureSet(FeatureSet value); - - /** - * Returns the value of the 'Feature Versions' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.features.model.api.FeatureVersion}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature Feature}'. - * - * - * @return the value of the 'Feature Versions' containment reference list. - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeature_FeatureVersions() - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature - * @model opposite="feature" containment="true" - * @generated - */ - EList getFeatureVersions(); - -} // Feature diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureSet.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureSet.java deleted file mode 100644 index fce32728a..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureSet.java +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature Set'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureSet#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureSet#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureSet#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureSet#getFeatures Features}
  • - *
- * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureSet() - * @model - * @generated - */ -public interface FeatureSet extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureSet_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureSet_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureSet_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Features' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.features.model.api.Feature}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet Feature Set}'. - * - * - * @return the value of the 'Features' containment reference list. - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureSet_Features() - * @see org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet - * @model opposite="featureSet" containment="true" - * @generated - */ - EList getFeatures(); - -} // FeatureSet diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureVersion.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureVersion.java deleted file mode 100644 index 1ae8dd8a6..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/api/FeatureVersion.java +++ /dev/null @@ -1,104 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Feature Version'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getNews News}
  • - *
- * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureVersion() - * @model - * @generated - */ -public interface FeatureVersion extends EObject { - /** - * Returns the value of the 'Version' attribute. - * - * - * @return the value of the 'Version' attribute. - * @see #setVersion(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureVersion_Version() - * @model required="true" - * @generated - */ - String getVersion(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getVersion Version}' attribute. - * - * - * @param value the new value of the 'Version' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - - /** - * Returns the value of the 'Feature' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureVersions Feature Versions}'. - * - * - * @return the value of the 'Feature' container reference. - * @see #setFeature(Feature) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureVersion_Feature() - * @see org.eclipse.passage.lic.features.model.api.Feature#getFeatureVersions - * @model opposite="featureVersions" required="true" transient="false" - * @generated - */ - Feature getFeature(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature Feature}' container reference. - * - * - * @param value the new value of the 'Feature' container reference. - * @see #getFeature() - * @generated - */ - void setFeature(Feature value); - - /** - * Returns the value of the 'News' attribute. - * - * - * @return the value of the 'News' attribute. - * @see #setNews(String) - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#getFeatureVersion_News() - * @model - * @generated - */ - String getNews(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getNews News}' attribute. - * - * - * @param value the new value of the 'News' attribute. - * @see #getNews() - * @generated - */ - void setNews(String value); - -} // FeatureVersion diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureImpl.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureImpl.java deleted file mode 100644 index 8db5795fc..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureImpl.java +++ /dev/null @@ -1,518 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * An implementation of the model object 'Feature'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getProvider Provider}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getFeatureSet Feature Set}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureImpl#getFeatureVersions Feature Versions}
  • - *
- * - * @generated - */ -public class FeatureImpl extends MinimalEObjectImpl.Container implements Feature { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getProvider() Provider}' attribute. - * - * - * @see #getProvider() - * @generated - * @ordered - */ - protected static final String PROVIDER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProvider() Provider}' attribute. - * - * - * @see #getProvider() - * @generated - * @ordered - */ - private String provider = PROVIDER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getFeatureVersions() Feature Versions}' containment reference list. - * - * - * @see #getFeatureVersions() - * @generated - * @ordered - */ - protected EList featureVersions; - - /** - * - * - * @generated - */ - protected FeatureImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FeaturesPackage.eINSTANCE.getFeature(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getProvider() { - return provider; - } - - /** - * - * - * @generated - */ - @Override - public void setProvider(String newProvider) { - String oldProvider = provider; - provider = newProvider; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE__PROVIDER, oldProvider, - provider)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE__DESCRIPTION, oldDescription, - description)); - } - } - - /** - * - * - * @generated - */ - @Override - public FeatureSet getFeatureSet() { - if (eContainerFeatureID() != FeaturesPackage.FEATURE__FEATURE_SET) { - return null; - } - return (FeatureSet) eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetFeatureSet(FeatureSet newFeatureSet, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newFeatureSet, FeaturesPackage.FEATURE__FEATURE_SET, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setFeatureSet(FeatureSet newFeatureSet) { - if (newFeatureSet != eInternalContainer() - || (eContainerFeatureID() != FeaturesPackage.FEATURE__FEATURE_SET && newFeatureSet != null)) { - if (EcoreUtil.isAncestor(this, newFeatureSet)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newFeatureSet != null) - msgs = ((InternalEObject) newFeatureSet).eInverseAdd(this, FeaturesPackage.FEATURE_SET__FEATURES, - FeatureSet.class, msgs); - msgs = basicSetFeatureSet(newFeatureSet, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE__FEATURE_SET, newFeatureSet, - newFeatureSet)); - } - } - - /** - * - * - * @generated - */ - @Override - public EList getFeatureVersions() { - if (featureVersions == null) { - featureVersions = new EObjectContainmentWithInverseEList(FeatureVersion.class, this, - FeaturesPackage.FEATURE__FEATURE_VERSIONS, FeaturesPackage.FEATURE_VERSION__FEATURE); - } - return featureVersions; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE__FEATURE_SET: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetFeatureSet((FeatureSet) otherEnd, msgs); - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - return ((InternalEList) (InternalEList) getFeatureVersions()).basicAdd(otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE__FEATURE_SET: - return basicSetFeatureSet(null, msgs); - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - return ((InternalEList) getFeatureVersions()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case FeaturesPackage.FEATURE__FEATURE_SET: - return eInternalContainer().eInverseRemove(this, FeaturesPackage.FEATURE_SET__FEATURES, FeatureSet.class, - msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FeaturesPackage.FEATURE__IDENTIFIER: - return getIdentifier(); - case FeaturesPackage.FEATURE__PROVIDER: - return getProvider(); - case FeaturesPackage.FEATURE__NAME: - return getName(); - case FeaturesPackage.FEATURE__DESCRIPTION: - return getDescription(); - case FeaturesPackage.FEATURE__FEATURE_SET: - return getFeatureSet(); - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - return getFeatureVersions(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FeaturesPackage.FEATURE__IDENTIFIER: - setIdentifier((String) newValue); - return; - case FeaturesPackage.FEATURE__PROVIDER: - setProvider((String) newValue); - return; - case FeaturesPackage.FEATURE__NAME: - setName((String) newValue); - return; - case FeaturesPackage.FEATURE__DESCRIPTION: - setDescription((String) newValue); - return; - case FeaturesPackage.FEATURE__FEATURE_SET: - setFeatureSet((FeatureSet) newValue); - return; - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - getFeatureVersions().clear(); - getFeatureVersions().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case FeaturesPackage.FEATURE__PROVIDER: - setProvider(PROVIDER_EDEFAULT); - return; - case FeaturesPackage.FEATURE__NAME: - setName(NAME_EDEFAULT); - return; - case FeaturesPackage.FEATURE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case FeaturesPackage.FEATURE__FEATURE_SET: - setFeatureSet((FeatureSet) null); - return; - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - getFeatureVersions().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case FeaturesPackage.FEATURE__PROVIDER: - return !Objects.equals(PROVIDER_EDEFAULT, provider); - case FeaturesPackage.FEATURE__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case FeaturesPackage.FEATURE__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case FeaturesPackage.FEATURE__FEATURE_SET: - return getFeatureSet() != null; - case FeaturesPackage.FEATURE__FEATURE_VERSIONS: - return featureVersions != null && !featureVersions.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", provider: "); //$NON-NLS-1$ - result.append(provider); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // FeatureImpl diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureSetImpl.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureSetImpl.java deleted file mode 100644 index 38c39f258..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureSetImpl.java +++ /dev/null @@ -1,373 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * An implementation of the model object 'Feature Set'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureSetImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureSetImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureSetImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureSetImpl#getFeatures Features}
  • - *
- * - * @generated - */ -public class FeatureSetImpl extends MinimalEObjectImpl.Container implements FeatureSet { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getFeatures() Features}' containment reference list. - * - * - * @see #getFeatures() - * @generated - * @ordered - */ - protected EList features; - - /** - * - * - * @generated - */ - protected FeatureSetImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FeaturesPackage.eINSTANCE.getFeatureSet(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_SET__IDENTIFIER, - oldIdentifier, identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_SET__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_SET__DESCRIPTION, - oldDescription, description)); - } - } - - /** - * - * - * @generated - */ - @Override - public EList getFeatures() { - if (features == null) { - features = new EObjectContainmentWithInverseEList(Feature.class, this, - FeaturesPackage.FEATURE_SET__FEATURES, FeaturesPackage.FEATURE__FEATURE_SET); - } - return features; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__FEATURES: - return ((InternalEList) (InternalEList) getFeatures()).basicAdd(otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__FEATURES: - return ((InternalEList) getFeatures()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__IDENTIFIER: - return getIdentifier(); - case FeaturesPackage.FEATURE_SET__NAME: - return getName(); - case FeaturesPackage.FEATURE_SET__DESCRIPTION: - return getDescription(); - case FeaturesPackage.FEATURE_SET__FEATURES: - return getFeatures(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__IDENTIFIER: - setIdentifier((String) newValue); - return; - case FeaturesPackage.FEATURE_SET__NAME: - setName((String) newValue); - return; - case FeaturesPackage.FEATURE_SET__DESCRIPTION: - setDescription((String) newValue); - return; - case FeaturesPackage.FEATURE_SET__FEATURES: - getFeatures().clear(); - getFeatures().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case FeaturesPackage.FEATURE_SET__NAME: - setName(NAME_EDEFAULT); - return; - case FeaturesPackage.FEATURE_SET__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case FeaturesPackage.FEATURE_SET__FEATURES: - getFeatures().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE_SET__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case FeaturesPackage.FEATURE_SET__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case FeaturesPackage.FEATURE_SET__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case FeaturesPackage.FEATURE_SET__FEATURES: - return features != null && !features.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // FeatureSetImpl diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureVersionImpl.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureVersionImpl.java deleted file mode 100644 index 32550d4ae..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeatureVersionImpl.java +++ /dev/null @@ -1,356 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.impl; - -import java.util.Objects; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -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.EcoreUtil; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * An implementation of the model object 'Feature Version'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureVersionImpl#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureVersionImpl#getFeature Feature}
  • - *
  • {@link org.eclipse.passage.lic.features.model.impl.FeatureVersionImpl#getNews News}
  • - *
- * - * @generated - */ -public class FeatureVersionImpl extends MinimalEObjectImpl.Container implements FeatureVersion { - /** - * The default value of the '{@link #getVersion() Version}' attribute. - * - * - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() Version}' attribute. - * - * - * @see #getVersion() - * @generated - * @ordered - */ - private String version = VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getNews() News}' attribute. - * - * - * @see #getNews() - * @generated - * @ordered - */ - protected static final String NEWS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNews() News}' attribute. - * - * - * @see #getNews() - * @generated - * @ordered - */ - private String news = NEWS_EDEFAULT; - - /** - * - * - * @generated - */ - protected FeatureVersionImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FeaturesPackage.eINSTANCE.getFeatureVersion(); - } - - /** - * - * - * @generated - */ - @Override - public String getVersion() { - return version; - } - - /** - * - * - * @generated - */ - @Override - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_VERSION__VERSION, oldVersion, - version)); - } - } - - /** - * - * - * @generated - */ - @Override - public Feature getFeature() { - if (eContainerFeatureID() != FeaturesPackage.FEATURE_VERSION__FEATURE) { - return null; - } - return (Feature) eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetFeature(Feature newFeature, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newFeature, FeaturesPackage.FEATURE_VERSION__FEATURE, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setFeature(Feature newFeature) { - if (newFeature != eInternalContainer() - || (eContainerFeatureID() != FeaturesPackage.FEATURE_VERSION__FEATURE && newFeature != null)) { - if (EcoreUtil.isAncestor(this, newFeature)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newFeature != null) - msgs = ((InternalEObject) newFeature).eInverseAdd(this, FeaturesPackage.FEATURE__FEATURE_VERSIONS, - Feature.class, msgs); - msgs = basicSetFeature(newFeature, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_VERSION__FEATURE, newFeature, - newFeature)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getNews() { - return news; - } - - /** - * - * - * @generated - */ - @Override - public void setNews(String newNews) { - String oldNews = news; - news = newNews; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, FeaturesPackage.FEATURE_VERSION__NEWS, oldNews, - news)); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__FEATURE: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetFeature((Feature) otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__FEATURE: - return basicSetFeature(null, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case FeaturesPackage.FEATURE_VERSION__FEATURE: - return eInternalContainer().eInverseRemove(this, FeaturesPackage.FEATURE__FEATURE_VERSIONS, Feature.class, - msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__VERSION: - return getVersion(); - case FeaturesPackage.FEATURE_VERSION__FEATURE: - return getFeature(); - case FeaturesPackage.FEATURE_VERSION__NEWS: - return getNews(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__VERSION: - setVersion((String) newValue); - return; - case FeaturesPackage.FEATURE_VERSION__FEATURE: - setFeature((Feature) newValue); - return; - case FeaturesPackage.FEATURE_VERSION__NEWS: - setNews((String) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case FeaturesPackage.FEATURE_VERSION__FEATURE: - setFeature((Feature) null); - return; - case FeaturesPackage.FEATURE_VERSION__NEWS: - setNews(NEWS_EDEFAULT); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FeaturesPackage.FEATURE_VERSION__VERSION: - return !Objects.equals(VERSION_EDEFAULT, version); - case FeaturesPackage.FEATURE_VERSION__FEATURE: - return getFeature() != null; - case FeaturesPackage.FEATURE_VERSION__NEWS: - return !Objects.equals(NEWS_EDEFAULT, news); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (version: "); //$NON-NLS-1$ - result.append(version); - result.append(", news: "); //$NON-NLS-1$ - result.append(news); - result.append(')'); - return result.toString(); - } - -} // FeatureVersionImpl diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesFactoryImpl.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesFactoryImpl.java deleted file mode 100644 index 1a7f8e361..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesFactoryImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.impl; - -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.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesFactory; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class FeaturesFactoryImpl extends EFactoryImpl implements FeaturesFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static FeaturesFactory init() { - try { - FeaturesFactory theFeaturesFactory = (FeaturesFactory) EPackage.Registry.INSTANCE - .getEFactory(FeaturesPackage.eNS_URI); - if (theFeaturesFactory != null) { - return theFeaturesFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new FeaturesFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public FeaturesFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case FeaturesPackage.FEATURE_SET: - return createFeatureSet(); - case FeaturesPackage.FEATURE: - return createFeature(); - case FeaturesPackage.FEATURE_VERSION: - return createFeatureVersion(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * @generated - */ - @Override - public FeatureSet createFeatureSet() { - FeatureSetImpl featureSet = new FeatureSetImpl(); - return featureSet; - } - - /** - * - * - * @generated - */ - @Override - public Feature createFeature() { - FeatureImpl feature = new FeatureImpl(); - return feature; - } - - /** - * - * - * @generated - */ - @Override - public FeatureVersion createFeatureVersion() { - FeatureVersionImpl featureVersion = new FeatureVersionImpl(); - return featureVersion; - } - - /** - * - * - * @generated - */ - @Override - public FeaturesPackage getFeaturesPackage() { - return (FeaturesPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static FeaturesPackage getPackage() { - return FeaturesPackage.eINSTANCE; - } - -} // FeaturesFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesPackageImpl.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesPackageImpl.java deleted file mode 100644 index 95848c05c..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/impl/FeaturesPackageImpl.java +++ /dev/null @@ -1,404 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesFactory; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class FeaturesPackageImpl extends EPackageImpl implements FeaturesPackage { - /** - * - * - * @generated - */ - private EClass featureSetEClass = null; - - /** - * - * - * @generated - */ - private EClass featureEClass = null; - - /** - * - * - * @generated - */ - private EClass featureVersionEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage#eNS_URI - * @see #init() - * @generated - */ - private FeaturesPackageImpl() { - super(eNS_URI, FeaturesFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link FeaturesPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static FeaturesPackage init() { - if (isInited) - return (FeaturesPackage) EPackage.Registry.INSTANCE.getEPackage(FeaturesPackage.eNS_URI); - - // Obtain or create and register package - Object registeredFeaturesPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - FeaturesPackageImpl theFeaturesPackage = registeredFeaturesPackage instanceof FeaturesPackageImpl - ? (FeaturesPackageImpl) registeredFeaturesPackage - : new FeaturesPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theFeaturesPackage.createPackageContents(); - - // Initialize created meta-data - theFeaturesPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theFeaturesPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(FeaturesPackage.eNS_URI, theFeaturesPackage); - return theFeaturesPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getFeatureSet() { - return featureSetEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeatureSet_Identifier() { - return (EAttribute) featureSetEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeatureSet_Name() { - return (EAttribute) featureSetEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeatureSet_Description() { - return (EAttribute) featureSetEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeatureSet_Features() { - return (EReference) featureSetEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFeature() { - return featureEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Identifier() { - return (EAttribute) featureEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Provider() { - return (EAttribute) featureEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Name() { - return (EAttribute) featureEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Description() { - return (EAttribute) featureEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeature_FeatureSet() { - return (EReference) featureEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeature_FeatureVersions() { - return (EReference) featureEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFeatureVersion() { - return featureVersionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeatureVersion_Version() { - return (EAttribute) featureVersionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeatureVersion_Feature() { - return (EReference) featureVersionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeatureVersion_News() { - return (EAttribute) featureVersionEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public FeaturesFactory getFeaturesFactory() { - return (FeaturesFactory) getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - featureSetEClass = createEClass(FEATURE_SET); - createEAttribute(featureSetEClass, FEATURE_SET__IDENTIFIER); - createEAttribute(featureSetEClass, FEATURE_SET__NAME); - createEAttribute(featureSetEClass, FEATURE_SET__DESCRIPTION); - createEReference(featureSetEClass, FEATURE_SET__FEATURES); - - featureEClass = createEClass(FEATURE); - createEAttribute(featureEClass, FEATURE__IDENTIFIER); - createEAttribute(featureEClass, FEATURE__PROVIDER); - createEAttribute(featureEClass, FEATURE__NAME); - createEAttribute(featureEClass, FEATURE__DESCRIPTION); - createEReference(featureEClass, FEATURE__FEATURE_SET); - createEReference(featureEClass, FEATURE__FEATURE_VERSIONS); - - featureVersionEClass = createEClass(FEATURE_VERSION); - createEAttribute(featureVersionEClass, FEATURE_VERSION__VERSION); - createEReference(featureVersionEClass, FEATURE_VERSION__FEATURE); - createEAttribute(featureVersionEClass, FEATURE_VERSION__NEWS); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes, features, and operations; add parameters - initEClass(featureSetEClass, FeatureSet.class, "FeatureSet", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeatureSet_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ - FeatureSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeatureSet_Name(), ecorePackage.getEString(), "name", null, 0, 1, FeatureSet.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeatureSet_Description(), ecorePackage.getEString(), "description", null, 0, 1, //$NON-NLS-1$ - FeatureSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getFeatureSet_Features(), this.getFeature(), this.getFeature_FeatureSet(), "features", null, 0, //$NON-NLS-1$ - -1, FeatureSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureEClass, Feature.class, "Feature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getFeature_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, Feature.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeature_Provider(), ecorePackage.getEString(), "provider", null, 0, 1, Feature.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeature_Name(), ecorePackage.getEString(), "name", null, 0, 1, Feature.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeature_Description(), ecorePackage.getEString(), "description", null, 0, 1, Feature.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeature_FeatureSet(), this.getFeatureSet(), this.getFeatureSet_Features(), "featureSet", null, //$NON-NLS-1$ - 1, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeature_FeatureVersions(), this.getFeatureVersion(), this.getFeatureVersion_Feature(), - "featureVersions", null, 0, -1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureVersionEClass, FeatureVersion.class, "FeatureVersion", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeatureVersion_Version(), ecorePackage.getEString(), "version", null, 1, 1, //$NON-NLS-1$ - FeatureVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getFeatureVersion_Feature(), this.getFeature(), this.getFeature_FeatureVersions(), "feature", //$NON-NLS-1$ - null, 1, 1, FeatureVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFeatureVersion_News(), ecorePackage.getEString(), "news", null, 0, 1, FeatureVersion.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // FeaturesPackageImpl diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesFactory.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesFactory.java deleted file mode 100644 index 5bf9d1f00..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesFactory.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.meta; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage - * @generated - */ -public interface FeaturesFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - FeaturesFactory eINSTANCE = org.eclipse.passage.lic.features.model.impl.FeaturesFactoryImpl.init(); - - /** - * Returns a new object of class 'Feature Set'. - * - * - * @return a new object of class 'Feature Set'. - * @generated - */ - FeatureSet createFeatureSet(); - - /** - * Returns a new object of class 'Feature'. - * - * - * @return a new object of class 'Feature'. - * @generated - */ - Feature createFeature(); - - /** - * Returns a new object of class 'Feature Version'. - * - * - * @return a new object of class 'Feature Version'. - * @generated - */ - FeatureVersion createFeatureVersion(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - FeaturesPackage getFeaturesPackage(); - -} // FeaturesFactory diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesPackage.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesPackage.java deleted file mode 100644 index e3deef7f6..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/meta/FeaturesPackage.java +++ /dev/null @@ -1,452 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.meta; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *

    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesFactory - * @model kind="package" - * @generated - */ -public interface FeaturesPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "features"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/passage/lic/features/3.0.0"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "features"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - FeaturesPackage eINSTANCE = org.eclipse.passage.lic.features.model.impl.FeaturesPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.features.model.impl.FeatureSetImpl Feature Set}' class. - * - * - * @see org.eclipse.passage.lic.features.model.impl.FeatureSetImpl - * @see org.eclipse.passage.lic.features.model.impl.FeaturesPackageImpl#getFeatureSet() - * @generated - */ - int FEATURE_SET = 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_SET__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_SET__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_SET__DESCRIPTION = 2; - - /** - * The feature id for the 'Features' containment reference list. - * - * - * @generated - * @ordered - */ - int FEATURE_SET__FEATURES = 3; - - /** - * The number of structural features of the 'Feature Set' class. - * - * - * @generated - * @ordered - */ - int FEATURE_SET_FEATURE_COUNT = 4; - - /** - * The number of operations of the 'Feature Set' class. - * - * - * @generated - * @ordered - */ - int FEATURE_SET_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.features.model.impl.FeatureImpl Feature}' class. - * - * - * @see org.eclipse.passage.lic.features.model.impl.FeatureImpl - * @see org.eclipse.passage.lic.features.model.impl.FeaturesPackageImpl#getFeature() - * @generated - */ - int FEATURE = 1; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE__IDENTIFIER = 0; - - /** - * The feature id for the 'Provider' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE__PROVIDER = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE__NAME = 2; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE__DESCRIPTION = 3; - - /** - * The feature id for the 'Feature Set' container reference. - * - * - * @generated - * @ordered - */ - int FEATURE__FEATURE_SET = 4; - - /** - * The feature id for the 'Feature Versions' containment reference list. - * - * - * @generated - * @ordered - */ - int FEATURE__FEATURE_VERSIONS = 5; - - /** - * The number of structural features of the 'Feature' class. - * - * - * @generated - * @ordered - */ - int FEATURE_FEATURE_COUNT = 6; - - /** - * The number of operations of the 'Feature' class. - * - * - * @generated - * @ordered - */ - int FEATURE_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.features.model.impl.FeatureVersionImpl Feature Version}' class. - * - * - * @see org.eclipse.passage.lic.features.model.impl.FeatureVersionImpl - * @see org.eclipse.passage.lic.features.model.impl.FeaturesPackageImpl#getFeatureVersion() - * @generated - */ - int FEATURE_VERSION = 2; - - /** - * The feature id for the 'Version' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_VERSION__VERSION = 0; - - /** - * The feature id for the 'Feature' container reference. - * - * - * @generated - * @ordered - */ - int FEATURE_VERSION__FEATURE = 1; - - /** - * The feature id for the 'News' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE_VERSION__NEWS = 2; - - /** - * The number of structural features of the 'Feature Version' class. - * - * - * @generated - * @ordered - */ - int FEATURE_VERSION_FEATURE_COUNT = 3; - - /** - * The number of operations of the 'Feature Version' class. - * - * - * @generated - * @ordered - */ - int FEATURE_VERSION_OPERATION_COUNT = 0; - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.features.model.api.FeatureSet Feature Set}'. - * - * - * @return the meta object for class 'Feature Set'. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet - * @generated - */ - EClass getFeatureSet(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet#getIdentifier() - * @see #getFeatureSet() - * @generated - */ - EAttribute getFeatureSet_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet#getName() - * @see #getFeatureSet() - * @generated - */ - EAttribute getFeatureSet_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet#getDescription() - * @see #getFeatureSet() - * @generated - */ - EAttribute getFeatureSet_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.features.model.api.FeatureSet#getFeatures Features}'. - * - * - * @return the meta object for the containment reference list 'Features'. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet#getFeatures() - * @see #getFeatureSet() - * @generated - */ - EReference getFeatureSet_Features(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.features.model.api.Feature Feature}'. - * - * - * @return the meta object for class 'Feature'. - * @see org.eclipse.passage.lic.features.model.api.Feature - * @generated - */ - EClass getFeature(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.Feature#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getIdentifier() - * @see #getFeature() - * @generated - */ - EAttribute getFeature_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.Feature#getProvider Provider}'. - * - * - * @return the meta object for the attribute 'Provider'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getProvider() - * @see #getFeature() - * @generated - */ - EAttribute getFeature_Provider(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.Feature#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getName() - * @see #getFeature() - * @generated - */ - EAttribute getFeature_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.Feature#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getDescription() - * @see #getFeature() - * @generated - */ - EAttribute getFeature_Description(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet Feature Set}'. - * - * - * @return the meta object for the container reference 'Feature Set'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getFeatureSet() - * @see #getFeature() - * @generated - */ - EReference getFeature_FeatureSet(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.features.model.api.Feature#getFeatureVersions Feature Versions}'. - * - * - * @return the meta object for the containment reference list 'Feature Versions'. - * @see org.eclipse.passage.lic.features.model.api.Feature#getFeatureVersions() - * @see #getFeature() - * @generated - */ - EReference getFeature_FeatureVersions(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion Feature Version}'. - * - * - * @return the meta object for class 'Feature Version'. - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion - * @generated - */ - EClass getFeatureVersion(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getVersion Version}'. - * - * - * @return the meta object for the attribute 'Version'. - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion#getVersion() - * @see #getFeatureVersion() - * @generated - */ - EAttribute getFeatureVersion_Version(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature Feature}'. - * - * - * @return the meta object for the container reference 'Feature'. - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion#getFeature() - * @see #getFeatureVersion() - * @generated - */ - EReference getFeatureVersion_Feature(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion#getNews News}'. - * - * - * @return the meta object for the attribute 'News'. - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion#getNews() - * @see #getFeatureVersion() - * @generated - */ - EAttribute getFeatureVersion_News(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - FeaturesFactory getFeaturesFactory(); - -} // FeaturesPackage diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesAdapterFactory.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesAdapterFactory.java deleted file mode 100644 index 06d06bbd1..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesAdapterFactory.java +++ /dev/null @@ -1,167 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage - * @generated - */ -public class FeaturesAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static FeaturesPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public FeaturesAdapterFactory() { - if (modelPackage == null) { - modelPackage = FeaturesPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected FeaturesSwitch modelSwitch = new FeaturesSwitch() { - @Override - public Adapter caseFeatureSet(FeatureSet object) { - return createFeatureSetAdapter(); - } - - @Override - public Adapter caseFeature(Feature object) { - return createFeatureAdapter(); - } - - @Override - public Adapter caseFeatureVersion(FeatureVersion object) { - return createFeatureVersionAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.features.model.api.FeatureSet Feature Set}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.features.model.api.FeatureSet - * @generated - */ - public Adapter createFeatureSetAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.features.model.api.Feature Feature}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.features.model.api.Feature - * @generated - */ - public Adapter createFeatureAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.features.model.api.FeatureVersion Feature Version}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.features.model.api.FeatureVersion - * @generated - */ - public Adapter createFeatureVersionAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // FeaturesAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesSwitch.java b/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesSwitch.java deleted file mode 100644 index 46ee88b0e..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src-gen/org/eclipse/passage/lic/features/model/util/FeaturesSwitch.java +++ /dev/null @@ -1,167 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.passage.lic.features.model.meta.FeaturesPackage - * @generated - */ -public class FeaturesSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static FeaturesPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public FeaturesSwitch() { - if (modelPackage == null) { - modelPackage = FeaturesPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case FeaturesPackage.FEATURE_SET: { - FeatureSet featureSet = (FeatureSet) theEObject; - T result = caseFeatureSet(featureSet); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case FeaturesPackage.FEATURE: { - Feature feature = (Feature) theEObject; - T result = caseFeature(feature); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case FeaturesPackage.FEATURE_VERSION: { - FeatureVersion featureVersion = (FeatureVersion) theEObject; - T result = caseFeatureVersion(featureVersion); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature Set'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature Set'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureSet(FeatureSet object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeature(Feature object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature Version'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature Version'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeatureVersion(FeatureVersion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} // FeaturesSwitch diff --git a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/FeaturesClassMetadata.java b/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/FeaturesClassMetadata.java deleted file mode 100644 index 38f8612fc..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/FeaturesClassMetadata.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.features.model; - -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -import org.eclipse.passage.lic.emf.meta.ClassMetadata; -import org.eclipse.passage.lic.emf.meta.EntityMetadata; -import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -public final class FeaturesClassMetadata implements ClassMetadata { - - private final FeaturesPackage meta; - // FIXME: we need to employ Cached here - private final Map, EntityMetadata> map; - - public FeaturesClassMetadata() { - meta = FeaturesPackage.eINSTANCE; - map = new HashMap, EntityMetadata>(); - map.put(FeatureSet.class, // - new PlainEntityMetadata(// - meta.getFeatureSet(), // - meta.getFeatureSet_Identifier(), // - meta.getFeatureSet_Name())); - map.put(Feature.class, // - new PlainEntityMetadata(// - meta.getFeature(), // - meta.getFeature_Identifier(), // - meta.getFeature_Name())); - } - - @Override - public Optional find(Class clazz) { - return Optional.ofNullable(map.get(clazz)); - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/migration/FeaturesResourceHandler.java b/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/migration/FeaturesResourceHandler.java deleted file mode 100644 index 753afacfe..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/migration/FeaturesResourceHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.features.model.migration; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.passage.lic.emf.migration.DelegateClassifiers; -import org.eclipse.passage.lic.emf.migration.EClassRoutes; -import org.eclipse.passage.lic.emf.migration.MigrationRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleClassRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleMigrationRoutes; -import org.eclipse.passage.lic.emf.xmi.MigratingResourceHandler; -import org.eclipse.passage.lic.features.model.meta.FeaturesPackage; - -public final class FeaturesResourceHandler extends MigratingResourceHandler { - - @Override - protected void complete(XMLResource resource) { - // do nothing - } - - @Override - protected void register() { - migrate033(); - migrate040(); - migrate050(); - migrate200(); - } - - @Override - protected MigrationRoutes attributes() { - return new SimpleMigrationRoutes(); - } - - private void migrate033() { - String uri = "http://www.eclipse.org/passage/lic/0.3.3"; //$NON-NLS-1$ - FeaturesPackage delegate = FeaturesPackage.eINSTANCE; - EClassRoutes.Smart smart = new EClassRoutes.Smart(new SimpleClassRoutes()); - smart.define(delegate.getFeatureSet()); - smart.define(delegate.getFeature()); - smart.define(delegate.getFeatureVersion()); - new DelegateClassifiers(uri).delegate(smart); - } - - private void migrate040() { - String uri = "http://www.eclipse.org/passage/lic/features/0.4.0"; //$NON-NLS-1$ - FeaturesPackage delegate = FeaturesPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - - private void migrate050() { - String uri = "http://www.eclipse.org/passage/lic/features/0.5.0"; //$NON-NLS-1$ - FeaturesPackage delegate = FeaturesPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - - private void migrate200() { - String uri = "http://www.eclipse.org/passage/lic/features/2.0.0"; //$NON-NLS-1$ - FeaturesPackage delegate = FeaturesPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceFactoryImpl.java b/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceFactoryImpl.java deleted file mode 100644 index d1e46e640..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceFactoryImpl.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.features.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -public class FeaturesResourceFactoryImpl extends ResourceFactoryImpl { - - @Override - public Resource createResource(URI uri) { - return new FeaturesResourceImpl(uri); - } - -} diff --git a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceImpl.java b/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceImpl.java deleted file mode 100644 index ff0c76973..000000000 --- a/bundles/org.eclipse.passage.lic.features.model/src/org/eclipse/passage/lic/internal/features/model/util/FeaturesResourceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.features.model.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; -import org.eclipse.passage.lic.internal.features.model.migration.FeaturesResourceHandler; - -public class FeaturesResourceImpl extends XMIResourceImpl { - - public FeaturesResourceImpl(URI uri) { - super(uri); - } - - @Override - protected void init() { - super.init(); - Map options = getDefaultLoadOptions(); - options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); - options.put(OPTION_RESOURCE_HANDLER, new FeaturesResourceHandler()); - } - -} diff --git a/bundles/org.eclipse.passage.lic.features/.classpath b/bundles/org.eclipse.passage.lic.features/.classpath deleted file mode 100644 index a7a673fa7..000000000 --- a/bundles/org.eclipse.passage.lic.features/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/bundles/org.eclipse.passage.lic.features/.project b/bundles/org.eclipse.passage.lic.features/.project deleted file mode 100644 index 4a390c934..000000000 --- a/bundles/org.eclipse.passage.lic.features/.project +++ /dev/null @@ -1,35 +0,0 @@ - - - org.eclipse.passage.lic.features - - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.features/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.features/META-INF/MANIFEST.MF deleted file mode 100644 index 5fa9397d9..000000000 --- a/bundles/org.eclipse.passage.lic.features/META-INF/MANIFEST.MF +++ /dev/null @@ -1,10 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.features -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.features -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.passage.lic.api;bundle-version="0.0.0";visibility:=reexport diff --git a/bundles/org.eclipse.passage.lic.features/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.features/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 0dc38c691..000000000 --- a/bundles/org.eclipse.passage.lic.features/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Features -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.features/about.html b/bundles/org.eclipse.passage.lic.features/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.features/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.features/about.ini b/bundles/org.eclipse.passage.lic.features/about.ini deleted file mode 100644 index 8dbb28325..000000000 --- a/bundles/org.eclipse.passage.lic.features/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.features/about.mappings b/bundles/org.eclipse.passage.lic.features/about.mappings deleted file mode 100644 index 7d53a6a2c..000000000 --- a/bundles/org.eclipse.passage.lic.features/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.features/about.properties b/bundles/org.eclipse.passage.lic.features/about.properties deleted file mode 100644 index 4f7371400..000000000 --- a/bundles/org.eclipse.passage.lic.features/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Eclipse Passage Licensing Integration Components: EMF Model API for Features data\n\ -\n\ -Version: {featureVersion}\n\ -\n\ -(c) Copyright (c) 2018, 2024 ArSysOp and others. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.features/build.properties b/bundles/org.eclipse.passage.lic.features/build.properties deleted file mode 100644 index 40677a74b..000000000 --- a/bundles/org.eclipse.passage.lic.features/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.features/passage32.png b/bundles/org.eclipse.passage.lic.features/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.features/passage32.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/.classpath b/bundles/org.eclipse.passage.lic.keys.ecore/.classpath deleted file mode 100644 index 1a821310b..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/.project b/bundles/org.eclipse.passage.lic.keys.ecore/.project deleted file mode 100644 index df419ce84..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.keys.ecore - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.keys.ecore/META-INF/MANIFEST.MF deleted file mode 100644 index 370255661..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.keys.ecore -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.keys.ecore -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.keys.ecore/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 47d4cd5eb..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Keys Ecore -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/about.html b/bundles/org.eclipse.passage.lic.keys.ecore/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/build.properties b/bundles/org.eclipse.passage.lic.keys.ecore/build.properties deleted file mode 100644 index 0dd897ce9..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -# ArSysOp - further support -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - OSGI-INF/,\ - model/,\ - about.html,\ - . -src.includes = model/ diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/images/keys.svg b/bundles/org.eclipse.passage.lic.keys.ecore/images/keys.svg deleted file mode 100644 index a55be0dde..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/images/keys.svg +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - KeyPair - - algorithm : EString - - key : EInt - - pub : EString - - scr : EString - - - - - - - ProductRef - - identifier : EString - - version : EString - - - - - - - KeyPairRO - - - - - - - ProductRefRO - - - - - [1..1] product - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/model/keys.ecore b/bundles/org.eclipse.passage.lic.keys.ecore/model/keys.ecore deleted file mode 100644 index 890603660..000000000 --- a/bundles/org.eclipse.passage.lic.keys.ecore/model/keys.ecore +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.ecore/src/.gitkeep b/bundles/org.eclipse.passage.lic.keys.ecore/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.keys.edit/.classpath b/bundles/org.eclipse.passage.lic.keys.edit/.classpath deleted file mode 100644 index abaf32b3e..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.edit/.project b/bundles/org.eclipse.passage.lic.keys.edit/.project deleted file mode 100644 index cb9fc3ed1..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.keys.edit - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.keys.edit/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.keys.edit/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.keys.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.keys.edit/META-INF/MANIFEST.MF deleted file mode 100644 index 19a0a179e..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.keys.edit -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.keys.edit;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.passage.lic.keys.model;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport -Export-Package: org.eclipse.passage.lic.keys.edit, - org.eclipse.passage.lic.keys.edit.providers -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.passage.lic.keys.edit.KeysEditPlugin$Implementation -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.keys.edit/about.html b/bundles/org.eclipse.passage.lic.keys.edit/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.keys.edit/build.properties b/bundles/org.eclipse.passage.lic.keys.edit/build.properties deleted file mode 100644 index 44f9300a9..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/build.properties +++ /dev/null @@ -1,20 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/ -output.. = bin/ -bin.includes = .,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.keys.edit/plugin.properties b/bundles/org.eclipse.passage.lic.keys.edit/plugin.properties deleted file mode 100644 index df7518a96..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/plugin.properties +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Keys Edit Support -providerName=Eclipse Passage - -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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_KeyPair_type = Key Pair -_UI_ProductRef_type = Product Ref -_UI_Unknown_type = Object - -_UI_Unknown_datatype= Value - -_UI_KeyPair_product_feature = Product -_UI_KeyPair_algorithm_feature = Algorithm -_UI_KeyPair_key_feature = Key -_UI_KeyPair_pub_feature = Pub -_UI_KeyPair_scr_feature = Scr -_UI_ProductRef_identifier_feature = Identifier -_UI_ProductRef_version_feature = Version -_UI_Unknown_feature = Unspecified - - diff --git a/bundles/org.eclipse.passage.lic.keys.edit/plugin.xml b/bundles/org.eclipse.passage.lic.keys.edit/plugin.xml deleted file mode 100644 index e295334c9..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/KeysEditPlugin.java b/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/KeysEditPlugin.java deleted file mode 100644 index 48624b2d0..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/KeysEditPlugin.java +++ /dev/null @@ -1,96 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.edit; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; - -/** - * This is the central singleton for the Keys edit plugin. - * - * - * @generated - */ -public final class KeysEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final KeysEditPlugin INSTANCE = new KeysEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public KeysEditPlugin() { - super(new ResourceLocator[] {}); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeyPairItemProvider.java b/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeyPairItemProvider.java deleted file mode 100644 index eff1297d9..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeyPairItemProvider.java +++ /dev/null @@ -1,241 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.keys.edit.KeysEditPlugin; -import org.eclipse.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.meta.KeysFactory; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.keys.model.api.KeyPair} object. - * - * - * @generated - */ -public class KeyPairItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public KeyPairItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addAlgorithmPropertyDescriptor(object); - addKeyPropertyDescriptor(object); - addPubPropertyDescriptor(object); - addScrPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Algorithm feature. - * - * - * @generated - */ - protected void addAlgorithmPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_KeyPair_algorithm_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeyPair_algorithm_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_KeyPair_type"), //$NON-NLS-1$ - KeysPackage.eINSTANCE.getKeyPair_Algorithm(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Key feature. - * - * - * @generated - */ - protected void addKeyPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_KeyPair_key_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeyPair_key_feature", "_UI_KeyPair_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - KeysPackage.eINSTANCE.getKeyPair_Key(), true, false, false, - ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Pub feature. - * - * - * @generated - */ - protected void addPubPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_KeyPair_pub_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeyPair_pub_feature", "_UI_KeyPair_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - KeysPackage.eINSTANCE.getKeyPair_Pub(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Scr feature. - * - * - * @generated - */ - protected void addScrPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_KeyPair_scr_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_KeyPair_scr_feature", "_UI_KeyPair_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - KeysPackage.eINSTANCE.getKeyPair_Scr(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(KeysPackage.eINSTANCE.getKeyPair_Product()); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((KeyPair) object).getAlgorithm(); - return label == null || label.length() == 0 ? getString("_UI_KeyPair_type") : //$NON-NLS-1$ - getString("_UI_KeyPair_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(KeyPair.class)) { - case KeysPackage.KEY_PAIR__ALGORITHM: - case KeysPackage.KEY_PAIR__KEY: - case KeysPackage.KEY_PAIR__PUB: - case KeysPackage.KEY_PAIR__SCR: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case KeysPackage.KEY_PAIR__PRODUCT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(KeysPackage.eINSTANCE.getKeyPair_Product(), - KeysFactory.eINSTANCE.createProductRef())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return KeysEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeysItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeysItemProviderAdapterFactory.java deleted file mode 100644 index 64fc2a073..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/KeysItemProviderAdapterFactory.java +++ /dev/null @@ -1,240 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.edit.providers; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.passage.lic.keys.model.util.KeysAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class KeysItemProviderAdapterFactory extends KeysAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public KeysItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.keys.model.api.KeyPair} instances. - * - * - * @generated - */ - protected KeyPairItemProvider keyPairItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.keys.model.api.KeyPair}. - * - * - * @generated - */ - @Override - public Adapter createKeyPairAdapter() { - if (keyPairItemProvider == null) { - keyPairItemProvider = new KeyPairItemProvider(this); - } - - return keyPairItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.keys.model.api.ProductRef} instances. - * - * - * @generated - */ - protected ProductRefItemProvider productRefItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.keys.model.api.ProductRef}. - * - * - * @generated - */ - @Override - public Adapter createProductRefAdapter() { - if (productRefItemProvider == null) { - productRefItemProvider = new ProductRefItemProvider(this); - } - - return productRefItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - @Override - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - @Override - public void dispose() { - if (keyPairItemProvider != null) - keyPairItemProvider.dispose(); - if (productRefItemProvider != null) - productRefItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/ProductRefItemProvider.java b/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/ProductRefItemProvider.java deleted file mode 100644 index a1a5514d8..000000000 --- a/bundles/org.eclipse.passage.lic.keys.edit/src-gen/org/eclipse/passage/lic/keys/edit/providers/ProductRefItemProvider.java +++ /dev/null @@ -1,170 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.keys.edit.KeysEditPlugin; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.keys.model.api.ProductRef} object. - * - * - * @generated - */ -public class ProductRefItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ProductRefItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addVersionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductRef_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductRef_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductRef_type"), //$NON-NLS-1$ - KeysPackage.eINSTANCE.getProductRef_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Version feature. - * - * - * @generated - */ - protected void addVersionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductRef_version_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductRef_version_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductRef_type"), //$NON-NLS-1$ - KeysPackage.eINSTANCE.getProductRef_Version(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((ProductRef) object).getIdentifier(); - return label == null || label.length() == 0 ? getString("_UI_ProductRef_type") : //$NON-NLS-1$ - getString("_UI_ProductRef_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ProductRef.class)) { - case KeysPackage.PRODUCT_REF__IDENTIFIER: - case KeysPackage.PRODUCT_REF__VERSION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return KeysEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.model/.classpath b/bundles/org.eclipse.passage.lic.keys.model/.classpath deleted file mode 100644 index 8ec7c5862..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.model/.project b/bundles/org.eclipse.passage.lic.keys.model/.project deleted file mode 100644 index 604f979a6..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.passage.lic.keys.model - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.keys.model/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.keys.model/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.keys.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.keys.model/META-INF/MANIFEST.MF deleted file mode 100644 index 397964721..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/META-INF/MANIFEST.MF +++ /dev/null @@ -1,22 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.keys.model -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.keys.model;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";resolution:=optional;x-installation:=greedy, - org.eclipse.emf.ecore.xmi;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.ecore;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.emf;bundle-version="0.0.0", - org.eclipse.passage.lic.keys;bundle-version="0.0.0";visibility:=reexport -Export-Package: org.eclipse.passage.lic.internal.keys.model.util;x-internal:=true, - org.eclipse.passage.lic.keys.model.api, - org.eclipse.passage.lic.keys.model.impl;x-internal:=true, - org.eclipse.passage.lic.keys.model.meta, - org.eclipse.passage.lic.keys.model.util -Bundle-ClassPath: . -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.keys.model/about.html b/bundles/org.eclipse.passage.lic.keys.model/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.keys.model/build.properties b/bundles/org.eclipse.passage.lic.keys.model/build.properties deleted file mode 100644 index 54e8e9dc1..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/,\ - src/ -output.. = target/classes -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.keys.model/model/keys.genmodel b/bundles/org.eclipse.passage.lic.keys.model/model/keys.genmodel deleted file mode 100644 index c22390224..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/model/keys.genmodel +++ /dev/null @@ -1,30 +0,0 @@ - - - platform:/resource/org.eclipse.passage.lic.keys.ecore/model/keys.ecore - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.model/plugin.properties b/bundles/org.eclipse.passage.lic.keys.model/plugin.properties deleted file mode 100644 index 9f1418c64..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Keys Model -providerName=Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/bundles/org.eclipse.passage.lic.keys.model/plugin.xml b/bundles/org.eclipse.passage.lic.keys.model/plugin.xml deleted file mode 100644 index 930ccc68f..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/plugin.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/KeyPair.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/KeyPair.java deleted file mode 100644 index b932e5155..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/KeyPair.java +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Key Pair'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.keys.model.api.KeyPair#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.api.KeyPair#getAlgorithm Algorithm}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.api.KeyPair#getKey Key}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.api.KeyPair#getPub Pub}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.api.KeyPair#getScr Scr}
  • - *
- * - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair() - * @model - * @generated - */ -public interface KeyPair extends EObject { - /** - * Returns the value of the 'Product' containment reference. - * - * - * @return the value of the 'Product' containment reference. - * @see #setProduct(ProductRef) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair_Product() - * @model containment="true" required="true" - * @generated - */ - ProductRef getProduct(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getProduct Product}' containment reference. - * - * - * @param value the new value of the 'Product' containment reference. - * @see #getProduct() - * @generated - */ - void setProduct(ProductRef value); - - /** - * Returns the value of the 'Algorithm' attribute. - * - * - * @return the value of the 'Algorithm' attribute. - * @see #setAlgorithm(String) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair_Algorithm() - * @model required="true" - * @generated - */ - String getAlgorithm(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getAlgorithm Algorithm}' attribute. - * - * - * @param value the new value of the 'Algorithm' attribute. - * @see #getAlgorithm() - * @generated - */ - void setAlgorithm(String value); - - /** - * Returns the value of the 'Key' attribute. - * - * - * @return the value of the 'Key' attribute. - * @see #setKey(int) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair_Key() - * @model required="true" - * @generated - */ - int getKey(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getKey Key}' attribute. - * - * - * @param value the new value of the 'Key' attribute. - * @see #getKey() - * @generated - */ - void setKey(int value); - - /** - * Returns the value of the 'Pub' attribute. - * - * - * @return the value of the 'Pub' attribute. - * @see #setPub(String) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair_Pub() - * @model required="true" - * @generated - */ - String getPub(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getPub Pub}' attribute. - * - * - * @param value the new value of the 'Pub' attribute. - * @see #getPub() - * @generated - */ - void setPub(String value); - - /** - * Returns the value of the 'Scr' attribute. - * - * - * @return the value of the 'Scr' attribute. - * @see #setScr(String) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getKeyPair_Scr() - * @model required="true" - * @generated - */ - String getScr(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getScr Scr}' attribute. - * - * - * @param value the new value of the 'Scr' attribute. - * @see #getScr() - * @generated - */ - void setScr(String value); - -} // KeyPair diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/ProductRef.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/ProductRef.java deleted file mode 100644 index 8ae2c7755..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/api/ProductRef.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Product Ref'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.keys.model.api.ProductRef#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.api.ProductRef#getVersion Version}
  • - *
- * - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getProductRef() - * @model - * @generated - */ -public interface ProductRef extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getProductRef_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.ProductRef#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Version' attribute. - * - * - * @return the value of the 'Version' attribute. - * @see #setVersion(String) - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#getProductRef_Version() - * @model required="true" - * @generated - */ - String getVersion(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.keys.model.api.ProductRef#getVersion Version}' attribute. - * - * - * @param value the new value of the 'Version' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - -} // ProductRef diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeyPairImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeyPairImpl.java deleted file mode 100644 index b0d468295..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeyPairImpl.java +++ /dev/null @@ -1,446 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.impl; - -import java.util.Objects; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -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.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * An implementation of the model object 'Key Pair'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl#getAlgorithm Algorithm}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl#getKey Key}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl#getPub Pub}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl#getScr Scr}
  • - *
- * - * @generated - */ -public class KeyPairImpl extends MinimalEObjectImpl.Container implements KeyPair { - /** - * The cached value of the '{@link #getProduct() Product}' containment reference. - * - * - * @see #getProduct() - * @generated - * @ordered - */ - protected ProductRef product; - - /** - * The default value of the '{@link #getAlgorithm() Algorithm}' attribute. - * - * - * @see #getAlgorithm() - * @generated - * @ordered - */ - protected static final String ALGORITHM_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAlgorithm() Algorithm}' attribute. - * - * - * @see #getAlgorithm() - * @generated - * @ordered - */ - private String algorithm = ALGORITHM_EDEFAULT; - - /** - * The default value of the '{@link #getKey() Key}' attribute. - * - * - * @see #getKey() - * @generated - * @ordered - */ - protected static final int KEY_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getKey() Key}' attribute. - * - * - * @see #getKey() - * @generated - * @ordered - */ - private int key = KEY_EDEFAULT; - - /** - * The default value of the '{@link #getPub() Pub}' attribute. - * - * - * @see #getPub() - * @generated - * @ordered - */ - protected static final String PUB_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPub() Pub}' attribute. - * - * - * @see #getPub() - * @generated - * @ordered - */ - private String pub = PUB_EDEFAULT; - - /** - * The default value of the '{@link #getScr() Scr}' attribute. - * - * - * @see #getScr() - * @generated - * @ordered - */ - protected static final String SCR_EDEFAULT = null; - - /** - * The cached value of the '{@link #getScr() Scr}' attribute. - * - * - * @see #getScr() - * @generated - * @ordered - */ - private String scr = SCR_EDEFAULT; - - /** - * - * - * @generated - */ - protected KeyPairImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return KeysPackage.eINSTANCE.getKeyPair(); - } - - /** - * - * - * @generated - */ - @Override - public ProductRef getProduct() { - return product; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetProduct(ProductRef newProduct, NotificationChain msgs) { - ProductRef oldProduct = product; - product = newProduct; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - KeysPackage.KEY_PAIR__PRODUCT, oldProduct, newProduct); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setProduct(ProductRef newProduct) { - if (newProduct != product) { - NotificationChain msgs = null; - if (product != null) - msgs = ((InternalEObject) product).eInverseRemove(this, - EOPPOSITE_FEATURE_BASE - KeysPackage.KEY_PAIR__PRODUCT, null, msgs); - if (newProduct != null) - msgs = ((InternalEObject) newProduct).eInverseAdd(this, - EOPPOSITE_FEATURE_BASE - KeysPackage.KEY_PAIR__PRODUCT, null, msgs); - msgs = basicSetProduct(newProduct, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.KEY_PAIR__PRODUCT, newProduct, - newProduct)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getAlgorithm() { - return algorithm; - } - - /** - * - * - * @generated - */ - @Override - public void setAlgorithm(String newAlgorithm) { - String oldAlgorithm = algorithm; - algorithm = newAlgorithm; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.KEY_PAIR__ALGORITHM, oldAlgorithm, - algorithm)); - } - } - - /** - * - * - * @generated - */ - @Override - public int getKey() { - return key; - } - - /** - * - * - * @generated - */ - @Override - public void setKey(int newKey) { - int oldKey = key; - key = newKey; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.KEY_PAIR__KEY, oldKey, key)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getPub() { - return pub; - } - - /** - * - * - * @generated - */ - @Override - public void setPub(String newPub) { - String oldPub = pub; - pub = newPub; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.KEY_PAIR__PUB, oldPub, pub)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getScr() { - return scr; - } - - /** - * - * - * @generated - */ - @Override - public void setScr(String newScr) { - String oldScr = scr; - scr = newScr; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.KEY_PAIR__SCR, oldScr, scr)); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case KeysPackage.KEY_PAIR__PRODUCT: - return basicSetProduct(null, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case KeysPackage.KEY_PAIR__PRODUCT: - return getProduct(); - case KeysPackage.KEY_PAIR__ALGORITHM: - return getAlgorithm(); - case KeysPackage.KEY_PAIR__KEY: - return getKey(); - case KeysPackage.KEY_PAIR__PUB: - return getPub(); - case KeysPackage.KEY_PAIR__SCR: - return getScr(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case KeysPackage.KEY_PAIR__PRODUCT: - setProduct((ProductRef) newValue); - return; - case KeysPackage.KEY_PAIR__ALGORITHM: - setAlgorithm((String) newValue); - return; - case KeysPackage.KEY_PAIR__KEY: - setKey((Integer) newValue); - return; - case KeysPackage.KEY_PAIR__PUB: - setPub((String) newValue); - return; - case KeysPackage.KEY_PAIR__SCR: - setScr((String) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case KeysPackage.KEY_PAIR__PRODUCT: - setProduct((ProductRef) null); - return; - case KeysPackage.KEY_PAIR__ALGORITHM: - setAlgorithm(ALGORITHM_EDEFAULT); - return; - case KeysPackage.KEY_PAIR__KEY: - setKey(KEY_EDEFAULT); - return; - case KeysPackage.KEY_PAIR__PUB: - setPub(PUB_EDEFAULT); - return; - case KeysPackage.KEY_PAIR__SCR: - setScr(SCR_EDEFAULT); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case KeysPackage.KEY_PAIR__PRODUCT: - return product != null; - case KeysPackage.KEY_PAIR__ALGORITHM: - return !Objects.equals(ALGORITHM_EDEFAULT, algorithm); - case KeysPackage.KEY_PAIR__KEY: - return key != KEY_EDEFAULT; - case KeysPackage.KEY_PAIR__PUB: - return !Objects.equals(PUB_EDEFAULT, pub); - case KeysPackage.KEY_PAIR__SCR: - return !Objects.equals(SCR_EDEFAULT, scr); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (algorithm: "); //$NON-NLS-1$ - result.append(algorithm); - result.append(", key: "); //$NON-NLS-1$ - result.append(key); - result.append(", pub: "); //$NON-NLS-1$ - result.append(pub); - result.append(", scr: "); //$NON-NLS-1$ - result.append(scr); - result.append(')'); - return result.toString(); - } - -} // KeyPairImpl diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysFactoryImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysFactoryImpl.java deleted file mode 100644 index 542400c41..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysFactoryImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.impl; - -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.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysFactory; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class KeysFactoryImpl extends EFactoryImpl implements KeysFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static KeysFactory init() { - try { - KeysFactory theKeysFactory = (KeysFactory) EPackage.Registry.INSTANCE.getEFactory(KeysPackage.eNS_URI); - if (theKeysFactory != null) { - return theKeysFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new KeysFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public KeysFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case KeysPackage.KEY_PAIR: - return createKeyPair(); - case KeysPackage.PRODUCT_REF: - return createProductRef(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * @generated - */ - @Override - public KeyPair createKeyPair() { - KeyPairImpl keyPair = new KeyPairImpl(); - return keyPair; - } - - /** - * - * - * @generated - */ - @Override - public ProductRef createProductRef() { - ProductRefImpl productRef = new ProductRefImpl(); - return productRef; - } - - /** - * - * - * @generated - */ - @Override - public KeysPackage getKeysPackage() { - return (KeysPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static KeysPackage getPackage() { - return KeysPackage.eINSTANCE; - } - -} // KeysFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysPackageImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysPackageImpl.java deleted file mode 100644 index ee9960b5f..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/KeysPackageImpl.java +++ /dev/null @@ -1,298 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysFactory; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class KeysPackageImpl extends EPackageImpl implements KeysPackage { - /** - * - * - * @generated - */ - private EClass keyPairEClass = null; - - /** - * - * - * @generated - */ - private EClass productRefEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage#eNS_URI - * @see #init() - * @generated - */ - private KeysPackageImpl() { - super(eNS_URI, KeysFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link KeysPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static KeysPackage init() { - if (isInited) - return (KeysPackage) EPackage.Registry.INSTANCE.getEPackage(KeysPackage.eNS_URI); - - // Obtain or create and register package - Object registeredKeysPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - KeysPackageImpl theKeysPackage = registeredKeysPackage instanceof KeysPackageImpl - ? (KeysPackageImpl) registeredKeysPackage - : new KeysPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theKeysPackage.createPackageContents(); - - // Initialize created meta-data - theKeysPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theKeysPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(KeysPackage.eNS_URI, theKeysPackage); - return theKeysPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getKeyPair() { - return keyPairEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getKeyPair_Product() { - return (EReference) keyPairEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getKeyPair_Algorithm() { - return (EAttribute) keyPairEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getKeyPair_Key() { - return (EAttribute) keyPairEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getKeyPair_Pub() { - return (EAttribute) keyPairEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getKeyPair_Scr() { - return (EAttribute) keyPairEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EClass getProductRef() { - return productRefEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getProductRef_Identifier() { - return (EAttribute) productRefEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getProductRef_Version() { - return (EAttribute) productRefEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public KeysFactory getKeysFactory() { - return (KeysFactory) getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - keyPairEClass = createEClass(KEY_PAIR); - createEReference(keyPairEClass, KEY_PAIR__PRODUCT); - createEAttribute(keyPairEClass, KEY_PAIR__ALGORITHM); - createEAttribute(keyPairEClass, KEY_PAIR__KEY); - createEAttribute(keyPairEClass, KEY_PAIR__PUB); - createEAttribute(keyPairEClass, KEY_PAIR__SCR); - - productRefEClass = createEClass(PRODUCT_REF); - createEAttribute(productRefEClass, PRODUCT_REF__IDENTIFIER); - createEAttribute(productRefEClass, PRODUCT_REF__VERSION); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes, features, and operations; add parameters - initEClass(keyPairEClass, KeyPair.class, "KeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEReference(getKeyPair_Product(), this.getProductRef(), null, "product", null, 1, 1, KeyPair.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getKeyPair_Algorithm(), ecorePackage.getEString(), "algorithm", null, 1, 1, KeyPair.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getKeyPair_Key(), ecorePackage.getEInt(), "key", null, 1, 1, KeyPair.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getKeyPair_Pub(), ecorePackage.getEString(), "pub", null, 1, 1, KeyPair.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getKeyPair_Scr(), ecorePackage.getEString(), "scr", null, 1, 1, KeyPair.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(productRefEClass, ProductRef.class, "ProductRef", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProductRef_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ - ProductRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductRef_Version(), ecorePackage.getEString(), "version", null, 1, 1, ProductRef.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // KeysPackageImpl diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/ProductRefImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/ProductRefImpl.java deleted file mode 100644 index 8d775b942..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/impl/ProductRefImpl.java +++ /dev/null @@ -1,241 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.impl; - -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.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * An implementation of the model object 'Product Ref'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.keys.model.impl.ProductRefImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.keys.model.impl.ProductRefImpl#getVersion Version}
  • - *
- * - * @generated - */ -public class ProductRefImpl extends MinimalEObjectImpl.Container implements ProductRef { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getVersion() Version}' attribute. - * - * - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() Version}' attribute. - * - * - * @see #getVersion() - * @generated - * @ordered - */ - private String version = VERSION_EDEFAULT; - - /** - * - * - * @generated - */ - protected ProductRefImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return KeysPackage.eINSTANCE.getProductRef(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.PRODUCT_REF__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getVersion() { - return version; - } - - /** - * - * - * @generated - */ - @Override - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, KeysPackage.PRODUCT_REF__VERSION, oldVersion, - version)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case KeysPackage.PRODUCT_REF__IDENTIFIER: - return getIdentifier(); - case KeysPackage.PRODUCT_REF__VERSION: - return getVersion(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case KeysPackage.PRODUCT_REF__IDENTIFIER: - setIdentifier((String) newValue); - return; - case KeysPackage.PRODUCT_REF__VERSION: - setVersion((String) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case KeysPackage.PRODUCT_REF__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case KeysPackage.PRODUCT_REF__VERSION: - setVersion(VERSION_EDEFAULT); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case KeysPackage.PRODUCT_REF__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case KeysPackage.PRODUCT_REF__VERSION: - return !Objects.equals(VERSION_EDEFAULT, version); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", version: "); //$NON-NLS-1$ - result.append(version); - result.append(')'); - return result.toString(); - } - -} // ProductRefImpl diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysFactory.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysFactory.java deleted file mode 100644 index 260cd703a..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysFactory.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.meta; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage - * @generated - */ -public interface KeysFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - KeysFactory eINSTANCE = org.eclipse.passage.lic.keys.model.impl.KeysFactoryImpl.init(); - - /** - * Returns a new object of class 'Key Pair'. - * - * - * @return a new object of class 'Key Pair'. - * @generated - */ - KeyPair createKeyPair(); - - /** - * Returns a new object of class 'Product Ref'. - * - * - * @return a new object of class 'Product Ref'. - * @generated - */ - ProductRef createProductRef(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - KeysPackage getKeysPackage(); - -} // KeysFactory diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysPackage.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysPackage.java deleted file mode 100644 index 349d179ce..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/meta/KeysPackage.java +++ /dev/null @@ -1,294 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.meta; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.passage.lic.keys.model.meta.KeysFactory - * @model kind="package" - * @generated - */ -public interface KeysPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "keys"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/passage/lic/keys/3.0.0"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "org.eclipse.passage.lic"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - KeysPackage eINSTANCE = org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.keys.model.impl.KeyPairImpl Key Pair}' class. - * - * - * @see org.eclipse.passage.lic.keys.model.impl.KeyPairImpl - * @see org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl#getKeyPair() - * @generated - */ - int KEY_PAIR = 0; - - /** - * The feature id for the 'Product' containment reference. - * - * - * @generated - * @ordered - */ - int KEY_PAIR__PRODUCT = 0; - - /** - * The feature id for the 'Algorithm' attribute. - * - * - * @generated - * @ordered - */ - int KEY_PAIR__ALGORITHM = 1; - - /** - * The feature id for the 'Key' attribute. - * - * - * @generated - * @ordered - */ - int KEY_PAIR__KEY = 2; - - /** - * The feature id for the 'Pub' attribute. - * - * - * @generated - * @ordered - */ - int KEY_PAIR__PUB = 3; - - /** - * The feature id for the 'Scr' attribute. - * - * - * @generated - * @ordered - */ - int KEY_PAIR__SCR = 4; - - /** - * The number of structural features of the 'Key Pair' class. - * - * - * @generated - * @ordered - */ - int KEY_PAIR_FEATURE_COUNT = 5; - - /** - * The number of operations of the 'Key Pair' class. - * - * - * @generated - * @ordered - */ - int KEY_PAIR_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.keys.model.impl.ProductRefImpl Product Ref}' class. - * - * - * @see org.eclipse.passage.lic.keys.model.impl.ProductRefImpl - * @see org.eclipse.passage.lic.keys.model.impl.KeysPackageImpl#getProductRef() - * @generated - */ - int PRODUCT_REF = 1; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int PRODUCT_REF__IDENTIFIER = 0; - - /** - * The feature id for the 'Version' attribute. - * - * - * @generated - * @ordered - */ - int PRODUCT_REF__VERSION = 1; - - /** - * The number of structural features of the 'Product Ref' class. - * - * - * @generated - * @ordered - */ - int PRODUCT_REF_FEATURE_COUNT = 2; - - /** - * The number of operations of the 'Product Ref' class. - * - * - * @generated - * @ordered - */ - int PRODUCT_REF_OPERATION_COUNT = 0; - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.keys.model.api.KeyPair Key Pair}'. - * - * - * @return the meta object for class 'Key Pair'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair - * @generated - */ - EClass getKeyPair(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getProduct Product}'. - * - * - * @return the meta object for the containment reference 'Product'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair#getProduct() - * @see #getKeyPair() - * @generated - */ - EReference getKeyPair_Product(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getAlgorithm Algorithm}'. - * - * - * @return the meta object for the attribute 'Algorithm'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair#getAlgorithm() - * @see #getKeyPair() - * @generated - */ - EAttribute getKeyPair_Algorithm(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getKey Key}'. - * - * - * @return the meta object for the attribute 'Key'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair#getKey() - * @see #getKeyPair() - * @generated - */ - EAttribute getKeyPair_Key(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getPub Pub}'. - * - * - * @return the meta object for the attribute 'Pub'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair#getPub() - * @see #getKeyPair() - * @generated - */ - EAttribute getKeyPair_Pub(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.KeyPair#getScr Scr}'. - * - * - * @return the meta object for the attribute 'Scr'. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair#getScr() - * @see #getKeyPair() - * @generated - */ - EAttribute getKeyPair_Scr(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.keys.model.api.ProductRef Product Ref}'. - * - * - * @return the meta object for class 'Product Ref'. - * @see org.eclipse.passage.lic.keys.model.api.ProductRef - * @generated - */ - EClass getProductRef(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.ProductRef#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.keys.model.api.ProductRef#getIdentifier() - * @see #getProductRef() - * @generated - */ - EAttribute getProductRef_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.keys.model.api.ProductRef#getVersion Version}'. - * - * - * @return the meta object for the attribute 'Version'. - * @see org.eclipse.passage.lic.keys.model.api.ProductRef#getVersion() - * @see #getProductRef() - * @generated - */ - EAttribute getProductRef_Version(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - KeysFactory getKeysFactory(); - -} // KeysPackage diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysAdapterFactory.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysAdapterFactory.java deleted file mode 100644 index 8277b5c6f..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysAdapterFactory.java +++ /dev/null @@ -1,147 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage - * @generated - */ -public class KeysAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static KeysPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public KeysAdapterFactory() { - if (modelPackage == null) { - modelPackage = KeysPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected KeysSwitch modelSwitch = new KeysSwitch() { - @Override - public Adapter caseKeyPair(KeyPair object) { - return createKeyPairAdapter(); - } - - @Override - public Adapter caseProductRef(ProductRef object) { - return createProductRefAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.keys.model.api.KeyPair Key Pair}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.keys.model.api.KeyPair - * @generated - */ - public Adapter createKeyPairAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.keys.model.api.ProductRef Product Ref}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.keys.model.api.ProductRef - * @generated - */ - public Adapter createProductRefAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // KeysAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysSwitch.java b/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysSwitch.java deleted file mode 100644 index 00a313d5f..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src-gen/org/eclipse/passage/lic/keys/model/util/KeysSwitch.java +++ /dev/null @@ -1,144 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.keys.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.eclipse.passage.lic.keys.model.api.KeyPair; -import org.eclipse.passage.lic.keys.model.api.ProductRef; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.passage.lic.keys.model.meta.KeysPackage - * @generated - */ -public class KeysSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static KeysPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public KeysSwitch() { - if (modelPackage == null) { - modelPackage = KeysPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case KeysPackage.KEY_PAIR: { - KeyPair keyPair = (KeyPair) theEObject; - T result = caseKeyPair(keyPair); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case KeysPackage.PRODUCT_REF: { - ProductRef productRef = (ProductRef) theEObject; - T result = caseProductRef(productRef); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Key Pair'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Key Pair'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseKeyPair(KeyPair object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Product Ref'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product Ref'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProductRef(ProductRef object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} // KeysSwitch diff --git a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/migration/KeysResourceHandler.java b/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/migration/KeysResourceHandler.java deleted file mode 100644 index cf2593a76..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/migration/KeysResourceHandler.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.keys.model.migration; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.passage.lic.emf.migration.MigrationRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleMigrationRoutes; -import org.eclipse.passage.lic.emf.xmi.MigratingResourceHandler; -import org.eclipse.passage.lic.keys.model.meta.KeysPackage; - -public final class KeysResourceHandler extends MigratingResourceHandler { - - @Override - protected void complete(XMLResource resource) { - // do nothing - } - - @Override - protected void register() { - migrate200(); - } - - @Override - protected MigrationRoutes attributes() { - return new SimpleMigrationRoutes(); - } - - private void migrate200() { - String uri = "http://www.eclipse.org/passage/lic/keys/2.0.0"; //$NON-NLS-1$ - KeysPackage delegate = KeysPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceFactoryImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceFactoryImpl.java deleted file mode 100644 index 19e200706..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceFactoryImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.keys.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.passage.lic.emf.resource.BlindResourceFactory; - -@SuppressWarnings("restriction") -public final class KeysResourceFactoryImpl extends ResourceFactoryImpl implements BlindResourceFactory { - - @Override - public Resource createResource(URI uri) { - return new KeysResourceImpl(uri); - } - - @Override - public Resource createResource() { - return new KeysResourceImpl(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceImpl.java b/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceImpl.java deleted file mode 100644 index b5487a16d..000000000 --- a/bundles/org.eclipse.passage.lic.keys.model/src/org/eclipse/passage/lic/internal/keys/model/util/KeysResourceImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.keys.model.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; -import org.eclipse.passage.lic.internal.keys.model.migration.KeysResourceHandler; - -public class KeysResourceImpl extends XMIResourceImpl { - - public KeysResourceImpl(URI uri) { - super(uri); - } - - public KeysResourceImpl() { - super(); - } - - @Override - protected void init() { - super.init(); - Map options = getDefaultLoadOptions(); - options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); - options.put(OPTION_RESOURCE_HANDLER, new KeysResourceHandler()); - } - -} diff --git a/bundles/org.eclipse.passage.lic.keys/.project b/bundles/org.eclipse.passage.lic.keys/.project deleted file mode 100644 index 80c2c7952..000000000 --- a/bundles/org.eclipse.passage.lic.keys/.project +++ /dev/null @@ -1,35 +0,0 @@ - - - org.eclipse.passage.lic.keys - - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.keys/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.keys/META-INF/MANIFEST.MF deleted file mode 100644 index c72440217..000000000 --- a/bundles/org.eclipse.passage.lic.keys/META-INF/MANIFEST.MF +++ /dev/null @@ -1,10 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.keys -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.keys -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.passage.lic.api;bundle-version="0.0.0";visibility:=reexport diff --git a/bundles/org.eclipse.passage.lic.keys/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.keys/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index dc938e439..000000000 --- a/bundles/org.eclipse.passage.lic.keys/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Keys -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.keys/about.html b/bundles/org.eclipse.passage.lic.keys/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.keys/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.keys/about.ini b/bundles/org.eclipse.passage.lic.keys/about.ini deleted file mode 100644 index f55638433..000000000 --- a/bundles/org.eclipse.passage.lic.keys/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.keys/about.mappings b/bundles/org.eclipse.passage.lic.keys/about.mappings deleted file mode 100644 index b8aef0258..000000000 --- a/bundles/org.eclipse.passage.lic.keys/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.keys/about.properties b/bundles/org.eclipse.passage.lic.keys/about.properties deleted file mode 100644 index 4a44afca5..000000000 --- a/bundles/org.eclipse.passage.lic.keys/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Eclipse Passage Licensing Integration Components: EMF Model API for Keys data\n\ -\n\ -Version: {featureVersion}\n\ -\n\ -(c) Copyright (c) 2018, 2024 ArSysOp. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.keys/build.properties b/bundles/org.eclipse.passage.lic.keys/build.properties deleted file mode 100644 index 497031022..000000000 --- a/bundles/org.eclipse.passage.lic.keys/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.keys/passage32.png b/bundles/org.eclipse.passage.lic.keys/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.keys/passage32.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.products.ecore/.classpath b/bundles/org.eclipse.passage.lic.products.ecore/.classpath deleted file mode 100644 index 1a821310b..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.ecore/.project b/bundles/org.eclipse.passage.lic.products.ecore/.project deleted file mode 100644 index b162d2f18..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.products.ecore - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.products.ecore/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.products.ecore/META-INF/MANIFEST.MF deleted file mode 100644 index c4e63d536..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.products.ecore -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.products.ecore -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.products.ecore/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.products.ecore/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index e6daeebcd..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Products Ecore -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.products.ecore/about.html b/bundles/org.eclipse.passage.lic.products.ecore/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.products.ecore/build.properties b/bundles/org.eclipse.passage.lic.products.ecore/build.properties deleted file mode 100644 index 9efe7f29f..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -# ArSysOp - further support -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - OSGI-INF/,\ - model/,\ - about.html,\ - . -src.includes = model/ diff --git a/bundles/org.eclipse.passage.lic.products.ecore/images/products.svg b/bundles/org.eclipse.passage.lic.products.ecore/images/products.svg deleted file mode 100644 index 64f6798da..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/images/products.svg +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ProductLineDescriptor - - - - - - - ProductDescriptor - - - - - - - ProductVersionDescriptor - - - - - - - ProductVersionFeatureDescriptor - - - - - - - ProductLine - - - - identifier : EString - - name : EString - - description : EString - - - - - - - Product - - identifier : EString - - name : EString - - description : EString - - - - - - - ProductVersion - - version : EString - - name : EString - - installationToken : EString - - secureToken : EString - - news : EString - - - - - - - ProductVersionFeature - - featureIdentifier : EString - - featureVersion : EString - - restrictionLevel : EString - - - - - - - - - - - - - - - - - - - - - - - - - - - [1..1] productLine - [0..*] products - - - - - - - - [1..1] productVersion - [0..*] productVersionFeatures - - - - - - - - [1..1] product - [0..*] productVersions - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.ecore/model/products.ecore b/bundles/org.eclipse.passage.lic.products.ecore/model/products.ecore deleted file mode 100644 index f31db5e37..000000000 --- a/bundles/org.eclipse.passage.lic.products.ecore/model/products.ecore +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.ecore/src/.gitkeep b/bundles/org.eclipse.passage.lic.products.ecore/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.products.edit/.classpath b/bundles/org.eclipse.passage.lic.products.edit/.classpath deleted file mode 100644 index abaf32b3e..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.edit/.project b/bundles/org.eclipse.passage.lic.products.edit/.project deleted file mode 100644 index 7a20c9542..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.products.edit - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.products.edit/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.products.edit/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.products.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.products.edit/META-INF/MANIFEST.MF deleted file mode 100644 index 3f8ced58b..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.products.edit -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.products.edit;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";resolution:=optional;x-installation:=greedy, - org.eclipse.passage.lic.products.model;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport -Import-Package: org.osgi.framework -Export-Package: org.eclipse.passage.lic.products.edit, - org.eclipse.passage.lic.products.edit.providers -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.passage.lic.products.edit.ProductsEditPlugin$Implementation$Activator -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.products.edit/about.html b/bundles/org.eclipse.passage.lic.products.edit/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.products.edit/build.properties b/bundles/org.eclipse.passage.lic.products.edit/build.properties deleted file mode 100644 index 9c6876f96..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/ -output.. = bin/ -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.products.edit/icons/full/obj16/product.png b/bundles/org.eclipse.passage.lic.products.edit/icons/full/obj16/product.png deleted file mode 100644 index a8d5a5efe..000000000 Binary files a/bundles/org.eclipse.passage.lic.products.edit/icons/full/obj16/product.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.products.edit/plugin.properties b/bundles/org.eclipse.passage.lic.products.edit/plugin.properties deleted file mode 100644 index 0408a5b11..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/plugin.properties +++ /dev/null @@ -1,61 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Products Edit Support -providerName=Eclipse Passage - -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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_ProductLine_type = Product Line -_UI_Product_type = Product -_UI_ProductVersion_type = Product Version -_UI_ProductVersionFeature_type = Product Version Feature -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_ProductLine_identifier_feature = Identifier -_UI_ProductLine_name_feature = Name -_UI_ProductLine_description_feature = Description -_UI_ProductLine_products_feature = Products -_UI_Product_identifier_feature = Identifier -_UI_Product_name_feature = Name -_UI_Product_description_feature = Description -_UI_Product_productLine_feature = Product Line -_UI_Product_productVersions_feature = Product Versions -_UI_ProductVersion_version_feature = Version -_UI_ProductVersion_installationToken_feature = Installation Token -_UI_ProductVersion_secureToken_feature = Secure Token -_UI_ProductVersion_news_feature = News -_UI_ProductVersion_product_feature = Product -_UI_ProductVersion_productVersionFeatures_feature = Product Version Features -_UI_ProductVersionFeature_featureIdentifier_feature = Feature Identifier -_UI_ProductVersionFeature_featureVersion_feature = Feature Version -_UI_ProductVersionFeature_restrictionLevel_feature = Restriction Level -_UI_ProductVersionFeature_productVersion_feature = Product Version -_UI_Unknown_feature = Unspecified - _UI_Product_text_pattern = {1} ({0}) -_UI_ProductLine_text_pattern = {1} ({0}) -_UI_ProductVersion_text_pattern = {0} {1} -_UI_ProductVersion_name_feature = Name diff --git a/bundles/org.eclipse.passage.lic.products.edit/plugin.xml b/bundles/org.eclipse.passage.lic.products.edit/plugin.xml deleted file mode 100644 index cc85cd6fb..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/ProductsEditPlugin.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/ProductsEditPlugin.java deleted file mode 100644 index 2c80cacaf..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/ProductsEditPlugin.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.osgi.framework.BundleActivator; - -/** - * This is the central singleton for the Products edit plugin. - * - * - * - * @generated - */ -public final class ProductsEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * - * @generated - */ - public static final ProductsEditPlugin INSTANCE = new ProductsEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * - * @generated - */ - public ProductsEditPlugin() { - super(new ResourceLocator[] {}); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - - /** - * The actual implementation of the purely OSGi-compatible Bundle Activator. - * - * - * - * @generated - */ - public static final class Activator extends EMFPlugin.OSGiDelegatingBundleActivator { - @Override - protected BundleActivator createBundle() { - return new Implementation(); - } - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductItemProvider.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductItemProvider.java deleted file mode 100644 index 6641401ff..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductItemProvider.java +++ /dev/null @@ -1,263 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.products.edit.ProductsEditPlugin; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.meta.ProductsFactory; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.products.model.api.Product} object. - * - * - * - * @generated - */ -public class ProductItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public ProductItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Product_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Product_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Product_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProduct_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Product_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Product_name_feature", "_UI_Product_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - ProductsPackage.eINSTANCE.getProduct_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Product_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Product_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Product_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProduct_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ProductsPackage.eINSTANCE.getProduct_ProductVersions()); - } - return childrenFeatures; - } - - /** - * - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Product.gif. - * - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/product.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - Product product = (Product) object; - String identifier = product.getIdentifier(); - String name = product.getName(); - if (identifier == null || identifier.length() == 0) { - return getString("_UI_Product_type"); //$NON-NLS-1$ - } - if (name == null || name.length() == 0) { - return identifier; - } - return getString("_UI_Product_text_pattern", new Object[] { identifier, name }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Product.class)) { - case ProductsPackage.PRODUCT__IDENTIFIER: - case ProductsPackage.PRODUCT__NAME: - case ProductsPackage.PRODUCT__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(ProductsPackage.eINSTANCE.getProduct_ProductVersions(), - ProductsFactory.eINSTANCE.createProductVersion())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ProductsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductLineItemProvider.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductLineItemProvider.java deleted file mode 100644 index 0219923fc..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductLineItemProvider.java +++ /dev/null @@ -1,263 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.products.edit.ProductsEditPlugin; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.meta.ProductsFactory; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductLine} object. - * - * - * - * @generated - */ -public class ProductLineItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public ProductLineItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductLine_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductLine_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductLine_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductLine_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductLine_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductLine_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductLine_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductLine_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductLine_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductLine_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductLine_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductLine_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ProductsPackage.eINSTANCE.getProductLine_Products()); - } - return childrenFeatures; - } - - /** - * - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Product.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/product.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - ProductLine productLine = (ProductLine) object; - String identifier = productLine.getIdentifier(); - String name = productLine.getName(); - if (identifier == null || identifier.length() == 0) { - return getString("_UI_ProductLine_type"); //$NON-NLS-1$ - } - if (name == null || name.length() == 0) { - return identifier; - } - return getString("_UI_ProductLine_text_pattern", new Object[] { identifier, name }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ProductLine.class)) { - case ProductsPackage.PRODUCT_LINE__IDENTIFIER: - case ProductsPackage.PRODUCT_LINE__NAME: - case ProductsPackage.PRODUCT_LINE__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(ProductsPackage.eINSTANCE.getProductLine_Products(), - ProductsFactory.eINSTANCE.createProduct())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ProductsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionFeatureItemProvider.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionFeatureItemProvider.java deleted file mode 100644 index c4cf7ea57..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionFeatureItemProvider.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.products.edit.ProductsEditPlugin; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature} object. - * - * - * - * @generated - */ -public class ProductVersionFeatureItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public ProductVersionFeatureItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addFeatureIdentifierPropertyDescriptor(object); - addFeatureVersionPropertyDescriptor(object); - addRestrictionLevelPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Feature Identifier feature. - * - * - * - * @generated - */ - protected void addFeatureIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors.add(createItemPropertyDescriptor( - ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_ProductVersionFeature_featureIdentifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersionFeature_featureIdentifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersionFeature_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersionFeature_FeatureIdentifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Feature Version feature. - * - * - * - * @generated - */ - protected void addFeatureVersionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersionFeature_featureVersion_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$ - "_UI_ProductVersionFeature_featureVersion_feature", "_UI_ProductVersionFeature_type"), //$NON-NLS-1$ //$NON-NLS-2$ - ProductsPackage.eINSTANCE.getProductVersionFeature_FeatureVersion(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Restriction Level feature. - * - * - * - * @generated - */ - protected void addRestrictionLevelPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersionFeature_restrictionLevel_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$ - "_UI_ProductVersionFeature_restrictionLevel_feature", "_UI_ProductVersionFeature_type"), //$NON-NLS-1$ //$NON-NLS-2$ - ProductsPackage.eINSTANCE.getProductVersionFeature_RestrictionLevel(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns Product.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/product.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - ProductVersionFeature productVersionFeature = (ProductVersionFeature) object; - String identifier = productVersionFeature.getFeatureIdentifier(); - if (identifier == null || identifier.length() == 0) { - return getString("_UI_ProductVersionFeature_type"); //$NON-NLS-1$ - } - return identifier; - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ProductVersionFeature.class)) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER: - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION: - case ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ProductsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionItemProvider.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionItemProvider.java deleted file mode 100644 index 673c65def..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductVersionItemProvider.java +++ /dev/null @@ -1,304 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.products.edit.ProductsEditPlugin; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.meta.ProductsFactory; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductVersion} object. - * - * - * - * @generated - */ -public class ProductVersionItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * - * @generated - */ - public ProductVersionItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addVersionPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addInstallationTokenPropertyDescriptor(object); - addSecureTokenPropertyDescriptor(object); - addNewsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Version feature. - * - * - * - * @generated - */ - protected void addVersionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersion_version_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersion_version_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersion_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersion_Version(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersion_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersion_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersion_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersion_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Installation Token feature. - * - * - * - * @generated - */ - protected void addInstallationTokenPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersion_installationToken_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersion_installationToken_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersion_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersion_InstallationToken(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Secure Token feature. - * - * - * - * @generated - */ - protected void addSecureTokenPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersion_secureToken_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersion_secureToken_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersion_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersion_SecureToken(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the News feature. - * - * - * - * @generated - */ - protected void addNewsPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_ProductVersion_news_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ProductVersion_news_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_ProductVersion_type"), //$NON-NLS-1$ - ProductsPackage.eINSTANCE.getProductVersion_News(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(ProductsPackage.eINSTANCE.getProductVersion_ProductVersionFeatures()); - } - return childrenFeatures; - } - - /** - * - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns Product.gif. - * - * - * - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/product.png")); //$NON-NLS-1$ - } - - /** - * - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * - * - * - * @generated NOT - */ - @Override - public String getText(Object object) { - // FIXME: provide "name" feature for ProductVersion - ProductVersion productVersion = (ProductVersion) object; - Product product = productVersion.getProduct(); - if (product == null) { - return getString("_UI_ProductVersion_type"); //$NON-NLS-1$ - } - String productName = product.getName(); - String version = productVersion.getVersion(); - if (version == null || version.length() == 0) { - return productName; - } - return getString("_UI_ProductVersion_text_pattern", new Object[] { productName, version }); //$NON-NLS-1$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(ProductVersion.class)) { - case ProductsPackage.PRODUCT_VERSION__VERSION: - case ProductsPackage.PRODUCT_VERSION__NAME: - case ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN: - case ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN: - case ProductsPackage.PRODUCT_VERSION__NEWS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors - .add(createChildParameter(ProductsPackage.eINSTANCE.getProductVersion_ProductVersionFeatures(), - ProductsFactory.eINSTANCE.createProductVersionFeature())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return ProductsEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductsItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductsItemProviderAdapterFactory.java deleted file mode 100644 index c419458c9..000000000 --- a/bundles/org.eclipse.passage.lic.products.edit/src-gen/org/eclipse/passage/lic/products/edit/providers/ProductsItemProviderAdapterFactory.java +++ /dev/null @@ -1,312 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.edit.providers; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.passage.lic.products.model.util.ProductsAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * - * @generated - */ -public class ProductsItemProviderAdapterFactory extends ProductsAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * - * @generated - */ - public ProductsItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.products.model.api.ProductLine} instances. - * - * - * - * @generated - */ - protected ProductLineItemProvider productLineItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductLine}. - * - * - * - * @generated - */ - @Override - public Adapter createProductLineAdapter() { - if (productLineItemProvider == null) { - productLineItemProvider = new ProductLineItemProvider(this); - } - - return productLineItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.products.model.api.Product} instances. - * - * - * - * @generated - */ - protected ProductItemProvider productItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.products.model.api.Product}. - * - * - * - * @generated - */ - @Override - public Adapter createProductAdapter() { - if (productItemProvider == null) { - productItemProvider = new ProductItemProvider(this); - } - - return productItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.products.model.api.ProductVersion} instances. - * - * - * - * @generated - */ - protected ProductVersionItemProvider productVersionItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductVersion}. - * - * - * - * @generated - */ - @Override - public Adapter createProductVersionAdapter() { - if (productVersionItemProvider == null) { - productVersionItemProvider = new ProductVersionItemProvider(this); - } - - return productVersionItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature} instances. - * - * - * - * @generated - */ - protected ProductVersionFeatureItemProvider productVersionFeatureItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature}. - * - * - * - * @generated - */ - @Override - public Adapter createProductVersionFeatureAdapter() { - if (productVersionFeatureItemProvider == null) { - productVersionFeatureItemProvider = new ProductVersionFeatureItemProvider(this); - } - - return productVersionFeatureItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * - * @generated - */ - @Override - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * - * @generated - */ - @Override - public void dispose() { - if (productLineItemProvider != null) - productLineItemProvider.dispose(); - if (productItemProvider != null) - productItemProvider.dispose(); - if (productVersionItemProvider != null) - productVersionItemProvider.dispose(); - if (productVersionFeatureItemProvider != null) - productVersionFeatureItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.model/.classpath b/bundles/org.eclipse.passage.lic.products.model/.classpath deleted file mode 100644 index 8ec7c5862..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.model/.project b/bundles/org.eclipse.passage.lic.products.model/.project deleted file mode 100644 index 0a5900352..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.products.model - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.products.model/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.products.model/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.products.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.products.model/META-INF/MANIFEST.MF deleted file mode 100644 index 69164a7dd..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.products.model -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.products.model;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.emf.ecore;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.ecore.xmi;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.emf;bundle-version="0.0.0", - org.eclipse.passage.lic.products;bundle-version="0.0.0";visibility:=reexport -Export-Package: org.eclipse.passage.lic.internal.products.model;x-internal:=true, - org.eclipse.passage.lic.internal.products.model.util;x-internal:=true, - org.eclipse.passage.lic.products.model.api, - org.eclipse.passage.lic.products.model.impl;x-internal:=true, - org.eclipse.passage.lic.products.model.meta, - org.eclipse.passage.lic.products.model.util -Bundle-ClassPath: . -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.products.model/about.html b/bundles/org.eclipse.passage.lic.products.model/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.products.model/build.properties b/bundles/org.eclipse.passage.lic.products.model/build.properties deleted file mode 100644 index 4c5385c2e..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/,\ - src/ -output.. = target/classes -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.products.model/model/products.genmodel b/bundles/org.eclipse.passage.lic.products.model/model/products.genmodel deleted file mode 100644 index 9fa17ec99..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/model/products.genmodel +++ /dev/null @@ -1,50 +0,0 @@ - - - platform:/resource/org.eclipse.passage.lic.products.ecore/model/products.ecore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.model/plugin.properties b/bundles/org.eclipse.passage.lic.products.model/plugin.properties deleted file mode 100644 index 59eda0c7f..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Products Model -providerName=Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/bundles/org.eclipse.passage.lic.products.model/plugin.xml b/bundles/org.eclipse.passage.lic.products.model/plugin.xml deleted file mode 100644 index 6775f3437..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/plugin.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/Product.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/Product.java deleted file mode 100644 index 52258e6c0..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/Product.java +++ /dev/null @@ -1,168 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * - * A representation of the model object 'Product'. - * - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.api.Product#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.Product#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.Product#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.Product#getProductLine Product Line}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.Product#getProductVersions Product Versions}
  • - *
- * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct() - * @model - * @generated - */ -public interface Product extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - *

- * If the meaning of the 'Identifier' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.Product#getIdentifier Identifier}' attribute. - * - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - *

- * If the meaning of the 'Name' attribute isn't clear, there really - * should be more of a description here... - *

- * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.Product#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - *

- * If the meaning of the 'Description' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.Product#getDescription Description}' attribute. - * - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Product Line' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getProducts Products}'. - * - *

- * If the meaning of the 'Product Line' container reference isn't - * clear, there really should be more of a description here... - *

- * - * @return the value of the 'Product Line' container reference. - * @see #setProductLine(ProductLine) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct_ProductLine() - * @see org.eclipse.passage.lic.products.model.api.ProductLine#getProducts - * @model opposite="products" required="true" transient="false" - * @generated - */ - ProductLine getProductLine(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.Product#getProductLine Product Line}' container reference. - * - * - * - * @param value the new value of the 'Product Line' container reference. - * @see #getProductLine() - * @generated - */ - void setProductLine(ProductLine value); - - /** - * Returns the value of the 'Product Versions' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.products.model.api.ProductVersion}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct Product}'. - * - *

- * If the meaning of the 'Product Versions' containment reference list - * isn't clear, there really should be more of a description here... - *

- * - * @return the value of the 'Product Versions' containment reference list. - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProduct_ProductVersions() - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct - * @model opposite="product" containment="true" - * @generated - */ - EList getProductVersions(); - -} // Product diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductLine.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductLine.java deleted file mode 100644 index b65e34894..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductLine.java +++ /dev/null @@ -1,139 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * - * A representation of the model object 'Product Line'. - * - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductLine#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductLine#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductLine#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductLine#getProducts Products}
  • - *
- * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductLine() - * @model - * @generated - */ -public interface ProductLine extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - *

- * If the meaning of the 'Identifier' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductLine_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getIdentifier Identifier}' attribute. - * - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - *

- * If the meaning of the 'Name' attribute isn't clear, there really - * should be more of a description here... - *

- * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductLine_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getName Name}' attribute. - * - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - *

- * If the meaning of the 'Description' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductLine_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getDescription Description}' attribute. - * - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Products' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.products.model.api.Product}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.Product#getProductLine Product Line}'. - * - *

- * If the meaning of the 'Products' containment reference list isn't - * clear, there really should be more of a description here... - *

- * - * @return the value of the 'Products' containment reference list. - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductLine_Products() - * @see org.eclipse.passage.lic.products.model.api.Product#getProductLine - * @model opposite="productLine" containment="true" - * @generated - */ - EList getProducts(); - -} // ProductLine diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersion.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersion.java deleted file mode 100644 index 26f0d0ffe..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersion.java +++ /dev/null @@ -1,221 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * - * A representation of the model object 'Product Version'. - * - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getInstallationToken Installation Token}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getSecureToken Secure Token}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getNews News}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProductVersionFeatures Product Version Features}
  • - *
- * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion() - * @model - * @generated - */ -public interface ProductVersion extends EObject { - /** - * Returns the value of the 'Version' attribute. - * - *

- * If the meaning of the 'Version' attribute isn't clear, there really - * should be more of a description here... - *

- * - * @return the value of the 'Version' attribute. - * @see #setVersion(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_Version() - * @model required="true" - * @generated - */ - String getVersion(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getVersion Version}' attribute. - * - * - * - * @param value the new value of the 'Version' attribute. - * @see #getVersion() - * @generated - */ - void setVersion(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Installation Token' attribute. - * - *

- * If the meaning of the 'Installation Token' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Installation Token' attribute. - * @see #setInstallationToken(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_InstallationToken() - * @model - * @generated - */ - String getInstallationToken(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getInstallationToken Installation Token}' attribute. - * - * - * - * @param value the new value of the 'Installation Token' attribute. - * @see #getInstallationToken() - * @generated - */ - void setInstallationToken(String value); - - /** - * Returns the value of the 'Secure Token' attribute. - * - *

- * If the meaning of the 'Secure Token' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Secure Token' attribute. - * @see #setSecureToken(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_SecureToken() - * @model - * @generated - */ - String getSecureToken(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getSecureToken Secure Token}' attribute. - * - * - * - * @param value the new value of the 'Secure Token' attribute. - * @see #getSecureToken() - * @generated - */ - void setSecureToken(String value); - - /** - * Returns the value of the 'News' attribute. - * - *

- * If the meaning of the 'News' attribute isn't clear, there really - * should be more of a description here... - *

- * - * @return the value of the 'News' attribute. - * @see #setNews(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_News() - * @model - * @generated - */ - String getNews(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getNews News}' attribute. - * - * - * - * @param value the new value of the 'News' attribute. - * @see #getNews() - * @generated - */ - void setNews(String value); - - /** - * Returns the value of the 'Product' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.Product#getProductVersions Product Versions}'. - * - *

- * If the meaning of the 'Product' container reference isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Product' container reference. - * @see #setProduct(Product) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_Product() - * @see org.eclipse.passage.lic.products.model.api.Product#getProductVersions - * @model opposite="productVersions" required="true" transient="false" - * @generated - */ - Product getProduct(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct Product}' container reference. - * - * - * - * @param value the new value of the 'Product' container reference. - * @see #getProduct() - * @generated - */ - void setProduct(Product value); - - /** - * Returns the value of the 'Product Version Features' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion Product Version}'. - * - *

- * If the meaning of the 'Product Version Features' containment - * reference list isn't clear, there really should be more of a description - * here... - *

- * - * @return the value of the 'Product Version Features' containment reference list. - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersion_ProductVersionFeatures() - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion - * @model opposite="productVersion" containment="true" - * @generated - */ - EList getProductVersionFeatures(); - -} // ProductVersion diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersionFeature.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersionFeature.java deleted file mode 100644 index 40d82a456..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/api/ProductVersionFeature.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * - * A representation of the model object 'Product Version - * Feature'. - * - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureIdentifier Feature Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureVersion Feature Version}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getRestrictionLevel Restriction Level}
  • - *
  • {@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion Product Version}
  • - *
- * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersionFeature() - * @model - * @generated - */ -public interface ProductVersionFeature extends EObject { - /** - * Returns the value of the 'Feature Identifier' attribute. - * - *

- * If the meaning of the 'Feature Identifier' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Feature Identifier' attribute. - * @see #setFeatureIdentifier(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersionFeature_FeatureIdentifier() - * @model required="true" - * @generated - */ - String getFeatureIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureIdentifier Feature Identifier}' attribute. - * - * - * - * @param value the new value of the 'Feature Identifier' attribute. - * @see #getFeatureIdentifier() - * @generated - */ - void setFeatureIdentifier(String value); - - /** - * Returns the value of the 'Feature Version' attribute. - * - *

- * If the meaning of the 'Feature Version' attribute isn't clear, there - * really should be more of a description here... - *

- * - * @return the value of the 'Feature Version' attribute. - * @see #setFeatureVersion(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersionFeature_FeatureVersion() - * @model required="true" - * @generated - */ - String getFeatureVersion(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureVersion Feature Version}' attribute. - * - * - * - * @param value the new value of the 'Feature Version' attribute. - * @see #getFeatureVersion() - * @generated - */ - void setFeatureVersion(String value); - - /** - * Returns the value of the 'Restriction Level' attribute. - * - *

- * If the meaning of the 'Restriction Level' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Restriction Level' attribute. - * @see #setRestrictionLevel(String) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersionFeature_RestrictionLevel() - * @model - * @generated - */ - String getRestrictionLevel(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getRestrictionLevel Restriction Level}' attribute. - * - * - * - * @param value the new value of the 'Restriction Level' attribute. - * @see #getRestrictionLevel() - * @generated - */ - void setRestrictionLevel(String value); - - /** - * Returns the value of the 'Product Version' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProductVersionFeatures Product Version Features}'. - * - *

- * If the meaning of the 'Product Version' container reference isn't - * clear, there really should be more of a description here... - *

- * - * @return the value of the 'Product Version' container reference. - * @see #setProductVersion(ProductVersion) - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#getProductVersionFeature_ProductVersion() - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getProductVersionFeatures - * @model opposite="productVersionFeatures" required="true" transient="false" - * @generated - */ - ProductVersion getProductVersion(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion Product Version}' container reference. - * - * - * - * @param value the new value of the 'Product Version' container reference. - * @see #getProductVersion() - * @generated - */ - void setProductVersion(ProductVersion value); - -} // ProductVersionFeature diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductImpl.java deleted file mode 100644 index 75d7147d2..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductImpl.java +++ /dev/null @@ -1,489 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model object 'Product'. - * - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductImpl#getProductLine Product Line}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductImpl#getProductVersions Product Versions}
  • - *
- * - * @generated - */ -public class ProductImpl extends MinimalEObjectImpl.Container implements Product { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getProductVersions() Product Versions}' containment reference list. - * - * - * - * @see #getProductVersions() - * @generated - * @ordered - */ - protected EList productVersions; - - /** - * - * - * - * @generated - */ - protected ProductImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ProductsPackage.eINSTANCE.getProduct(); - } - - /** - * - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT__NAME, oldName, name)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT__DESCRIPTION, oldDescription, - description)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public ProductLine getProductLine() { - if (eContainerFeatureID() != ProductsPackage.PRODUCT__PRODUCT_LINE) { - return null; - } - return (ProductLine) eInternalContainer(); - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetProductLine(ProductLine newProductLine, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newProductLine, ProductsPackage.PRODUCT__PRODUCT_LINE, msgs); - return msgs; - } - - /** - * - * - * - * @generated - */ - @Override - public void setProductLine(ProductLine newProductLine) { - if (newProductLine != eInternalContainer() - || (eContainerFeatureID() != ProductsPackage.PRODUCT__PRODUCT_LINE && newProductLine != null)) { - if (EcoreUtil.isAncestor(this, newProductLine)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newProductLine != null) - msgs = ((InternalEObject) newProductLine).eInverseAdd(this, ProductsPackage.PRODUCT_LINE__PRODUCTS, - ProductLine.class, msgs); - msgs = basicSetProductLine(newProductLine, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT__PRODUCT_LINE, newProductLine, - newProductLine)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public EList getProductVersions() { - if (productVersions == null) { - productVersions = new EObjectContainmentWithInverseEList(ProductVersion.class, this, - ProductsPackage.PRODUCT__PRODUCT_VERSIONS, ProductsPackage.PRODUCT_VERSION__PRODUCT); - } - return productVersions; - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT__PRODUCT_LINE: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetProductLine((ProductLine) otherEnd, msgs); - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - return ((InternalEList) (InternalEList) getProductVersions()).basicAdd(otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT__PRODUCT_LINE: - return basicSetProductLine(null, msgs); - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - return ((InternalEList) getProductVersions()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case ProductsPackage.PRODUCT__PRODUCT_LINE: - return eInternalContainer().eInverseRemove(this, ProductsPackage.PRODUCT_LINE__PRODUCTS, ProductLine.class, - msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ProductsPackage.PRODUCT__IDENTIFIER: - return getIdentifier(); - case ProductsPackage.PRODUCT__NAME: - return getName(); - case ProductsPackage.PRODUCT__DESCRIPTION: - return getDescription(); - case ProductsPackage.PRODUCT__PRODUCT_LINE: - return getProductLine(); - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - return getProductVersions(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ProductsPackage.PRODUCT__IDENTIFIER: - setIdentifier((String) newValue); - return; - case ProductsPackage.PRODUCT__NAME: - setName((String) newValue); - return; - case ProductsPackage.PRODUCT__DESCRIPTION: - setDescription((String) newValue); - return; - case ProductsPackage.PRODUCT__PRODUCT_LINE: - setProductLine((ProductLine) newValue); - return; - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - getProductVersions().clear(); - getProductVersions().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case ProductsPackage.PRODUCT__NAME: - setName(NAME_EDEFAULT); - return; - case ProductsPackage.PRODUCT__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ProductsPackage.PRODUCT__PRODUCT_LINE: - setProductLine((ProductLine) null); - return; - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - getProductVersions().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case ProductsPackage.PRODUCT__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case ProductsPackage.PRODUCT__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case ProductsPackage.PRODUCT__PRODUCT_LINE: - return getProductLine() != null; - case ProductsPackage.PRODUCT__PRODUCT_VERSIONS: - return productVersions != null && !productVersions.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // ProductImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductLineImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductLineImpl.java deleted file mode 100644 index 92b91d0c7..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductLineImpl.java +++ /dev/null @@ -1,398 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model object 'Product Line'. - * - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductLineImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductLineImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductLineImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductLineImpl#getProducts Products}
  • - *
- * - * @generated - */ -public class ProductLineImpl extends MinimalEObjectImpl.Container implements ProductLine { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getProducts() Products}' containment reference list. - * - * - * - * @see #getProducts() - * @generated - * @ordered - */ - protected EList products; - - /** - * - * - * - * @generated - */ - protected ProductLineImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ProductsPackage.eINSTANCE.getProductLine(); - } - - /** - * - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_LINE__IDENTIFIER, - oldIdentifier, identifier)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_LINE__NAME, oldName, name)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_LINE__DESCRIPTION, - oldDescription, description)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public EList getProducts() { - if (products == null) { - products = new EObjectContainmentWithInverseEList(Product.class, this, - ProductsPackage.PRODUCT_LINE__PRODUCTS, ProductsPackage.PRODUCT__PRODUCT_LINE); - } - return products; - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - return ((InternalEList) (InternalEList) getProducts()).basicAdd(otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - return ((InternalEList) getProducts()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__IDENTIFIER: - return getIdentifier(); - case ProductsPackage.PRODUCT_LINE__NAME: - return getName(); - case ProductsPackage.PRODUCT_LINE__DESCRIPTION: - return getDescription(); - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - return getProducts(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__IDENTIFIER: - setIdentifier((String) newValue); - return; - case ProductsPackage.PRODUCT_LINE__NAME: - setName((String) newValue); - return; - case ProductsPackage.PRODUCT_LINE__DESCRIPTION: - setDescription((String) newValue); - return; - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - getProducts().clear(); - getProducts().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case ProductsPackage.PRODUCT_LINE__NAME: - setName(NAME_EDEFAULT); - return; - case ProductsPackage.PRODUCT_LINE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - getProducts().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_LINE__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case ProductsPackage.PRODUCT_LINE__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case ProductsPackage.PRODUCT_LINE__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case ProductsPackage.PRODUCT_LINE__PRODUCTS: - return products != null && !products.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // ProductLineImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionFeatureImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionFeatureImpl.java deleted file mode 100644 index 4c83a9c26..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionFeatureImpl.java +++ /dev/null @@ -1,445 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -import java.util.Objects; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -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.EcoreUtil; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model object 'Product Version - * Feature'. - * - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl#getFeatureIdentifier Feature Identifier}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl#getFeatureVersion Feature Version}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl#getRestrictionLevel Restriction Level}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl#getProductVersion Product Version}
  • - *
- * - * @generated - */ -public class ProductVersionFeatureImpl extends MinimalEObjectImpl.Container implements ProductVersionFeature { - /** - * The default value of the '{@link #getFeatureIdentifier() Feature Identifier}' attribute. - * - * - * - * @see #getFeatureIdentifier() - * @generated - * @ordered - */ - protected static final String FEATURE_IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFeatureIdentifier() Feature Identifier}' attribute. - * - * - * - * @see #getFeatureIdentifier() - * @generated - * @ordered - */ - private String featureIdentifier = FEATURE_IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getFeatureVersion() Feature Version}' attribute. - * - * - * - * @see #getFeatureVersion() - * @generated - * @ordered - */ - protected static final String FEATURE_VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getFeatureVersion() Feature Version}' attribute. - * - * - * - * @see #getFeatureVersion() - * @generated - * @ordered - */ - private String featureVersion = FEATURE_VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getRestrictionLevel() Restriction Level}' attribute. - * - * - * - * @see #getRestrictionLevel() - * @generated - * @ordered - */ - protected static final String RESTRICTION_LEVEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRestrictionLevel() Restriction Level}' attribute. - * - * - * - * @see #getRestrictionLevel() - * @generated - * @ordered - */ - private String restrictionLevel = RESTRICTION_LEVEL_EDEFAULT; - - /** - * - * - * - * @generated - */ - protected ProductVersionFeatureImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ProductsPackage.eINSTANCE.getProductVersionFeature(); - } - - /** - * - * - * - * @generated - */ - @Override - public String getFeatureIdentifier() { - return featureIdentifier; - } - - /** - * - * - * - * @generated - */ - @Override - public void setFeatureIdentifier(String newFeatureIdentifier) { - String oldFeatureIdentifier = featureIdentifier; - featureIdentifier = newFeatureIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, - ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER, oldFeatureIdentifier, - featureIdentifier)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getFeatureVersion() { - return featureVersion; - } - - /** - * - * - * - * @generated - */ - @Override - public void setFeatureVersion(String newFeatureVersion) { - String oldFeatureVersion = featureVersion; - featureVersion = newFeatureVersion; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, - ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION, oldFeatureVersion, featureVersion)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getRestrictionLevel() { - return restrictionLevel; - } - - /** - * - * - * - * @generated - */ - @Override - public void setRestrictionLevel(String newRestrictionLevel) { - String oldRestrictionLevel = restrictionLevel; - restrictionLevel = newRestrictionLevel; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, - ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL, oldRestrictionLevel, restrictionLevel)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public ProductVersion getProductVersion() { - if (eContainerFeatureID() != ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION) { - return null; - } - return (ProductVersion) eInternalContainer(); - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetProductVersion(ProductVersion newProductVersion, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newProductVersion, - ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION, msgs); - return msgs; - } - - /** - * - * - * - * @generated - */ - @Override - public void setProductVersion(ProductVersion newProductVersion) { - if (newProductVersion != eInternalContainer() - || (eContainerFeatureID() != ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION - && newProductVersion != null)) { - if (EcoreUtil.isAncestor(this, newProductVersion)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newProductVersion != null) - msgs = ((InternalEObject) newProductVersion).eInverseAdd(this, - ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES, ProductVersion.class, msgs); - msgs = basicSetProductVersion(newProductVersion, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, - ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION, newProductVersion, newProductVersion)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetProductVersion((ProductVersion) otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - return basicSetProductVersion(null, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - return eInternalContainer().eInverseRemove(this, ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES, - ProductVersion.class, msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER: - return getFeatureIdentifier(); - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION: - return getFeatureVersion(); - case ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL: - return getRestrictionLevel(); - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - return getProductVersion(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER: - setFeatureIdentifier((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION: - setFeatureVersion((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL: - setRestrictionLevel((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - setProductVersion((ProductVersion) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER: - setFeatureIdentifier(FEATURE_IDENTIFIER_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION: - setFeatureVersion(FEATURE_VERSION_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL: - setRestrictionLevel(RESTRICTION_LEVEL_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - setProductVersion((ProductVersion) null); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER: - return !Objects.equals(FEATURE_IDENTIFIER_EDEFAULT, featureIdentifier); - case ProductsPackage.PRODUCT_VERSION_FEATURE__FEATURE_VERSION: - return !Objects.equals(FEATURE_VERSION_EDEFAULT, featureVersion); - case ProductsPackage.PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL: - return !Objects.equals(RESTRICTION_LEVEL_EDEFAULT, restrictionLevel); - case ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION: - return getProductVersion() != null; - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (featureIdentifier: "); //$NON-NLS-1$ - result.append(featureIdentifier); - result.append(", featureVersion: "); //$NON-NLS-1$ - result.append(featureVersion); - result.append(", restrictionLevel: "); //$NON-NLS-1$ - result.append(restrictionLevel); - result.append(')'); - return result.toString(); - } - -} // ProductVersionFeatureImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionImpl.java deleted file mode 100644 index da37c97a3..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductVersionImpl.java +++ /dev/null @@ -1,612 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model object 'Product Version'. - * - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getVersion Version}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getInstallationToken Installation Token}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getSecureToken Secure Token}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getNews News}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getProduct Product}
  • - *
  • {@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl#getProductVersionFeatures Product Version Features}
  • - *
- * - * @generated - */ -public class ProductVersionImpl extends MinimalEObjectImpl.Container implements ProductVersion { - /** - * The default value of the '{@link #getVersion() Version}' attribute. - * - * - * - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getVersion() Version}' attribute. - * - * - * - * @see #getVersion() - * @generated - * @ordered - */ - private String version = VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getInstallationToken() Installation Token}' attribute. - * - * - * - * @see #getInstallationToken() - * @generated - * @ordered - */ - protected static final String INSTALLATION_TOKEN_EDEFAULT = null; - - /** - * The cached value of the '{@link #getInstallationToken() Installation Token}' attribute. - * - * - * - * @see #getInstallationToken() - * @generated - * @ordered - */ - private String installationToken = INSTALLATION_TOKEN_EDEFAULT; - - /** - * The default value of the '{@link #getSecureToken() Secure Token}' attribute. - * - * - * - * @see #getSecureToken() - * @generated - * @ordered - */ - protected static final String SECURE_TOKEN_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSecureToken() Secure Token}' attribute. - * - * - * - * @see #getSecureToken() - * @generated - * @ordered - */ - private String secureToken = SECURE_TOKEN_EDEFAULT; - - /** - * The default value of the '{@link #getNews() News}' attribute. - * - * - * - * @see #getNews() - * @generated - * @ordered - */ - protected static final String NEWS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getNews() News}' attribute. - * - * - * - * @see #getNews() - * @generated - * @ordered - */ - private String news = NEWS_EDEFAULT; - - /** - * The cached value of the '{@link #getProductVersionFeatures() Product Version Features}' containment reference list. - * - * - * - * @see #getProductVersionFeatures() - * @generated - * @ordered - */ - protected EList productVersionFeatures; - - /** - * - * - * - * @generated - */ - protected ProductVersionImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ProductsPackage.eINSTANCE.getProductVersion(); - } - - /** - * - * - * - * @generated - */ - @Override - public String getVersion() { - return version; - } - - /** - * - * - * - * @generated - */ - @Override - public void setVersion(String newVersion) { - String oldVersion = version; - version = newVersion; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__VERSION, oldVersion, - version)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__NAME, oldName, - name)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getInstallationToken() { - return installationToken; - } - - /** - * - * - * - * @generated - */ - @Override - public void setInstallationToken(String newInstallationToken) { - String oldInstallationToken = installationToken; - installationToken = newInstallationToken; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN, - oldInstallationToken, installationToken)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getSecureToken() { - return secureToken; - } - - /** - * - * - * - * @generated - */ - @Override - public void setSecureToken(String newSecureToken) { - String oldSecureToken = secureToken; - secureToken = newSecureToken; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN, - oldSecureToken, secureToken)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String getNews() { - return news; - } - - /** - * - * - * - * @generated - */ - @Override - public void setNews(String newNews) { - String oldNews = news; - news = newNews; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__NEWS, oldNews, - news)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Product getProduct() { - if (eContainerFeatureID() != ProductsPackage.PRODUCT_VERSION__PRODUCT) { - return null; - } - return (Product) eInternalContainer(); - } - - /** - * - * - * - * @generated - */ - public NotificationChain basicSetProduct(Product newProduct, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newProduct, ProductsPackage.PRODUCT_VERSION__PRODUCT, msgs); - return msgs; - } - - /** - * - * - * - * @generated - */ - @Override - public void setProduct(Product newProduct) { - if (newProduct != eInternalContainer() - || (eContainerFeatureID() != ProductsPackage.PRODUCT_VERSION__PRODUCT && newProduct != null)) { - if (EcoreUtil.isAncestor(this, newProduct)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newProduct != null) - msgs = ((InternalEObject) newProduct).eInverseAdd(this, ProductsPackage.PRODUCT__PRODUCT_VERSIONS, - Product.class, msgs); - msgs = basicSetProduct(newProduct, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, ProductsPackage.PRODUCT_VERSION__PRODUCT, newProduct, - newProduct)); - } - } - - /** - * - * - * - * @generated - */ - @Override - public EList getProductVersionFeatures() { - if (productVersionFeatures == null) { - productVersionFeatures = new EObjectContainmentWithInverseEList( - ProductVersionFeature.class, this, ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES, - ProductsPackage.PRODUCT_VERSION_FEATURE__PRODUCT_VERSION); - } - return productVersionFeatures; - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetProduct((Product) otherEnd, msgs); - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - return ((InternalEList) (InternalEList) getProductVersionFeatures()).basicAdd(otherEnd, - msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - return basicSetProduct(null, msgs); - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - return ((InternalEList) getProductVersionFeatures()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - return eInternalContainer().eInverseRemove(this, ProductsPackage.PRODUCT__PRODUCT_VERSIONS, Product.class, - msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__VERSION: - return getVersion(); - case ProductsPackage.PRODUCT_VERSION__NAME: - return getName(); - case ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN: - return getInstallationToken(); - case ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN: - return getSecureToken(); - case ProductsPackage.PRODUCT_VERSION__NEWS: - return getNews(); - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - return getProduct(); - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - return getProductVersionFeatures(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__VERSION: - setVersion((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__NAME: - setName((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN: - setInstallationToken((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN: - setSecureToken((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__NEWS: - setNews((String) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - setProduct((Product) newValue); - return; - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - getProductVersionFeatures().clear(); - getProductVersionFeatures().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION__NAME: - setName(NAME_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN: - setInstallationToken(INSTALLATION_TOKEN_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN: - setSecureToken(SECURE_TOKEN_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION__NEWS: - setNews(NEWS_EDEFAULT); - return; - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - setProduct((Product) null); - return; - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - getProductVersionFeatures().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ProductsPackage.PRODUCT_VERSION__VERSION: - return !Objects.equals(VERSION_EDEFAULT, version); - case ProductsPackage.PRODUCT_VERSION__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case ProductsPackage.PRODUCT_VERSION__INSTALLATION_TOKEN: - return !Objects.equals(INSTALLATION_TOKEN_EDEFAULT, installationToken); - case ProductsPackage.PRODUCT_VERSION__SECURE_TOKEN: - return !Objects.equals(SECURE_TOKEN_EDEFAULT, secureToken); - case ProductsPackage.PRODUCT_VERSION__NEWS: - return !Objects.equals(NEWS_EDEFAULT, news); - case ProductsPackage.PRODUCT_VERSION__PRODUCT: - return getProduct() != null; - case ProductsPackage.PRODUCT_VERSION__PRODUCT_VERSION_FEATURES: - return productVersionFeatures != null && !productVersionFeatures.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (version: "); //$NON-NLS-1$ - result.append(version); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", installationToken: "); //$NON-NLS-1$ - result.append(installationToken); - result.append(", secureToken: "); //$NON-NLS-1$ - result.append(secureToken); - result.append(", news: "); //$NON-NLS-1$ - result.append(news); - result.append(')'); - return result.toString(); - } - -} // ProductVersionImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsFactoryImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsFactoryImpl.java deleted file mode 100644 index d9bab4971..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsFactoryImpl.java +++ /dev/null @@ -1,160 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -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.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsFactory; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model Factory. - * - * - * @generated - */ -public class ProductsFactoryImpl extends EFactoryImpl implements ProductsFactory { - /** - * Creates the default factory implementation. - * - * - * - * @generated - */ - public static ProductsFactory init() { - try { - ProductsFactory theProductsFactory = (ProductsFactory) EPackage.Registry.INSTANCE - .getEFactory(ProductsPackage.eNS_URI); - if (theProductsFactory != null) { - return theProductsFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new ProductsFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * - * @generated - */ - public ProductsFactoryImpl() { - super(); - } - - /** - * - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case ProductsPackage.PRODUCT_LINE: - return createProductLine(); - case ProductsPackage.PRODUCT: - return createProduct(); - case ProductsPackage.PRODUCT_VERSION: - return createProductVersion(); - case ProductsPackage.PRODUCT_VERSION_FEATURE: - return createProductVersionFeature(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * - * @generated - */ - @Override - public ProductLine createProductLine() { - ProductLineImpl productLine = new ProductLineImpl(); - return productLine; - } - - /** - * - * - * - * @generated - */ - @Override - public Product createProduct() { - ProductImpl product = new ProductImpl(); - return product; - } - - /** - * - * - * - * @generated - */ - @Override - public ProductVersion createProductVersion() { - ProductVersionImpl productVersion = new ProductVersionImpl(); - return productVersion; - } - - /** - * - * - * - * @generated - */ - @Override - public ProductVersionFeature createProductVersionFeature() { - ProductVersionFeatureImpl productVersionFeature = new ProductVersionFeatureImpl(); - return productVersionFeature; - } - - /** - * - * - * - * @generated - */ - @Override - public ProductsPackage getProductsPackage() { - return (ProductsPackage) getEPackage(); - } - - /** - * - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ProductsPackage getPackage() { - return ProductsPackage.eINSTANCE; - } - -} // ProductsFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsPackageImpl.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsPackageImpl.java deleted file mode 100644 index 4fafaa88b..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/impl/ProductsPackageImpl.java +++ /dev/null @@ -1,562 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsFactory; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * An implementation of the model Package. - * - * - * @generated - */ -public class ProductsPackageImpl extends EPackageImpl implements ProductsPackage { - /** - * - * - * - * @generated - */ - private EClass productLineEClass = null; - - /** - * - * - * - * @generated - */ - private EClass productEClass = null; - - /** - * - * - * - * @generated - */ - private EClass productVersionEClass = null; - - /** - * - * - * - * @generated - */ - private EClass productVersionFeatureEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage#eNS_URI - * @see #init() - * @generated - */ - private ProductsPackageImpl() { - super(eNS_URI, ProductsFactory.eINSTANCE); - } - - /** - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ProductsPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ProductsPackage init() { - if (isInited) - return (ProductsPackage) EPackage.Registry.INSTANCE.getEPackage(ProductsPackage.eNS_URI); - - // Obtain or create and register package - Object registeredProductsPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ProductsPackageImpl theProductsPackage = registeredProductsPackage instanceof ProductsPackageImpl - ? (ProductsPackageImpl) registeredProductsPackage - : new ProductsPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theProductsPackage.createPackageContents(); - - // Initialize created meta-data - theProductsPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theProductsPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ProductsPackage.eNS_URI, theProductsPackage); - return theProductsPackage; - } - - /** - * - * - * - * @generated - */ - @Override - public EClass getProductLine() { - return productLineEClass; - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductLine_Identifier() { - return (EAttribute) productLineEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductLine_Name() { - return (EAttribute) productLineEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductLine_Description() { - return (EAttribute) productLineEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProductLine_Products() { - return (EReference) productLineEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - @Override - public EClass getProduct() { - return productEClass; - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProduct_Identifier() { - return (EAttribute) productEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProduct_Name() { - return (EAttribute) productEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProduct_Description() { - return (EAttribute) productEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProduct_ProductLine() { - return (EReference) productEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProduct_ProductVersions() { - return (EReference) productEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * - * @generated - */ - @Override - public EClass getProductVersion() { - return productVersionEClass; - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersion_Version() { - return (EAttribute) productVersionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getProductVersion_Name() { - return (EAttribute) productVersionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersion_InstallationToken() { - return (EAttribute) productVersionEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersion_SecureToken() { - return (EAttribute) productVersionEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersion_News() { - return (EAttribute) productVersionEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProductVersion_Product() { - return (EReference) productVersionEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProductVersion_ProductVersionFeatures() { - return (EReference) productVersionEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * - * @generated - */ - @Override - public EClass getProductVersionFeature() { - return productVersionFeatureEClass; - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersionFeature_FeatureIdentifier() { - return (EAttribute) productVersionFeatureEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersionFeature_FeatureVersion() { - return (EAttribute) productVersionFeatureEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * - * @generated - */ - @Override - public EAttribute getProductVersionFeature_RestrictionLevel() { - return (EAttribute) productVersionFeatureEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * - * @generated - */ - @Override - public EReference getProductVersionFeature_ProductVersion() { - return (EReference) productVersionFeatureEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * - * @generated - */ - @Override - public ProductsFactory getProductsFactory() { - return (ProductsFactory) getEFactoryInstance(); - } - - /** - * - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - productLineEClass = createEClass(PRODUCT_LINE); - createEAttribute(productLineEClass, PRODUCT_LINE__IDENTIFIER); - createEAttribute(productLineEClass, PRODUCT_LINE__NAME); - createEAttribute(productLineEClass, PRODUCT_LINE__DESCRIPTION); - createEReference(productLineEClass, PRODUCT_LINE__PRODUCTS); - - productEClass = createEClass(PRODUCT); - createEAttribute(productEClass, PRODUCT__IDENTIFIER); - createEAttribute(productEClass, PRODUCT__NAME); - createEAttribute(productEClass, PRODUCT__DESCRIPTION); - createEReference(productEClass, PRODUCT__PRODUCT_LINE); - createEReference(productEClass, PRODUCT__PRODUCT_VERSIONS); - - productVersionEClass = createEClass(PRODUCT_VERSION); - createEAttribute(productVersionEClass, PRODUCT_VERSION__VERSION); - createEAttribute(productVersionEClass, PRODUCT_VERSION__NAME); - createEAttribute(productVersionEClass, PRODUCT_VERSION__INSTALLATION_TOKEN); - createEAttribute(productVersionEClass, PRODUCT_VERSION__SECURE_TOKEN); - createEAttribute(productVersionEClass, PRODUCT_VERSION__NEWS); - createEReference(productVersionEClass, PRODUCT_VERSION__PRODUCT); - createEReference(productVersionEClass, PRODUCT_VERSION__PRODUCT_VERSION_FEATURES); - - productVersionFeatureEClass = createEClass(PRODUCT_VERSION_FEATURE); - createEAttribute(productVersionFeatureEClass, PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER); - createEAttribute(productVersionFeatureEClass, PRODUCT_VERSION_FEATURE__FEATURE_VERSION); - createEAttribute(productVersionFeatureEClass, PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL); - createEReference(productVersionFeatureEClass, PRODUCT_VERSION_FEATURE__PRODUCT_VERSION); - } - - /** - * - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes, features, and operations; add parameters - initEClass(productLineEClass, ProductLine.class, "ProductLine", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProductLine_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ - ProductLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductLine_Name(), ecorePackage.getEString(), "name", null, 0, 1, ProductLine.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductLine_Description(), ecorePackage.getEString(), "description", null, 0, 1, //$NON-NLS-1$ - ProductLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getProductLine_Products(), this.getProduct(), this.getProduct_ProductLine(), "products", null, 0, //$NON-NLS-1$ - -1, ProductLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(productEClass, Product.class, "Product", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getProduct_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, Product.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProduct_Name(), ecorePackage.getEString(), "name", null, 0, 1, Product.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProduct_Description(), ecorePackage.getEString(), "description", null, 0, 1, Product.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getProduct_ProductLine(), this.getProductLine(), this.getProductLine_Products(), "productLine", //$NON-NLS-1$ - null, 1, 1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getProduct_ProductVersions(), this.getProductVersion(), this.getProductVersion_Product(), - "productVersions", null, 0, -1, Product.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, //$NON-NLS-1$ - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(productVersionEClass, ProductVersion.class, "ProductVersion", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProductVersion_Version(), ecorePackage.getEString(), "version", null, 1, 1, //$NON-NLS-1$ - ProductVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersion_Name(), ecorePackage.getEString(), "name", null, 0, 1, ProductVersion.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersion_InstallationToken(), ecorePackage.getEString(), "installationToken", null, 0, //$NON-NLS-1$ - 1, ProductVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersion_SecureToken(), ecorePackage.getEString(), "secureToken", null, 0, 1, //$NON-NLS-1$ - ProductVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersion_News(), ecorePackage.getEString(), "news", null, 0, 1, ProductVersion.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getProductVersion_Product(), this.getProduct(), this.getProduct_ProductVersions(), "product", //$NON-NLS-1$ - null, 1, 1, ProductVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getProductVersion_ProductVersionFeatures(), this.getProductVersionFeature(), - this.getProductVersionFeature_ProductVersion(), "productVersionFeatures", null, 0, -1, //$NON-NLS-1$ - ProductVersion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(productVersionFeatureEClass, ProductVersionFeature.class, "ProductVersionFeature", !IS_ABSTRACT, //$NON-NLS-1$ - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProductVersionFeature_FeatureIdentifier(), ecorePackage.getEString(), "featureIdentifier", //$NON-NLS-1$ - null, 1, 1, ProductVersionFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersionFeature_FeatureVersion(), ecorePackage.getEString(), "featureVersion", null, 1, //$NON-NLS-1$ - 1, ProductVersionFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getProductVersionFeature_RestrictionLevel(), ecorePackage.getEString(), "restrictionLevel", null, //$NON-NLS-1$ - 0, 1, ProductVersionFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getProductVersionFeature_ProductVersion(), this.getProductVersion(), - this.getProductVersion_ProductVersionFeatures(), "productVersion", null, 1, 1, //$NON-NLS-1$ - ProductVersionFeature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, - !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // ProductsPackageImpl diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsFactory.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsFactory.java deleted file mode 100644 index b9701699c..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsFactory.java +++ /dev/null @@ -1,91 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.meta; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; - -/** - * - * - * The Factory for the model. It provides a create method for each - * non-abstract class of the model. - * - * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage - * @generated - */ -public interface ProductsFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * - * @generated - */ - ProductsFactory eINSTANCE = org.eclipse.passage.lic.products.model.impl.ProductsFactoryImpl.init(); - - /** - * Returns a new object of class 'Product Line'. - * - * - * - * @return a new object of class 'Product Line'. - * @generated - */ - ProductLine createProductLine(); - - /** - * Returns a new object of class 'Product'. - * - * - * - * @return a new object of class 'Product'. - * @generated - */ - Product createProduct(); - - /** - * Returns a new object of class 'Product Version'. - * - * - * - * @return a new object of class 'Product Version'. - * @generated - */ - ProductVersion createProductVersion(); - - /** - * Returns a new object of class 'Product Version Feature'. - * - * - * - * @return a new object of class 'Product Version Feature'. - * @generated - */ - ProductVersionFeature createProductVersionFeature(); - - /** - * Returns the package supported by this factory. - * - * - * - * @return the package supported by this factory. - * @generated - */ - ProductsPackage getProductsPackage(); - -} // ProductsFactory diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsPackage.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsPackage.java deleted file mode 100644 index a8b3275bf..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/meta/ProductsPackage.java +++ /dev/null @@ -1,690 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.meta; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * - * The Package for the model. It contains accessors for the meta objects - * to represent - *

    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.passage.lic.products.model.meta.ProductsFactory - * @model kind="package" - * @generated - */ -public interface ProductsPackage extends EPackage { - /** - * The package name. - * - * - * - * @generated - */ - String eNAME = "products"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/passage/lic/products/3.0.0"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * - * @generated - */ - String eNS_PREFIX = "org.eclipse.passage.lic"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * - * @generated - */ - ProductsPackage eINSTANCE = org.eclipse.passage.lic.products.model.impl.ProductsPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.products.model.impl.ProductLineImpl Product Line}' class. - * - * - * - * @see org.eclipse.passage.lic.products.model.impl.ProductLineImpl - * @see org.eclipse.passage.lic.products.model.impl.ProductsPackageImpl#getProductLine() - * @generated - */ - int PRODUCT_LINE = 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE__DESCRIPTION = 2; - - /** - * The feature id for the 'Products' containment reference list. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE__PRODUCTS = 3; - - /** - * The number of structural features of the 'Product Line' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE_FEATURE_COUNT = 4; - - /** - * The number of operations of the 'Product Line' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_LINE_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.products.model.impl.ProductImpl Product}' class. - * - * - * - * @see org.eclipse.passage.lic.products.model.impl.ProductImpl - * @see org.eclipse.passage.lic.products.model.impl.ProductsPackageImpl#getProduct() - * @generated - */ - int PRODUCT = 1; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT__DESCRIPTION = 2; - - /** - * The feature id for the 'Product Line' container reference. - * - * - * - * @generated - * @ordered - */ - int PRODUCT__PRODUCT_LINE = 3; - - /** - * The feature id for the 'Product Versions' containment reference list. - * - * - * - * @generated - * @ordered - */ - int PRODUCT__PRODUCT_VERSIONS = 4; - - /** - * The number of structural features of the 'Product' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_FEATURE_COUNT = 5; - - /** - * The number of operations of the 'Product' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.products.model.impl.ProductVersionImpl Product Version}' class. - * - * - * - * @see org.eclipse.passage.lic.products.model.impl.ProductVersionImpl - * @see org.eclipse.passage.lic.products.model.impl.ProductsPackageImpl#getProductVersion() - * @generated - */ - int PRODUCT_VERSION = 2; - - /** - * The feature id for the 'Version' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__VERSION = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__NAME = 1; - - /** - * The feature id for the 'Installation Token' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__INSTALLATION_TOKEN = 2; - - /** - * The feature id for the 'Secure Token' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__SECURE_TOKEN = 3; - - /** - * The feature id for the 'News' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__NEWS = 4; - - /** - * The feature id for the 'Product' container reference. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__PRODUCT = 5; - - /** - * The feature id for the 'Product Version Features' containment reference list. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION__PRODUCT_VERSION_FEATURES = 6; - - /** - * The number of structural features of the 'Product Version' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE_COUNT = 7; - - /** - * The number of operations of the 'Product Version' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl Product Version Feature}' class. - * - * - * - * @see org.eclipse.passage.lic.products.model.impl.ProductVersionFeatureImpl - * @see org.eclipse.passage.lic.products.model.impl.ProductsPackageImpl#getProductVersionFeature() - * @generated - */ - int PRODUCT_VERSION_FEATURE = 3; - - /** - * The feature id for the 'Feature Identifier' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE__FEATURE_IDENTIFIER = 0; - - /** - * The feature id for the 'Feature Version' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE__FEATURE_VERSION = 1; - - /** - * The feature id for the 'Restriction Level' attribute. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE__RESTRICTION_LEVEL = 2; - - /** - * The feature id for the 'Product Version' container reference. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE__PRODUCT_VERSION = 3; - - /** - * The number of structural features of the 'Product Version Feature' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE_FEATURE_COUNT = 4; - - /** - * The number of operations of the 'Product Version Feature' class. - * - * - * - * @generated - * @ordered - */ - int PRODUCT_VERSION_FEATURE_OPERATION_COUNT = 0; - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.products.model.api.ProductLine Product Line}'. - * - * - * - * @return the meta object for class 'Product Line'. - * @see org.eclipse.passage.lic.products.model.api.ProductLine - * @generated - */ - EClass getProductLine(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getIdentifier Identifier}'. - * - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.products.model.api.ProductLine#getIdentifier() - * @see #getProductLine() - * @generated - */ - EAttribute getProductLine_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getName Name}'. - * - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.products.model.api.ProductLine#getName() - * @see #getProductLine() - * @generated - */ - EAttribute getProductLine_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getDescription Description}'. - * - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.products.model.api.ProductLine#getDescription() - * @see #getProductLine() - * @generated - */ - EAttribute getProductLine_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.products.model.api.ProductLine#getProducts Products}'. - * - * - * - * @return the meta object for the containment reference list 'Products'. - * @see org.eclipse.passage.lic.products.model.api.ProductLine#getProducts() - * @see #getProductLine() - * @generated - */ - EReference getProductLine_Products(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.products.model.api.Product Product}'. - * - * - * - * @return the meta object for class 'Product'. - * @see org.eclipse.passage.lic.products.model.api.Product - * @generated - */ - EClass getProduct(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.Product#getIdentifier Identifier}'. - * - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.products.model.api.Product#getIdentifier() - * @see #getProduct() - * @generated - */ - EAttribute getProduct_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.Product#getName Name}'. - * - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.products.model.api.Product#getName() - * @see #getProduct() - * @generated - */ - EAttribute getProduct_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.Product#getDescription Description}'. - * - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.products.model.api.Product#getDescription() - * @see #getProduct() - * @generated - */ - EAttribute getProduct_Description(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.products.model.api.Product#getProductLine Product Line}'. - * - * - * - * @return the meta object for the container reference 'Product Line'. - * @see org.eclipse.passage.lic.products.model.api.Product#getProductLine() - * @see #getProduct() - * @generated - */ - EReference getProduct_ProductLine(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.products.model.api.Product#getProductVersions Product Versions}'. - * - * - * - * @return the meta object for the containment reference list 'Product Versions'. - * @see org.eclipse.passage.lic.products.model.api.Product#getProductVersions() - * @see #getProduct() - * @generated - */ - EReference getProduct_ProductVersions(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.products.model.api.ProductVersion Product Version}'. - * - * - * - * @return the meta object for class 'Product Version'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion - * @generated - */ - EClass getProductVersion(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getVersion Version}'. - * - * - * - * @return the meta object for the attribute 'Version'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getVersion() - * @see #getProductVersion() - * @generated - */ - EAttribute getProductVersion_Version(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getName() - * @see #getProductVersion() - * @generated - */ - EAttribute getProductVersion_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getInstallationToken Installation Token}'. - * - * - * - * @return the meta object for the attribute 'Installation Token'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getInstallationToken() - * @see #getProductVersion() - * @generated - */ - EAttribute getProductVersion_InstallationToken(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getSecureToken Secure Token}'. - * - * - * - * @return the meta object for the attribute 'Secure Token'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getSecureToken() - * @see #getProductVersion() - * @generated - */ - EAttribute getProductVersion_SecureToken(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getNews News}'. - * - * - * - * @return the meta object for the attribute 'News'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getNews() - * @see #getProductVersion() - * @generated - */ - EAttribute getProductVersion_News(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct Product}'. - * - * - * - * @return the meta object for the container reference 'Product'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getProduct() - * @see #getProductVersion() - * @generated - */ - EReference getProductVersion_Product(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.products.model.api.ProductVersion#getProductVersionFeatures Product Version Features}'. - * - * - * - * @return the meta object for the containment reference list 'Product Version Features'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion#getProductVersionFeatures() - * @see #getProductVersion() - * @generated - */ - EReference getProductVersion_ProductVersionFeatures(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature Product Version Feature}'. - * - * - * - * @return the meta object for class 'Product Version Feature'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature - * @generated - */ - EClass getProductVersionFeature(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureIdentifier Feature Identifier}'. - * - * - * - * @return the meta object for the attribute 'Feature Identifier'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureIdentifier() - * @see #getProductVersionFeature() - * @generated - */ - EAttribute getProductVersionFeature_FeatureIdentifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureVersion Feature Version}'. - * - * - * - * @return the meta object for the attribute 'Feature Version'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getFeatureVersion() - * @see #getProductVersionFeature() - * @generated - */ - EAttribute getProductVersionFeature_FeatureVersion(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getRestrictionLevel Restriction Level}'. - * - * - * - * @return the meta object for the attribute 'Restriction Level'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getRestrictionLevel() - * @see #getProductVersionFeature() - * @generated - */ - EAttribute getProductVersionFeature_RestrictionLevel(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion Product Version}'. - * - * - * - * @return the meta object for the container reference 'Product Version'. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature#getProductVersion() - * @see #getProductVersionFeature() - * @generated - */ - EReference getProductVersionFeature_ProductVersion(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ProductsFactory getProductsFactory(); - -} // ProductsPackage diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsAdapterFactory.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsAdapterFactory.java deleted file mode 100644 index 5a5236120..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsAdapterFactory.java +++ /dev/null @@ -1,210 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * The Adapter Factory for the model. It provides an adapter - * createXXX method for each class of the model. - * - * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage - * @generated - */ -public class ProductsAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * - * @generated - */ - protected static ProductsPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * - * @generated - */ - public ProductsAdapterFactory() { - if (modelPackage == null) { - modelPackage = ProductsPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * - * This implementation returns true if the object is either the - * model's package or is an instance object of the model. - * - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * - * @generated - */ - protected ProductsSwitch modelSwitch = new ProductsSwitch() { - @Override - public Adapter caseProductLine(ProductLine object) { - return createProductLineAdapter(); - } - - @Override - public Adapter caseProduct(Product object) { - return createProductAdapter(); - } - - @Override - public Adapter caseProductVersion(ProductVersion object) { - return createProductVersionAdapter(); - } - - @Override - public Adapter caseProductVersionFeature(ProductVersionFeature object) { - return createProductVersionFeatureAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.products.model.api.ProductLine Product Line}'. - * - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * - * @return the new adapter. - * @see org.eclipse.passage.lic.products.model.api.ProductLine - * @generated - */ - public Adapter createProductLineAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.products.model.api.Product Product}'. - * - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * - * @return the new adapter. - * @see org.eclipse.passage.lic.products.model.api.Product - * @generated - */ - public Adapter createProductAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.products.model.api.ProductVersion Product Version}'. - * - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * - * @return the new adapter. - * @see org.eclipse.passage.lic.products.model.api.ProductVersion - * @generated - */ - public Adapter createProductVersionAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.products.model.api.ProductVersionFeature Product Version Feature}'. - * - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases - * anyway. - * - * - * @return the new adapter. - * @see org.eclipse.passage.lic.products.model.api.ProductVersionFeature - * @generated - */ - public Adapter createProductVersionFeatureAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * - * This default implementation returns null. - * - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // ProductsAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsSwitch.java b/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsSwitch.java deleted file mode 100644 index b779cd0f8..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src-gen/org/eclipse/passage/lic/products/model/util/ProductsSwitch.java +++ /dev/null @@ -1,204 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -/** - * - * - * The Switch for the model's inheritance hierarchy. It supports the call - * {@link #doSwitch(EObject) doSwitch(object)} to invoke the - * caseXXX method for each class of the model, starting with the - * actual class of the object and proceeding up the inheritance hierarchy until - * a non-null result is returned, which is the result of the switch. - * - * - * @see org.eclipse.passage.lic.products.model.meta.ProductsPackage - * @generated - */ -public class ProductsSwitch extends Switch { - /** - * The cached model package - * - * - * - * @generated - */ - protected static ProductsPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * - * @generated - */ - public ProductsSwitch() { - if (modelPackage == null) { - modelPackage = ProductsPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case ProductsPackage.PRODUCT_LINE: { - ProductLine productLine = (ProductLine) theEObject; - T result = caseProductLine(productLine); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case ProductsPackage.PRODUCT: { - Product product = (Product) theEObject; - T result = caseProduct(product); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case ProductsPackage.PRODUCT_VERSION: { - ProductVersion productVersion = (ProductVersion) theEObject; - T result = caseProductVersion(productVersion); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case ProductsPackage.PRODUCT_VERSION_FEATURE: { - ProductVersionFeature productVersionFeature = (ProductVersionFeature) theEObject; - T result = caseProductVersionFeature(productVersionFeature); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Product Line'. - * - * - * This implementation returns null; returning a non-null result will terminate - * the switch. - * - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product Line'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProductLine(ProductLine object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Product'. - * - * - * This implementation returns null; returning a non-null result will terminate - * the switch. - * - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProduct(Product object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Product Version'. - * - * - * This implementation returns null; returning a non-null result will terminate - * the switch. - * - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product Version'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProductVersion(ProductVersion object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Product Version Feature'. - * - * - * This implementation returns null; returning a non-null result will terminate - * the switch. - * - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Product Version Feature'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProductVersionFeature(ProductVersionFeature object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * - * This implementation returns null; returning a non-null result will terminate - * the switch, but this is the last case anyway. - * - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} // ProductsSwitch diff --git a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/ProductsClassMetadata.java b/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/ProductsClassMetadata.java deleted file mode 100644 index a8b881b5b..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/ProductsClassMetadata.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.products.model; - -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -import org.eclipse.passage.lic.emf.meta.ClassMetadata; -import org.eclipse.passage.lic.emf.meta.EntityMetadata; -import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -public final class ProductsClassMetadata implements ClassMetadata { - - private final ProductsPackage meta; - private final Map, EntityMetadata> map; - - public ProductsClassMetadata() { - meta = ProductsPackage.eINSTANCE; - map = new HashMap, EntityMetadata>(); - map.put(ProductLine.class, // - new PlainEntityMetadata(// - meta.getProductLine(), // - meta.getProductLine_Identifier(), // - meta.getProductLine_Name())); - map.put(Product.class, // - new PlainEntityMetadata(// - meta.getProduct(), // - meta.getProduct_Identifier(), // - meta.getProduct_Name())); - map.put(ProductVersion.class, // - new PlainEntityMetadata(// - meta.getProductVersion(), // - meta.getProductVersion_Version(), // - meta.getProductVersion_Name())); - } - - @Override - public Optional find(Class clazz) { - return Optional.ofNullable(map.get(clazz)); - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/migration/ProductsResourceHandler.java b/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/migration/ProductsResourceHandler.java deleted file mode 100644 index 79deaec9b..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/migration/ProductsResourceHandler.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.products.model.migration; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.passage.lic.emf.migration.DelegateClassifiers; -import org.eclipse.passage.lic.emf.migration.EClassRoutes; -import org.eclipse.passage.lic.emf.migration.MigrationRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleClassRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleMigrationRoutes; -import org.eclipse.passage.lic.emf.xmi.MigratingResourceHandler; -import org.eclipse.passage.lic.products.model.meta.ProductsPackage; - -public final class ProductsResourceHandler extends MigratingResourceHandler { - - @Override - protected void register() { - migrate030(); - migrate040(); - migrate050(); - } - - @Override - protected MigrationRoutes attributes() { - return new SimpleMigrationRoutes(); - } - - @Override - protected void complete(XMLResource resource) { - // do nothing - } - - private void migrate030() { - String uri = "http://www.eclipse.org/passage/lic/0.3.3"; //$NON-NLS-1$ - ProductsPackage delegate = ProductsPackage.eINSTANCE; - EClassRoutes.Smart smart = new EClassRoutes.Smart(new SimpleClassRoutes()); - smart.define(delegate.getProductLine()); - smart.define(delegate.getProduct()); - smart.define(delegate.getProductVersion()); - smart.define(delegate.getProductVersionFeature()); - new DelegateClassifiers(uri).delegate(smart); - } - - private void migrate040() { - String uri = "http://www.eclipse.org/passage/lic/products/0.4.0"; //$NON-NLS-1$ - ProductsPackage delegate = ProductsPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - - private void migrate050() { - String uri = "http://www.eclipse.org/passage/lic/products/0.5.0"; //$NON-NLS-1$ - ProductsPackage delegate = ProductsPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceFactoryImpl.java b/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceFactoryImpl.java deleted file mode 100644 index f82640744..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceFactoryImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.products.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -public class ProductsResourceFactoryImpl extends ResourceFactoryImpl { - - @Override - public Resource createResource(URI uri) { - Resource result = new ProductsResourceImpl(uri); - return result; - } - -} diff --git a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceImpl.java b/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceImpl.java deleted file mode 100644 index 6069ba87d..000000000 --- a/bundles/org.eclipse.passage.lic.products.model/src/org/eclipse/passage/lic/internal/products/model/util/ProductsResourceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.products.model.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; -import org.eclipse.passage.lic.internal.products.model.migration.ProductsResourceHandler; - -public class ProductsResourceImpl extends XMIResourceImpl { - - public ProductsResourceImpl(URI uri) { - super(uri); - } - - @Override - protected void init() { - super.init(); - Map options = getDefaultLoadOptions(); - options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); - options.put(OPTION_RESOURCE_HANDLER, new ProductsResourceHandler()); - } - -} diff --git a/bundles/org.eclipse.passage.lic.products/.project b/bundles/org.eclipse.passage.lic.products/.project deleted file mode 100644 index 0233c3851..000000000 --- a/bundles/org.eclipse.passage.lic.products/.project +++ /dev/null @@ -1,35 +0,0 @@ - - - org.eclipse.passage.lic.products - - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.products/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.products/META-INF/MANIFEST.MF deleted file mode 100644 index 3133ce9cc..000000000 --- a/bundles/org.eclipse.passage.lic.products/META-INF/MANIFEST.MF +++ /dev/null @@ -1,10 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.products -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.products -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.passage.lic.api;bundle-version="0.0.0";visibility:=reexport diff --git a/bundles/org.eclipse.passage.lic.products/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.products/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 07d315e20..000000000 --- a/bundles/org.eclipse.passage.lic.products/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Products -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.products/about.html b/bundles/org.eclipse.passage.lic.products/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.products/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.products/about.ini b/bundles/org.eclipse.passage.lic.products/about.ini deleted file mode 100644 index 8dbb28325..000000000 --- a/bundles/org.eclipse.passage.lic.products/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.products/about.mappings b/bundles/org.eclipse.passage.lic.products/about.mappings deleted file mode 100644 index 7d53a6a2c..000000000 --- a/bundles/org.eclipse.passage.lic.products/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.products/about.properties b/bundles/org.eclipse.passage.lic.products/about.properties deleted file mode 100644 index 7cddfd393..000000000 --- a/bundles/org.eclipse.passage.lic.products/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Passage Licensing Integration Components: EMF Model API for Products data\n\ -\n\ -Version: {featureVersion}\n\ -\n\ -Copyright (c) 2018, 2024 ArSysOp and others. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.products/build.properties b/bundles/org.eclipse.passage.lic.products/build.properties deleted file mode 100644 index 40677a74b..000000000 --- a/bundles/org.eclipse.passage.lic.products/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.products/passage32.png b/bundles/org.eclipse.passage.lic.products/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.products/passage32.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.users.ecore/.classpath b/bundles/org.eclipse.passage.lic.users.ecore/.classpath deleted file mode 100644 index 1a821310b..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.ecore/.project b/bundles/org.eclipse.passage.lic.users.ecore/.project deleted file mode 100644 index 7a4be5591..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/.project +++ /dev/null @@ -1,41 +0,0 @@ - - - org.eclipse.passage.lic.users.ecore - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.users.ecore/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.users.ecore/META-INF/MANIFEST.MF deleted file mode 100644 index 066a63ec2..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/META-INF/MANIFEST.MF +++ /dev/null @@ -1,9 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.users.ecore -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.users.ecore -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/bundles/org.eclipse.passage.lic.users.ecore/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.users.ecore/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 8ef3edc3a..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Users Ecore -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.users.ecore/about.html b/bundles/org.eclipse.passage.lic.users.ecore/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.users.ecore/build.properties b/bundles/org.eclipse.passage.lic.users.ecore/build.properties deleted file mode 100644 index 9efe7f29f..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -# ArSysOp - further support -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - OSGI-INF/,\ - model/,\ - about.html,\ - . -src.includes = model/ diff --git a/bundles/org.eclipse.passage.lic.users.ecore/images/users.svg b/bundles/org.eclipse.passage.lic.users.ecore/images/users.svg deleted file mode 100644 index 46394019d..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/images/users.svg +++ /dev/null @@ -1,509 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ContactDescriptor - - - - - - - LicenseOwnerDescriptor - - - - - - - UserDescriptor - - - - - - - UserGroupDescriptor - - - - - - - UserOriginDescriptor - - - - - - - Contact - - - - name : EString - - title : EString - - position : EString - - email : EString - - address : EString - - - - - - - - - LicenseOwner - - identifier : EString - - name : EString - - description : EString - - - - - - - User - - preferredEvaluationType : EString - - preferredEvaluationExpression : EString - - - - - - - UserGroup - - - - - - - UserOrigin - - - - identifier : EString - - name : EString - - description : EString - - - [1..1] contact - - - - - - - - [0..*] users - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [0..*] groups - [1..1] origin - - - - - - - [0..*] users - [1..1] origin - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.ecore/model/users.ecore b/bundles/org.eclipse.passage.lic.users.ecore/model/users.ecore deleted file mode 100644 index 6d69fbaf7..000000000 --- a/bundles/org.eclipse.passage.lic.users.ecore/model/users.ecore +++ /dev/null @@ -1,77 +0,0 @@ - - - - -
- - - - - - - - - -
- - - - -
- - - - - -
- - - - - - -
- - - - -
- - - - -
- - - - - -
- - - - - - - - - - - -
- - - - diff --git a/bundles/org.eclipse.passage.lic.users.ecore/src/.gitkeep b/bundles/org.eclipse.passage.lic.users.ecore/src/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/bundles/org.eclipse.passage.lic.users.edit/.classpath b/bundles/org.eclipse.passage.lic.users.edit/.classpath deleted file mode 100644 index 942e377d4..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.edit/.project b/bundles/org.eclipse.passage.lic.users.edit/.project deleted file mode 100644 index d85f7ee88..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.users.edit - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/bundles/org.eclipse.passage.lic.users.edit/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.users.edit/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.users.edit/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.users.edit/META-INF/MANIFEST.MF deleted file mode 100644 index 270b2c67e..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.users.edit -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.users.edit;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.passage.lic.users.model;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.edit;bundle-version="0.0.0";visibility:=reexport -Import-Package: org.osgi.framework -Export-Package: org.eclipse.passage.lic.users.edit, - org.eclipse.passage.lic.users.edit.providers -Bundle-ClassPath: . -Bundle-Activator: org.eclipse.passage.lic.users.edit.UsersEditPlugin$Implementation$Activator -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.users.edit/about.html b/bundles/org.eclipse.passage.lic.users.edit/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.users.edit/build.properties b/bundles/org.eclipse.passage.lic.users.edit/build.properties deleted file mode 100644 index 9c6876f96..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/ -output.. = bin/ -bin.includes = .,\ - icons/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.users.edit/icons/full/obj16/user.png b/bundles/org.eclipse.passage.lic.users.edit/icons/full/obj16/user.png deleted file mode 100644 index db35a0391..000000000 Binary files a/bundles/org.eclipse.passage.lic.users.edit/icons/full/obj16/user.png and /dev/null differ diff --git a/bundles/org.eclipse.passage.lic.users.edit/plugin.properties b/bundles/org.eclipse.passage.lic.users.edit/plugin.properties deleted file mode 100644 index 57d91a61b..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/plugin.properties +++ /dev/null @@ -1,80 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Users Edit Support -providerName=Eclipse Passage - -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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_UserOrigin_type = User Origin -_UI_User_type = User -_UI_Unknown_type = Object - _UI_Unknown_datatype= Value - _UI_UserOrigin_identifier_feature = Identifier -_UI_UserOrigin_name_feature = Name -_UI_UserOrigin_description_feature = Description -_UI_UserOrigin_users_feature = Users -_UI_User_identifier_feature = Identifier -_UI_User_email_feature = Email -_UI_User_fullName_feature = Full Name -_UI_User_description_feature = Description -_UI_User_userOrigin_feature = User Origin -_UI_Unknown_feature = Unspecified - _UI_User_text_pattern = {1} ({0}) -_UI_UserOrigin_text_pattern = {1} ({0}) -_UI_User_preferredConditionType_feature = Preferred Condition Type -_UI_User_preferredConditionExpression_feature = Preferred Condition Expression -_UI_UserLicense_type = User License -_UI_User_userLicenses_feature = User Licenses -_UI_UserLicense_planIdentifier_feature = Plan Identifier -_UI_UserLicense_productIdentifier_feature = Product Identifier -_UI_UserLicense_productVersion_feature = Product Version -_UI_UserLicense_validFrom_feature = Valid From -_UI_UserLicense_validUntil_feature = Valid Until -_UI_UserLicense_conditionType_feature = Condition Type -_UI_UserLicense_conditionExpression_feature = Condition Expression -_UI_UserLicense_packIdentifier_feature = Pack Identifier -_UI_UserLicense_issueDate_feature = Issue Date -_UI_UserLicense_user_feature = User -_UI_UserLicense_label={0} {1} ({2}) -_UI_UserGroup_type = User Group -_UI_Contact_type = Contact -_UI_LicenseOwner_type = License Owner -_UI_UserOrigin_groups_feature = Groups -_UI_User_preferredEvaluationType_feature = Preferred Evaluation Type -_UI_User_preferredEvaluationExpression_feature = Preferred Evaluation Expression -_UI_User_origin_feature = Origin -_UI_UserGroup_users_feature = Users -_UI_UserGroup_origin_feature = Origin -_UI_Contact_name_feature = Name -_UI_Contact_title_feature = Title -_UI_Contact_position_feature = Position -_UI_Contact_email_feature = Email -_UI_Contact_address_feature = Address -_UI_LicenseOwner_identifier_feature = Identifier -_UI_LicenseOwner_name_feature = Name -_UI_LicenseOwner_description_feature = Description -_UI_LicenseOwner_contact_feature = Contact diff --git a/bundles/org.eclipse.passage.lic.users.edit/plugin.xml b/bundles/org.eclipse.passage.lic.users.edit/plugin.xml deleted file mode 100644 index 70ccbe6be..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/UsersEditPlugin.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/UsersEditPlugin.java deleted file mode 100644 index 77ccd2f49..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/UsersEditPlugin.java +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit; - -import org.eclipse.emf.common.EMFPlugin; -import org.eclipse.emf.common.util.ResourceLocator; -import org.osgi.framework.BundleActivator; - -/** - * This is the central singleton for the Users edit plugin. - * - * - * @generated - */ -public final class UsersEditPlugin extends EMFPlugin { - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final UsersEditPlugin INSTANCE = new UsersEditPlugin(); - - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; - - /** - * Create the instance. - * - * - * @generated - */ - public UsersEditPlugin() { - super(new ResourceLocator[] {}); - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() { - return plugin; - } - - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() { - return plugin; - } - - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() { - super(); - - // Remember the static instance. - // - plugin = this; - } - - /** - * The actual implementation of the purely OSGi-compatible Bundle Activator. - * - * - * @generated - */ - public static final class Activator extends EMFPlugin.OSGiDelegatingBundleActivator { - @Override - protected BundleActivator createBundle() { - return new Implementation(); - } - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/ContactItemProvider.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/ContactItemProvider.java deleted file mode 100644 index 509ac7213..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/ContactItemProvider.java +++ /dev/null @@ -1,235 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.users.edit.UsersEditPlugin; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.users.model.api.Contact} object. - * - * - * @since 2.0 - * @generated - */ -public class ContactItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ContactItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addNamePropertyDescriptor(object); - addTitlePropertyDescriptor(object); - addPositionPropertyDescriptor(object); - addEmailPropertyDescriptor(object); - addAddressPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Contact_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contact_name_feature", "_UI_Contact_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - UsersPackage.eINSTANCE.getContact_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Title feature. - * - * - * @generated - */ - protected void addTitlePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Contact_title_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contact_title_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Contact_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getContact_Title(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Position feature. - * - * - * @generated - */ - protected void addPositionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Contact_position_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contact_position_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Contact_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getContact_Position(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Email feature. - * - * - * @generated - */ - protected void addEmailPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Contact_email_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contact_email_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Contact_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getContact_Email(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Address feature. - * - * - * @generated - */ - protected void addAddressPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_Contact_address_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_Contact_address_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_Contact_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getContact_Address(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns user.png - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/user.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((Contact) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_Contact_type") : //$NON-NLS-1$ - getString("_UI_Contact_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(Contact.class)) { - case UsersPackage.CONTACT__NAME: - case UsersPackage.CONTACT__TITLE: - case UsersPackage.CONTACT__POSITION: - case UsersPackage.CONTACT__EMAIL: - case UsersPackage.CONTACT__ADDRESS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UsersEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserGroupItemProvider.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserGroupItemProvider.java deleted file mode 100644 index e7409bd75..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserGroupItemProvider.java +++ /dev/null @@ -1,289 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.users.edit.UsersEditPlugin; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.users.model.api.UserGroup} object. - * - * - * @since 2.0 - * @generated - */ -public class UserGroupItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public UserGroupItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - addContactPropertyDescriptor(object); - addUsersPropertyDescriptor(object); - addOriginPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @since 2.0 - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Contact feature. - * - * - * @since 2.0 - * @generated - */ - protected void addContactPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_contact_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_contact_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Contact(), true, false, false, null, null, null)); - } - - /** - * This adds a property descriptor for the Users feature. - * - * - * @generated - */ - protected void addUsersPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserGroup_users_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserGroup_users_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserGroup_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserGroup_Users(), true, false, true, null, null, null)); - } - - /** - * This adds a property descriptor for the Origin feature. - * - * - * @generated - */ - protected void addOriginPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserGroup_origin_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserGroup_origin_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserGroup_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserGroup_Origin(), true, false, true, null, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UsersPackage.eINSTANCE.getLicenseOwner_Contact()); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns user.png - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/user.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((UserGroup) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_UserGroup_type") : //$NON-NLS-1$ - getString("_UI_UserGroup_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(UserGroup.class)) { - case UsersPackage.USER_GROUP__IDENTIFIER: - case UsersPackage.USER_GROUP__NAME: - case UsersPackage.USER_GROUP__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case UsersPackage.USER_GROUP__CONTACT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(UsersPackage.eINSTANCE.getLicenseOwner_Contact(), - UsersFactory.eINSTANCE.createContact())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UsersEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserItemProvider.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserItemProvider.java deleted file mode 100644 index c2289a82b..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserItemProvider.java +++ /dev/null @@ -1,294 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.users.edit.UsersEditPlugin; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.users.model.api.User} object. - * - * - * @generated - */ -public class UserItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public UserItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - addContactPropertyDescriptor(object); - addPreferredEvaluationTypePropertyDescriptor(object); - addPreferredEvaluationExpressionPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @since 2.0 - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Contact feature. - * - * - * @since 2.0 - * @generated - */ - protected void addContactPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_LicenseOwner_contact_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_LicenseOwner_contact_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_LicenseOwner_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getLicenseOwner_Contact(), true, false, false, null, null, null)); - } - - /** - * This adds a property descriptor for the Preferred Evaluation Type feature. - * - * - * @since 2.0 - * @generated - */ - protected void addPreferredEvaluationTypePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_User_preferredEvaluationType_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_User_preferredEvaluationType_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_User_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUser_PreferredEvaluationType(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Preferred Evaluation Expression feature. - * - * - * @since 2.0 - * @generated - */ - protected void addPreferredEvaluationExpressionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_User_preferredEvaluationExpression_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", //$NON-NLS-1$ - "_UI_User_preferredEvaluationExpression_feature", "_UI_User_type"), //$NON-NLS-1$ //$NON-NLS-2$ - UsersPackage.eINSTANCE.getUser_PreferredEvaluationExpression(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UsersPackage.eINSTANCE.getLicenseOwner_Contact()); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns user.png - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/user.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((User) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_User_type") : //$NON-NLS-1$ - getString("_UI_User_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(User.class)) { - case UsersPackage.USER__IDENTIFIER: - case UsersPackage.USER__NAME: - case UsersPackage.USER__DESCRIPTION: - case UsersPackage.USER__PREFERRED_EVALUATION_TYPE: - case UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case UsersPackage.USER__CONTACT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(UsersPackage.eINSTANCE.getLicenseOwner_Contact(), - UsersFactory.eINSTANCE.createContact())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UsersEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserOriginItemProvider.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserOriginItemProvider.java deleted file mode 100644 index bc73d5892..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UserOriginItemProvider.java +++ /dev/null @@ -1,259 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit.providers; - -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.notify.AdapterFactory; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.util.ResourceLocator; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; -import org.eclipse.emf.edit.provider.ItemProviderAdapter; -import org.eclipse.emf.edit.provider.ViewerNotification; -import org.eclipse.passage.lic.users.edit.UsersEditPlugin; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * This is the item provider adapter for a {@link org.eclipse.passage.lic.users.model.api.UserOrigin} object. - * - * - * @generated - */ -public class UserOriginItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, - IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public UserOriginItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); - - addIdentifierPropertyDescriptor(object); - addNamePropertyDescriptor(object); - addDescriptionPropertyDescriptor(object); - addUsersPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Identifier feature. - * - * - * @generated - */ - protected void addIdentifierPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserOrigin_identifier_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserOrigin_identifier_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserOrigin_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserOrigin_Identifier(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Name feature. - * - * - * @generated - */ - protected void addNamePropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserOrigin_name_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserOrigin_name_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserOrigin_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserOrigin_Name(), true, false, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Description feature. - * - * - * @generated - */ - protected void addDescriptionPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserOrigin_description_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserOrigin_description_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserOrigin_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserOrigin_Description(), true, true, false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Users feature. - * - * - * @generated - */ - protected void addUsersPropertyDescriptor(Object object) { - itemPropertyDescriptors - .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), - getResourceLocator(), getString("_UI_UserOrigin_users_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_UserOrigin_users_feature", //$NON-NLS-1$//$NON-NLS-2$ - "_UI_UserOrigin_type"), //$NON-NLS-1$ - UsersPackage.eINSTANCE.getUserOrigin_Users(), true, false, true, null, null, null)); - } - - /** - * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an - * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or - * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. - * - * - * @generated - */ - @Override - public Collection getChildrenFeatures(Object object) { - if (childrenFeatures == null) { - super.getChildrenFeatures(object); - childrenFeatures.add(UsersPackage.eINSTANCE.getUserOrigin_Users()); - childrenFeatures.add(UsersPackage.eINSTANCE.getUserOrigin_Groups()); - } - return childrenFeatures; - } - - /** - * - * - * @generated - */ - @Override - protected EStructuralFeature getChildFeature(Object object, Object child) { - // Check the type of the specified child object and return the proper feature to - // use for - // adding (see {@link AddCommand}) it as a child. - - return super.getChildFeature(object, child); - } - - /** - * This returns user.png - * - * - * @generated NOT - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/user.png")); //$NON-NLS-1$ - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((UserOrigin) object).getName(); - return label == null || label.length() == 0 ? getString("_UI_UserOrigin_type") : //$NON-NLS-1$ - getString("_UI_UserOrigin_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * This handles model notifications by calling {@link #updateChildren} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) { - updateChildren(notification); - - switch (notification.getFeatureID(UserOrigin.class)) { - case UsersPackage.USER_ORIGIN__IDENTIFIER: - case UsersPackage.USER_ORIGIN__NAME: - case UsersPackage.USER_ORIGIN__DESCRIPTION: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - case UsersPackage.USER_ORIGIN__USERS: - case UsersPackage.USER_ORIGIN__GROUPS: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); - return; - default: - super.notifyChanged(notification); - return; - } - } - - /** - * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children - * that can be created under this object. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - - newChildDescriptors.add(createChildParameter(UsersPackage.eINSTANCE.getUserOrigin_Users(), - UsersFactory.eINSTANCE.createUser())); - - newChildDescriptors.add(createChildParameter(UsersPackage.eINSTANCE.getUserOrigin_Groups(), - UsersFactory.eINSTANCE.createUserGroup())); - } - - /** - * Return the resource locator for this item provider's resources. - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() { - return UsersEditPlugin.INSTANCE; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UsersItemProviderAdapterFactory.java b/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UsersItemProviderAdapterFactory.java deleted file mode 100644 index 36ef9c42a..000000000 --- a/bundles/org.eclipse.passage.lic.users.edit/src-gen/org/eclipse/passage/lic/users/edit/providers/UsersItemProviderAdapterFactory.java +++ /dev/null @@ -1,294 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.edit.providers; - -import java.util.ArrayList; -import java.util.Collection; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.edit.provider.ChangeNotifier; -import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; -import org.eclipse.emf.edit.provider.ComposedAdapterFactory; -import org.eclipse.emf.edit.provider.IChangeNotifier; -import org.eclipse.emf.edit.provider.IDisposable; -import org.eclipse.emf.edit.provider.IEditingDomainItemProvider; -import org.eclipse.emf.edit.provider.IItemLabelProvider; -import org.eclipse.emf.edit.provider.IItemPropertySource; -import org.eclipse.emf.edit.provider.INotifyChangedListener; -import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; -import org.eclipse.emf.edit.provider.ITreeItemContentProvider; -import org.eclipse.passage.lic.users.model.util.UsersAdapterFactory; - -/** - * This is the factory that is used to provide the interfaces needed to support Viewers. - * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. - * The adapters also support Eclipse property sheets. - * Note that most of the adapters are shared among multiple instances. - * - * - * @generated - */ -public class UsersItemProviderAdapterFactory extends UsersAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public UsersItemProviderAdapterFactory() { - supportedTypes.add(IEditingDomainItemProvider.class); - supportedTypes.add(IStructuredItemContentProvider.class); - supportedTypes.add(ITreeItemContentProvider.class); - supportedTypes.add(IItemLabelProvider.class); - supportedTypes.add(IItemPropertySource.class); - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.users.model.api.Contact} instances. - * - * - * @since 2.0 - * @generated - */ - protected ContactItemProvider contactItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.users.model.api.Contact}. - * - * - * @since 2.0 - * @generated - */ - @Override - public Adapter createContactAdapter() { - if (contactItemProvider == null) { - contactItemProvider = new ContactItemProvider(this); - } - - return contactItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.users.model.api.User} instances. - * - * - * @generated - */ - protected UserItemProvider userItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.users.model.api.User}. - * - * - * @generated - */ - @Override - public Adapter createUserAdapter() { - if (userItemProvider == null) { - userItemProvider = new UserItemProvider(this); - } - - return userItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.users.model.api.UserGroup} instances. - * - * - * @since 2.0 - * @generated - */ - protected UserGroupItemProvider userGroupItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.users.model.api.UserGroup}. - * - * - * @since 2.0 - * @generated - */ - @Override - public Adapter createUserGroupAdapter() { - if (userGroupItemProvider == null) { - userGroupItemProvider = new UserGroupItemProvider(this); - } - - return userGroupItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link org.eclipse.passage.lic.users.model.api.UserOrigin} instances. - * - * - * @generated - */ - protected UserOriginItemProvider userOriginItemProvider; - - /** - * This creates an adapter for a {@link org.eclipse.passage.lic.users.model.api.UserOrigin}. - * - * - * @generated - */ - @Override - public Adapter createUserOriginAdapter() { - if (userOriginItemProvider == null) { - userOriginItemProvider = new UserOriginItemProvider(this); - } - - return userOriginItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @generated - */ - @Override - public boolean isFactoryForType(Object type) { - return supportedTypes.contains(type) || super.isFactoryForType(type); - } - - /** - * This implementation substitutes the factory itself as the key for the adapter. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) { - return super.adapt(notifier, this); - } - - /** - * - * - * @generated - */ - @Override - public Object adapt(Object object, Object type) { - if (isFactoryForType(type)) { - Object adapter = super.adapt(object, type); - if (!(type instanceof Class) || (((Class) type).isInstance(adapter))) { - return adapter; - } - } - - return null; - } - - /** - * This adds a listener. - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - @Override - public void fireNotifyChanged(Notification notification) { - changeNotifier.fireNotifyChanged(notification); - - if (parentAdapterFactory != null) { - parentAdapterFactory.fireNotifyChanged(notification); - } - } - - /** - * This disposes all of the item providers created by this factory. - * - * - * @generated - */ - @Override - public void dispose() { - if (contactItemProvider != null) - contactItemProvider.dispose(); - if (userItemProvider != null) - userItemProvider.dispose(); - if (userGroupItemProvider != null) - userGroupItemProvider.dispose(); - if (userOriginItemProvider != null) - userOriginItemProvider.dispose(); - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/.classpath b/bundles/org.eclipse.passage.lic.users.model/.classpath deleted file mode 100644 index 0d579cd8d..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.model/.project b/bundles/org.eclipse.passage.lic.users.model/.project deleted file mode 100644 index b75e4fc51..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/.project +++ /dev/null @@ -1,39 +0,0 @@ - - - org.eclipse.passage.lic.users.model - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - org.eclipse.pde.ds.core.builder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - -\ diff --git a/bundles/org.eclipse.passage.lic.users.model/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.passage.lic.users.model/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.eclipse.passage.lic.users.model/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.users.model/META-INF/MANIFEST.MF deleted file mode 100644 index 523bf160b..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.users.model -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.users.model;singleton:=true -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Vendor: %providerName -Bundle-Copyright: %Bundle-Copyright -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0";x-installation:=greedy;resolution:=optional, - org.eclipse.emf.ecore;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.emf.ecore.xmi;bundle-version="0.0.0";visibility:=reexport, - org.eclipse.passage.lic.emf;bundle-version="0.0.0", - org.eclipse.passage.lic.users;bundle-version="0.0.0";visibility:=reexport -Export-Package: org.eclipse.passage.lic.internal.users.model;x-internal:=true, - org.eclipse.passage.lic.internal.users.model.util;x-internal:=true, - org.eclipse.passage.lic.users.model.api, - org.eclipse.passage.lic.users.model.impl;x-internal:=true, - org.eclipse.passage.lic.users.model.meta, - org.eclipse.passage.lic.users.model.util -Bundle-ClassPath: . -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.eclipse.passage.lic.users.model/about.html b/bundles/org.eclipse.passage.lic.users.model/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.users.model/build.properties b/bundles/org.eclipse.passage.lic.users.model/build.properties deleted file mode 100644 index 4c5385c2e..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/build.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src-gen/,\ - src/ -output.. = target/classes -bin.includes = .,\ - model/,\ - META-INF/,\ - plugin.xml,\ - plugin.properties,\ - about.html diff --git a/bundles/org.eclipse.passage.lic.users.model/model/users.genmodel b/bundles/org.eclipse.passage.lic.users.model/model/users.genmodel deleted file mode 100644 index e8cf26d54..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/model/users.genmodel +++ /dev/null @@ -1,50 +0,0 @@ - - - platform:/resource/org.eclipse.passage.lic.users.ecore/model/users.ecore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.model/plugin.properties b/bundles/org.eclipse.passage.lic.users.model/plugin.properties deleted file mode 100644 index f647687ea..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -pluginName = Passage LIC Users Model -providerName=Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/bundles/org.eclipse.passage.lic.users.model/plugin.xml b/bundles/org.eclipse.passage.lic.users.model/plugin.xml deleted file mode 100644 index 5ffce098e..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/plugin.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/Contact.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/Contact.java deleted file mode 100644 index 34c590d90..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/Contact.java +++ /dev/null @@ -1,152 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Contact'. - * - * - * - * @since 2.0 - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.api.Contact#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.Contact#getTitle Title}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.Contact#getPosition Position}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.Contact#getEmail Email}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.Contact#getAddress Address}
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact() - * @model - * @generated - */ -public interface Contact extends EObject { - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact_Name() - * @model required="true" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.Contact#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Title' attribute. - * - * - * @return the value of the 'Title' attribute. - * @see #setTitle(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact_Title() - * @model - * @generated - */ - String getTitle(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.Contact#getTitle Title}' attribute. - * - * - * @param value the new value of the 'Title' attribute. - * @see #getTitle() - * @generated - */ - void setTitle(String value); - - /** - * Returns the value of the 'Position' attribute. - * - * - * @return the value of the 'Position' attribute. - * @see #setPosition(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact_Position() - * @model - * @generated - */ - String getPosition(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.Contact#getPosition Position}' attribute. - * - * - * @param value the new value of the 'Position' attribute. - * @see #getPosition() - * @generated - */ - void setPosition(String value); - - /** - * Returns the value of the 'Email' attribute. - * - * - * @return the value of the 'Email' attribute. - * @see #setEmail(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact_Email() - * @model required="true" - * @generated - */ - String getEmail(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.Contact#getEmail Email}' attribute. - * - * - * @param value the new value of the 'Email' attribute. - * @see #getEmail() - * @generated - */ - void setEmail(String value); - - /** - * Returns the value of the 'Address' attribute. - * - * - * @return the value of the 'Address' attribute. - * @see #setAddress(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getContact_Address() - * @model - * @generated - */ - String getAddress(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.Contact#getAddress Address}' attribute. - * - * - * @param value the new value of the 'Address' attribute. - * @see #getAddress() - * @generated - */ - void setAddress(String value); - -} // Contact diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/LicenseOwner.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/LicenseOwner.java deleted file mode 100644 index 7ac8057f0..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/LicenseOwner.java +++ /dev/null @@ -1,137 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.api; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'License Owner'. - * - * - * - * @since 2.0 - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getContact Contact}
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getLicenseOwner() - * @model interface="true" abstract="true" - * @generated - */ -public interface LicenseOwner extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getLicenseOwner_Identifier() - * @model - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * - * @since 2.0 - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getLicenseOwner_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @since 2.0 - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getLicenseOwner_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Contact' containment reference. - * - * - * - * @since 2.0 - * - * @return the value of the 'Contact' containment reference. - * @see #setContact(Contact) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getLicenseOwner_Contact() - * @model containment="true" required="true" - * @generated - */ - Contact getContact(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getContact Contact}' containment reference. - * - * - * @param value the new value of the 'Contact' containment reference. - * @see #getContact() - * @since 2.0 - * @generated - */ - void setContact(Contact value); - -} // LicenseOwner diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/User.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/User.java deleted file mode 100644 index 4c2c646e0..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/User.java +++ /dev/null @@ -1,114 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.api; - -/** - * - * A representation of the model object 'User'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationType Preferred Evaluation Type}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationExpression Preferred Evaluation Expression}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.User#getOrigin Origin}
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUser() - * @model - * @generated - */ -public interface User extends LicenseOwner { - /** - * Returns the value of the 'Preferred Evaluation Type' attribute. - * - * - * - * @since 2.0 - * - * @return the value of the 'Preferred Evaluation Type' attribute. - * @see #setPreferredEvaluationType(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUser_PreferredEvaluationType() - * @model - * @generated - */ - String getPreferredEvaluationType(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationType Preferred Evaluation Type}' attribute. - * - * - * @param value the new value of the 'Preferred Evaluation Type' attribute. - * @see #getPreferredEvaluationType() - * @since 2.0 - * @generated - */ - void setPreferredEvaluationType(String value); - - /** - * Returns the value of the 'Preferred Evaluation Expression' attribute. - * - * - * - * @since 2.0 - * - * @return the value of the 'Preferred Evaluation Expression' attribute. - * @see #setPreferredEvaluationExpression(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUser_PreferredEvaluationExpression() - * @model - * @generated - */ - String getPreferredEvaluationExpression(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationExpression Preferred Evaluation Expression}' attribute. - * - * - * @param value the new value of the 'Preferred Evaluation Expression' attribute. - * @see #getPreferredEvaluationExpression() - * @since 2.0 - * @generated - */ - void setPreferredEvaluationExpression(String value); - - /** - * Returns the value of the 'Origin' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getUsers Users}'. - * - * - * - * @since 2.0 - * - * @return the value of the 'Origin' container reference. - * @see #setOrigin(UserOrigin) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUser_Origin() - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getUsers - * @model opposite="users" required="true" transient="false" - * @generated - */ - UserOrigin getOrigin(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.User#getOrigin Origin}' container reference. - * - * - * @param value the new value of the 'Origin' container reference. - * @see #getOrigin() - * @since 2.0 - * @generated - */ - void setOrigin(UserOrigin value); - -} // User diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserGroup.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserGroup.java deleted file mode 100644 index 5d03efeb9..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserGroup.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.api; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'User Group'. - * - * - * - * @since 2.0 - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.api.UserGroup#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin Origin}
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserGroup() - * @model - * @generated - */ -public interface UserGroup extends LicenseOwner { - /** - * Returns the value of the 'Users' reference list. - * The list contents are of type {@link org.eclipse.passage.lic.users.model.api.User}. - * - * - * @return the value of the 'Users' reference list. - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserGroup_Users() - * @model - * @generated - */ - EList getUsers(); - - /** - * Returns the value of the 'Origin' container reference. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getGroups Groups}'. - * - * - * @return the value of the 'Origin' container reference. - * @see #setOrigin(UserOrigin) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserGroup_Origin() - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getGroups - * @model opposite="groups" required="true" transient="false" - * @generated - */ - UserOrigin getOrigin(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin Origin}' container reference. - * - * - * @param value the new value of the 'Origin' container reference. - * @see #getOrigin() - * @generated - */ - void setOrigin(UserOrigin value); - -} // UserGroup diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserOrigin.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserOrigin.java deleted file mode 100644 index 5a2d8e189..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/api/UserOrigin.java +++ /dev/null @@ -1,136 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.api; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'User Origin'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.api.UserOrigin#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.UserOrigin#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.UserOrigin#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.UserOrigin#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.users.model.api.UserOrigin#getGroups Groups}
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin() - * @model - * @generated - */ -public interface UserOrigin extends EObject { - /** - * Returns the value of the 'Identifier' attribute. - * - * - * @return the value of the 'Identifier' attribute. - * @see #setIdentifier(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin_Identifier() - * @model required="true" - * @generated - */ - String getIdentifier(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getIdentifier Identifier}' attribute. - * - * - * @param value the new value of the 'Identifier' attribute. - * @see #getIdentifier() - * @generated - */ - void setIdentifier(String value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin_Description() - * @model required="true" - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Users' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.users.model.api.User}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.users.model.api.User#getOrigin Origin}'. - * - * - * @return the value of the 'Users' containment reference list. - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin_Users() - * @see org.eclipse.passage.lic.users.model.api.User#getOrigin - * @model opposite="origin" containment="true" - * @generated - */ - EList getUsers(); - - /** - * Returns the value of the 'Groups' containment reference list. - * The list contents are of type {@link org.eclipse.passage.lic.users.model.api.UserGroup}. - * It is bidirectional and its opposite is '{@link org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin Origin}'. - * - * - * - * @since 2.0 - * - * @return the value of the 'Groups' containment reference list. - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#getUserOrigin_Groups() - * @see org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin - * @model opposite="origin" containment="true" - * @generated - */ - EList getGroups(); - -} // UserOrigin diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/ContactImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/ContactImpl.java deleted file mode 100644 index de126f9b9..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/ContactImpl.java +++ /dev/null @@ -1,412 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -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.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model object 'Contact'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.impl.ContactImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.ContactImpl#getTitle Title}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.ContactImpl#getPosition Position}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.ContactImpl#getEmail Email}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.ContactImpl#getAddress Address}
  • - *
- * - * @since 2.0 - * @generated - */ -public class ContactImpl extends MinimalEObjectImpl.Container implements Contact { - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getTitle() Title}' attribute. - * - * - * @see #getTitle() - * @generated - * @ordered - */ - protected static final String TITLE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getTitle() Title}' attribute. - * - * - * @see #getTitle() - * @generated - * @ordered - */ - private String title = TITLE_EDEFAULT; - - /** - * The default value of the '{@link #getPosition() Position}' attribute. - * - * - * @see #getPosition() - * @generated - * @ordered - */ - protected static final String POSITION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPosition() Position}' attribute. - * - * - * @see #getPosition() - * @generated - * @ordered - */ - private String position = POSITION_EDEFAULT; - - /** - * The default value of the '{@link #getEmail() Email}' attribute. - * - * - * @see #getEmail() - * @generated - * @ordered - */ - protected static final String EMAIL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getEmail() Email}' attribute. - * - * - * @see #getEmail() - * @generated - * @ordered - */ - private String email = EMAIL_EDEFAULT; - - /** - * The default value of the '{@link #getAddress() Address}' attribute. - * - * - * @see #getAddress() - * @generated - * @ordered - */ - protected static final String ADDRESS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAddress() Address}' attribute. - * - * - * @see #getAddress() - * @generated - * @ordered - */ - private String address = ADDRESS_EDEFAULT; - - /** - * - * - * @generated - */ - protected ContactImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return UsersPackage.eINSTANCE.getContact(); - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.CONTACT__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getTitle() { - return title; - } - - /** - * - * - * @generated - */ - @Override - public void setTitle(String newTitle) { - String oldTitle = title; - title = newTitle; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.CONTACT__TITLE, oldTitle, title)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getPosition() { - return position; - } - - /** - * - * - * @generated - */ - @Override - public void setPosition(String newPosition) { - String oldPosition = position; - position = newPosition; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.CONTACT__POSITION, oldPosition, - position)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getEmail() { - return email; - } - - /** - * - * - * @generated - */ - @Override - public void setEmail(String newEmail) { - String oldEmail = email; - email = newEmail; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.CONTACT__EMAIL, oldEmail, email)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getAddress() { - return address; - } - - /** - * - * - * @generated - */ - @Override - public void setAddress(String newAddress) { - String oldAddress = address; - address = newAddress; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.CONTACT__ADDRESS, oldAddress, address)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UsersPackage.CONTACT__NAME: - return getName(); - case UsersPackage.CONTACT__TITLE: - return getTitle(); - case UsersPackage.CONTACT__POSITION: - return getPosition(); - case UsersPackage.CONTACT__EMAIL: - return getEmail(); - case UsersPackage.CONTACT__ADDRESS: - return getAddress(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UsersPackage.CONTACT__NAME: - setName((String) newValue); - return; - case UsersPackage.CONTACT__TITLE: - setTitle((String) newValue); - return; - case UsersPackage.CONTACT__POSITION: - setPosition((String) newValue); - return; - case UsersPackage.CONTACT__EMAIL: - setEmail((String) newValue); - return; - case UsersPackage.CONTACT__ADDRESS: - setAddress((String) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case UsersPackage.CONTACT__NAME: - setName(NAME_EDEFAULT); - return; - case UsersPackage.CONTACT__TITLE: - setTitle(TITLE_EDEFAULT); - return; - case UsersPackage.CONTACT__POSITION: - setPosition(POSITION_EDEFAULT); - return; - case UsersPackage.CONTACT__EMAIL: - setEmail(EMAIL_EDEFAULT); - return; - case UsersPackage.CONTACT__ADDRESS: - setAddress(ADDRESS_EDEFAULT); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case UsersPackage.CONTACT__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case UsersPackage.CONTACT__TITLE: - return !Objects.equals(TITLE_EDEFAULT, title); - case UsersPackage.CONTACT__POSITION: - return !Objects.equals(POSITION_EDEFAULT, position); - case UsersPackage.CONTACT__EMAIL: - return !Objects.equals(EMAIL_EDEFAULT, email); - case UsersPackage.CONTACT__ADDRESS: - return !Objects.equals(ADDRESS_EDEFAULT, address); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); //$NON-NLS-1$ - result.append(name); - result.append(", title: "); //$NON-NLS-1$ - result.append(title); - result.append(", position: "); //$NON-NLS-1$ - result.append(position); - result.append(", email: "); //$NON-NLS-1$ - result.append(email); - result.append(", address: "); //$NON-NLS-1$ - result.append(address); - result.append(')'); - return result.toString(); - } - -} // ContactImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserGroupImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserGroupImpl.java deleted file mode 100644 index 1f082d6e3..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserGroupImpl.java +++ /dev/null @@ -1,538 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model object 'User Group'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getContact Contact}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl#getOrigin Origin}
  • - *
- * - * @since 2.0 - * @generated - */ -public class UserGroupImpl extends MinimalEObjectImpl.Container implements UserGroup { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @since 2.0 - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @since 2.0 - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getContact() Contact}' containment reference. - * - * - * @see #getContact() - * @since 2.0 - * @generated - * @ordered - */ - protected Contact contact; - - /** - * The cached value of the '{@link #getUsers() Users}' reference list. - * - * - * @see #getUsers() - * @generated - * @ordered - */ - protected EList users; - - /** - * - * - * @generated - */ - protected UserGroupImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return UsersPackage.eINSTANCE.getUserGroup(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_GROUP__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_GROUP__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_GROUP__DESCRIPTION, oldDescription, - description)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public Contact getContact() { - return contact; - } - - /** - * - * - * @since 2.0 - * @generated - */ - public NotificationChain basicSetContact(Contact newContact, NotificationChain msgs) { - Contact oldContact = contact; - contact = newContact; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, - UsersPackage.USER_GROUP__CONTACT, oldContact, newContact); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setContact(Contact newContact) { - if (newContact != contact) { - NotificationChain msgs = null; - if (contact != null) - msgs = ((InternalEObject) contact).eInverseRemove(this, - EOPPOSITE_FEATURE_BASE - UsersPackage.USER_GROUP__CONTACT, null, msgs); - if (newContact != null) - msgs = ((InternalEObject) newContact).eInverseAdd(this, - EOPPOSITE_FEATURE_BASE - UsersPackage.USER_GROUP__CONTACT, null, msgs); - msgs = basicSetContact(newContact, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_GROUP__CONTACT, newContact, - newContact)); - } - } - - /** - * - * - * @generated - */ - @Override - public EList getUsers() { - if (users == null) { - users = new EObjectResolvingEList(User.class, this, UsersPackage.USER_GROUP__USERS); - } - return users; - } - - /** - * - * - * @generated - */ - @Override - public UserOrigin getOrigin() { - if (eContainerFeatureID() != UsersPackage.USER_GROUP__ORIGIN) { - return null; - } - return (UserOrigin) eInternalContainer(); - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetOrigin(UserOrigin newOrigin, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newOrigin, UsersPackage.USER_GROUP__ORIGIN, msgs); - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setOrigin(UserOrigin newOrigin) { - if (newOrigin != eInternalContainer() - || (eContainerFeatureID() != UsersPackage.USER_GROUP__ORIGIN && newOrigin != null)) { - if (EcoreUtil.isAncestor(this, newOrigin)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newOrigin != null) - msgs = ((InternalEObject) newOrigin).eInverseAdd(this, UsersPackage.USER_ORIGIN__GROUPS, - UserOrigin.class, msgs); - msgs = basicSetOrigin(newOrigin, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_GROUP__ORIGIN, newOrigin, - newOrigin)); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER_GROUP__ORIGIN: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetOrigin((UserOrigin) otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER_GROUP__CONTACT: - return basicSetContact(null, msgs); - case UsersPackage.USER_GROUP__ORIGIN: - return basicSetOrigin(null, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case UsersPackage.USER_GROUP__ORIGIN: - return eInternalContainer().eInverseRemove(this, UsersPackage.USER_ORIGIN__GROUPS, UserOrigin.class, msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UsersPackage.USER_GROUP__IDENTIFIER: - return getIdentifier(); - case UsersPackage.USER_GROUP__NAME: - return getName(); - case UsersPackage.USER_GROUP__DESCRIPTION: - return getDescription(); - case UsersPackage.USER_GROUP__CONTACT: - return getContact(); - case UsersPackage.USER_GROUP__USERS: - return getUsers(); - case UsersPackage.USER_GROUP__ORIGIN: - return getOrigin(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UsersPackage.USER_GROUP__IDENTIFIER: - setIdentifier((String) newValue); - return; - case UsersPackage.USER_GROUP__NAME: - setName((String) newValue); - return; - case UsersPackage.USER_GROUP__DESCRIPTION: - setDescription((String) newValue); - return; - case UsersPackage.USER_GROUP__CONTACT: - setContact((Contact) newValue); - return; - case UsersPackage.USER_GROUP__USERS: - getUsers().clear(); - getUsers().addAll((Collection) newValue); - return; - case UsersPackage.USER_GROUP__ORIGIN: - setOrigin((UserOrigin) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case UsersPackage.USER_GROUP__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case UsersPackage.USER_GROUP__NAME: - setName(NAME_EDEFAULT); - return; - case UsersPackage.USER_GROUP__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case UsersPackage.USER_GROUP__CONTACT: - setContact((Contact) null); - return; - case UsersPackage.USER_GROUP__USERS: - getUsers().clear(); - return; - case UsersPackage.USER_GROUP__ORIGIN: - setOrigin((UserOrigin) null); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case UsersPackage.USER_GROUP__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case UsersPackage.USER_GROUP__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case UsersPackage.USER_GROUP__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case UsersPackage.USER_GROUP__CONTACT: - return contact != null; - case UsersPackage.USER_GROUP__USERS: - return users != null && !users.isEmpty(); - case UsersPackage.USER_GROUP__ORIGIN: - return getOrigin() != null; - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // UserGroupImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserImpl.java deleted file mode 100644 index f05c42ac8..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserImpl.java +++ /dev/null @@ -1,622 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -import java.util.Objects; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -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.EcoreUtil; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model object 'User'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getContact Contact}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getPreferredEvaluationType Preferred Evaluation Type}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getPreferredEvaluationExpression Preferred Evaluation Expression}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserImpl#getOrigin Origin}
  • - *
- * - * @generated - */ -public class UserImpl extends MinimalEObjectImpl.Container implements User { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @since 2.0 - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @since 2.0 - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getContact() Contact}' containment reference. - * - * - * @see #getContact() - * @since 2.0 - * @generated - * @ordered - */ - protected Contact contact; - - /** - * The default value of the '{@link #getPreferredEvaluationType() Preferred Evaluation Type}' attribute. - * - * - * @see #getPreferredEvaluationType() - * @since 2.0 - * @generated - * @ordered - */ - protected static final String PREFERRED_EVALUATION_TYPE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPreferredEvaluationType() Preferred Evaluation Type}' attribute. - * - * - * @see #getPreferredEvaluationType() - * @since 2.0 - * @generated - * @ordered - */ - private String preferredEvaluationType = PREFERRED_EVALUATION_TYPE_EDEFAULT; - - /** - * The default value of the '{@link #getPreferredEvaluationExpression() Preferred Evaluation Expression}' attribute. - * - * - * @see #getPreferredEvaluationExpression() - * @since 2.0 - * @generated - * @ordered - */ - protected static final String PREFERRED_EVALUATION_EXPRESSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPreferredEvaluationExpression() Preferred Evaluation Expression}' attribute. - * - * - * @see #getPreferredEvaluationExpression() - * @since 2.0 - * @generated - * @ordered - */ - private String preferredEvaluationExpression = PREFERRED_EVALUATION_EXPRESSION_EDEFAULT; - - /** - * - * - * @generated - */ - protected UserImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return UsersPackage.eINSTANCE.getUser(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__DESCRIPTION, oldDescription, - description)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public Contact getContact() { - return contact; - } - - /** - * - * - * @since 2.0 - * @generated - */ - public NotificationChain basicSetContact(Contact newContact, NotificationChain msgs) { - Contact oldContact = contact; - contact = newContact; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UsersPackage.USER__CONTACT, - oldContact, newContact); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setContact(Contact newContact) { - if (newContact != contact) { - NotificationChain msgs = null; - if (contact != null) - msgs = ((InternalEObject) contact).eInverseRemove(this, - EOPPOSITE_FEATURE_BASE - UsersPackage.USER__CONTACT, null, msgs); - if (newContact != null) - msgs = ((InternalEObject) newContact).eInverseAdd(this, - EOPPOSITE_FEATURE_BASE - UsersPackage.USER__CONTACT, null, msgs); - msgs = basicSetContact(newContact, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__CONTACT, newContact, newContact)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public String getPreferredEvaluationType() { - return preferredEvaluationType; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setPreferredEvaluationType(String newPreferredEvaluationType) { - String oldPreferredEvaluationType = preferredEvaluationType; - preferredEvaluationType = newPreferredEvaluationType; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__PREFERRED_EVALUATION_TYPE, - oldPreferredEvaluationType, preferredEvaluationType)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public String getPreferredEvaluationExpression() { - return preferredEvaluationExpression; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setPreferredEvaluationExpression(String newPreferredEvaluationExpression) { - String oldPreferredEvaluationExpression = preferredEvaluationExpression; - preferredEvaluationExpression = newPreferredEvaluationExpression; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION, - oldPreferredEvaluationExpression, preferredEvaluationExpression)); - } - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public UserOrigin getOrigin() { - if (eContainerFeatureID() != UsersPackage.USER__ORIGIN) { - return null; - } - return (UserOrigin) eInternalContainer(); - } - - /** - * - * - * @since 2.0 - * @generated - */ - public NotificationChain basicSetOrigin(UserOrigin newOrigin, NotificationChain msgs) { - msgs = eBasicSetContainer((InternalEObject) newOrigin, UsersPackage.USER__ORIGIN, msgs); - return msgs; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public void setOrigin(UserOrigin newOrigin) { - if (newOrigin != eInternalContainer() - || (eContainerFeatureID() != UsersPackage.USER__ORIGIN && newOrigin != null)) { - if (EcoreUtil.isAncestor(this, newOrigin)) { - throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); //$NON-NLS-1$ - } - NotificationChain msgs = null; - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - if (newOrigin != null) - msgs = ((InternalEObject) newOrigin).eInverseAdd(this, UsersPackage.USER_ORIGIN__USERS, - UserOrigin.class, msgs); - msgs = basicSetOrigin(newOrigin, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER__ORIGIN, newOrigin, newOrigin)); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER__ORIGIN: - if (eInternalContainer() != null) { - msgs = eBasicRemoveFromContainer(msgs); - } - return basicSetOrigin((UserOrigin) otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER__CONTACT: - return basicSetContact(null, msgs); - case UsersPackage.USER__ORIGIN: - return basicSetOrigin(null, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { - switch (eContainerFeatureID()) { - case UsersPackage.USER__ORIGIN: - return eInternalContainer().eInverseRemove(this, UsersPackage.USER_ORIGIN__USERS, UserOrigin.class, msgs); - default: - return super.eBasicRemoveFromContainerFeature(msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UsersPackage.USER__IDENTIFIER: - return getIdentifier(); - case UsersPackage.USER__NAME: - return getName(); - case UsersPackage.USER__DESCRIPTION: - return getDescription(); - case UsersPackage.USER__CONTACT: - return getContact(); - case UsersPackage.USER__PREFERRED_EVALUATION_TYPE: - return getPreferredEvaluationType(); - case UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION: - return getPreferredEvaluationExpression(); - case UsersPackage.USER__ORIGIN: - return getOrigin(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UsersPackage.USER__IDENTIFIER: - setIdentifier((String) newValue); - return; - case UsersPackage.USER__NAME: - setName((String) newValue); - return; - case UsersPackage.USER__DESCRIPTION: - setDescription((String) newValue); - return; - case UsersPackage.USER__CONTACT: - setContact((Contact) newValue); - return; - case UsersPackage.USER__PREFERRED_EVALUATION_TYPE: - setPreferredEvaluationType((String) newValue); - return; - case UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION: - setPreferredEvaluationExpression((String) newValue); - return; - case UsersPackage.USER__ORIGIN: - setOrigin((UserOrigin) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case UsersPackage.USER__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case UsersPackage.USER__NAME: - setName(NAME_EDEFAULT); - return; - case UsersPackage.USER__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case UsersPackage.USER__CONTACT: - setContact((Contact) null); - return; - case UsersPackage.USER__PREFERRED_EVALUATION_TYPE: - setPreferredEvaluationType(PREFERRED_EVALUATION_TYPE_EDEFAULT); - return; - case UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION: - setPreferredEvaluationExpression(PREFERRED_EVALUATION_EXPRESSION_EDEFAULT); - return; - case UsersPackage.USER__ORIGIN: - setOrigin((UserOrigin) null); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case UsersPackage.USER__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case UsersPackage.USER__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case UsersPackage.USER__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case UsersPackage.USER__CONTACT: - return contact != null; - case UsersPackage.USER__PREFERRED_EVALUATION_TYPE: - return !Objects.equals(PREFERRED_EVALUATION_TYPE_EDEFAULT, preferredEvaluationType); - case UsersPackage.USER__PREFERRED_EVALUATION_EXPRESSION: - return !Objects.equals(PREFERRED_EVALUATION_EXPRESSION_EDEFAULT, preferredEvaluationExpression); - case UsersPackage.USER__ORIGIN: - return getOrigin() != null; - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(", preferredEvaluationType: "); //$NON-NLS-1$ - result.append(preferredEvaluationType); - result.append(", preferredEvaluationExpression: "); //$NON-NLS-1$ - result.append(preferredEvaluationExpression); - result.append(')'); - return result.toString(); - } - -} // UserImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserOriginImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserOriginImpl.java deleted file mode 100644 index 4a61857e4..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UserOriginImpl.java +++ /dev/null @@ -1,416 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -import java.util.Collection; -import java.util.Objects; - -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.EObjectContainmentWithInverseEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model object 'User Origin'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl#getIdentifier Identifier}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl#getName Name}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl#getDescription Description}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl#getUsers Users}
  • - *
  • {@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl#getGroups Groups}
  • - *
- * - * @generated - */ -public class UserOriginImpl extends MinimalEObjectImpl.Container implements UserOrigin { - /** - * The default value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - protected static final String IDENTIFIER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIdentifier() Identifier}' attribute. - * - * - * @see #getIdentifier() - * @generated - * @ordered - */ - private String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - private String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - private String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getUsers() Users}' containment reference list. - * - * - * @see #getUsers() - * @generated - * @ordered - */ - protected EList users; - - /** - * The cached value of the '{@link #getGroups() Groups}' containment reference list. - * - * - * @see #getGroups() - * @since 2.0 - * @generated - * @ordered - */ - protected EList groups; - - /** - * - * - * @generated - */ - protected UserOriginImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return UsersPackage.eINSTANCE.getUserOrigin(); - } - - /** - * - * - * @generated - */ - @Override - public String getIdentifier() { - return identifier; - } - - /** - * - * - * @generated - */ - @Override - public void setIdentifier(String newIdentifier) { - String oldIdentifier = identifier; - identifier = newIdentifier; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_ORIGIN__IDENTIFIER, oldIdentifier, - identifier)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_ORIGIN__NAME, oldName, name)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) { - eNotify(new ENotificationImpl(this, Notification.SET, UsersPackage.USER_ORIGIN__DESCRIPTION, oldDescription, - description)); - } - } - - /** - * - * - * @generated - */ - @Override - public EList getUsers() { - if (users == null) { - users = new EObjectContainmentWithInverseEList(User.class, this, UsersPackage.USER_ORIGIN__USERS, - UsersPackage.USER__ORIGIN); - } - return users; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EList getGroups() { - if (groups == null) { - groups = new EObjectContainmentWithInverseEList(UserGroup.class, this, - UsersPackage.USER_ORIGIN__GROUPS, UsersPackage.USER_GROUP__ORIGIN); - } - return groups; - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__USERS: - return ((InternalEList) (InternalEList) getUsers()).basicAdd(otherEnd, msgs); - case UsersPackage.USER_ORIGIN__GROUPS: - return ((InternalEList) (InternalEList) getGroups()).basicAdd(otherEnd, msgs); - default: - return super.eInverseAdd(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__USERS: - return ((InternalEList) getUsers()).basicRemove(otherEnd, msgs); - case UsersPackage.USER_ORIGIN__GROUPS: - return ((InternalEList) getGroups()).basicRemove(otherEnd, msgs); - default: - return super.eInverseRemove(otherEnd, featureID, msgs); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__IDENTIFIER: - return getIdentifier(); - case UsersPackage.USER_ORIGIN__NAME: - return getName(); - case UsersPackage.USER_ORIGIN__DESCRIPTION: - return getDescription(); - case UsersPackage.USER_ORIGIN__USERS: - return getUsers(); - case UsersPackage.USER_ORIGIN__GROUPS: - return getGroups(); - default: - return super.eGet(featureID, resolve, coreType); - } - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__IDENTIFIER: - setIdentifier((String) newValue); - return; - case UsersPackage.USER_ORIGIN__NAME: - setName((String) newValue); - return; - case UsersPackage.USER_ORIGIN__DESCRIPTION: - setDescription((String) newValue); - return; - case UsersPackage.USER_ORIGIN__USERS: - getUsers().clear(); - getUsers().addAll((Collection) newValue); - return; - case UsersPackage.USER_ORIGIN__GROUPS: - getGroups().clear(); - getGroups().addAll((Collection) newValue); - return; - default: - super.eSet(featureID, newValue); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case UsersPackage.USER_ORIGIN__NAME: - setName(NAME_EDEFAULT); - return; - case UsersPackage.USER_ORIGIN__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case UsersPackage.USER_ORIGIN__USERS: - getUsers().clear(); - return; - case UsersPackage.USER_ORIGIN__GROUPS: - getGroups().clear(); - return; - default: - super.eUnset(featureID); - return; - } - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case UsersPackage.USER_ORIGIN__IDENTIFIER: - return !Objects.equals(IDENTIFIER_EDEFAULT, identifier); - case UsersPackage.USER_ORIGIN__NAME: - return !Objects.equals(NAME_EDEFAULT, name); - case UsersPackage.USER_ORIGIN__DESCRIPTION: - return !Objects.equals(DESCRIPTION_EDEFAULT, description); - case UsersPackage.USER_ORIGIN__USERS: - return users != null && !users.isEmpty(); - case UsersPackage.USER_ORIGIN__GROUPS: - return groups != null && !groups.isEmpty(); - default: - return super.eIsSet(featureID); - } - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) { - return super.toString(); - } - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (identifier: "); //$NON-NLS-1$ - result.append(identifier); - result.append(", name: "); //$NON-NLS-1$ - result.append(name); - result.append(", description: "); //$NON-NLS-1$ - result.append(description); - result.append(')'); - return result.toString(); - } - -} // UserOriginImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersFactoryImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersFactoryImpl.java deleted file mode 100644 index d45929faf..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersFactoryImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -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.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class UsersFactoryImpl extends EFactoryImpl implements UsersFactory { - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static UsersFactory init() { - try { - UsersFactory theUsersFactory = (UsersFactory) EPackage.Registry.INSTANCE.getEFactory(UsersPackage.eNS_URI); - if (theUsersFactory != null) { - return theUsersFactory; - } - } catch (Exception exception) { - EcorePlugin.INSTANCE.log(exception); - } - return new UsersFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public UsersFactoryImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) { - switch (eClass.getClassifierID()) { - case UsersPackage.CONTACT: - return createContact(); - case UsersPackage.USER: - return createUser(); - case UsersPackage.USER_GROUP: - return createUserGroup(); - case UsersPackage.USER_ORIGIN: - return createUserOrigin(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$ - } - } - - /** - * - * - * @generated - */ - @Override - public UserOrigin createUserOrigin() { - UserOriginImpl userOrigin = new UserOriginImpl(); - return userOrigin; - } - - /** - * - * - * @generated - */ - @Override - public User createUser() { - UserImpl user = new UserImpl(); - return user; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public UserGroup createUserGroup() { - UserGroupImpl userGroup = new UserGroupImpl(); - return userGroup; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public Contact createContact() { - ContactImpl contact = new ContactImpl(); - return contact; - } - - /** - * - * - * @generated - */ - @Override - public UsersPackage getUsersPackage() { - return (UsersPackage) getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static UsersPackage getPackage() { - return UsersPackage.eINSTANCE; - } - -} // UsersFactoryImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersPackageImpl.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersPackageImpl.java deleted file mode 100644 index 5d9c3c772..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/impl/UsersPackageImpl.java +++ /dev/null @@ -1,555 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.impl.EPackageImpl; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.LicenseOwner; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class UsersPackageImpl extends EPackageImpl implements UsersPackage { - /** - * - * - * @generated - */ - private EClass userOriginEClass = null; - - /** - * - * - * @generated - */ - private EClass userEClass = null; - - /** - * - * - * @since 2.0 - * @generated - */ - private EClass userGroupEClass = null; - - /** - * - * - * @since 2.0 - * @generated - */ - private EClass contactEClass = null; - - /** - * - * - * @since 2.0 - * @generated - */ - private EClass licenseOwnerEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage#eNS_URI - * @see #init() - * @generated - */ - private UsersPackageImpl() { - super(eNS_URI, UsersFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link UsersPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static UsersPackage init() { - if (isInited) - return (UsersPackage) EPackage.Registry.INSTANCE.getEPackage(UsersPackage.eNS_URI); - - // Obtain or create and register package - Object registeredUsersPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - UsersPackageImpl theUsersPackage = registeredUsersPackage instanceof UsersPackageImpl - ? (UsersPackageImpl) registeredUsersPackage - : new UsersPackageImpl(); - - isInited = true; - - // Create package meta-data objects - theUsersPackage.createPackageContents(); - - // Initialize created meta-data - theUsersPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theUsersPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(UsersPackage.eNS_URI, theUsersPackage); - return theUsersPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getUserOrigin() { - return userOriginEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getUserOrigin_Identifier() { - return (EAttribute) userOriginEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getUserOrigin_Name() { - return (EAttribute) userOriginEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getUserOrigin_Description() { - return (EAttribute) userOriginEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getUserOrigin_Users() { - return (EReference) userOriginEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EReference getUserOrigin_Groups() { - return (EReference) userOriginEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EClass getUser() { - return userEClass; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getUser_PreferredEvaluationType() { - return (EAttribute) userEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getUser_PreferredEvaluationExpression() { - return (EAttribute) userEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EReference getUser_Origin() { - return (EReference) userEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EClass getUserGroup() { - return userGroupEClass; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EReference getUserGroup_Users() { - return (EReference) userGroupEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EReference getUserGroup_Origin() { - return (EReference) userGroupEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EClass getContact() { - return contactEClass; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getContact_Name() { - return (EAttribute) contactEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getContact_Title() { - return (EAttribute) contactEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getContact_Position() { - return (EAttribute) contactEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getContact_Email() { - return (EAttribute) contactEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getContact_Address() { - return (EAttribute) contactEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EClass getLicenseOwner() { - return licenseOwnerEClass; - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getLicenseOwner_Identifier() { - return (EAttribute) licenseOwnerEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getLicenseOwner_Name() { - return (EAttribute) licenseOwnerEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EAttribute getLicenseOwner_Description() { - return (EAttribute) licenseOwnerEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @since 2.0 - * @generated - */ - @Override - public EReference getLicenseOwner_Contact() { - return (EReference) licenseOwnerEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public UsersFactory getUsersFactory() { - return (UsersFactory) getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - contactEClass = createEClass(CONTACT); - createEAttribute(contactEClass, CONTACT__NAME); - createEAttribute(contactEClass, CONTACT__TITLE); - createEAttribute(contactEClass, CONTACT__POSITION); - createEAttribute(contactEClass, CONTACT__EMAIL); - createEAttribute(contactEClass, CONTACT__ADDRESS); - - licenseOwnerEClass = createEClass(LICENSE_OWNER); - createEAttribute(licenseOwnerEClass, LICENSE_OWNER__IDENTIFIER); - createEAttribute(licenseOwnerEClass, LICENSE_OWNER__NAME); - createEAttribute(licenseOwnerEClass, LICENSE_OWNER__DESCRIPTION); - createEReference(licenseOwnerEClass, LICENSE_OWNER__CONTACT); - - userEClass = createEClass(USER); - createEAttribute(userEClass, USER__PREFERRED_EVALUATION_TYPE); - createEAttribute(userEClass, USER__PREFERRED_EVALUATION_EXPRESSION); - createEReference(userEClass, USER__ORIGIN); - - userGroupEClass = createEClass(USER_GROUP); - createEReference(userGroupEClass, USER_GROUP__USERS); - createEReference(userGroupEClass, USER_GROUP__ORIGIN); - - userOriginEClass = createEClass(USER_ORIGIN); - createEAttribute(userOriginEClass, USER_ORIGIN__IDENTIFIER); - createEAttribute(userOriginEClass, USER_ORIGIN__NAME); - createEAttribute(userOriginEClass, USER_ORIGIN__DESCRIPTION); - createEReference(userOriginEClass, USER_ORIGIN__USERS); - createEReference(userOriginEClass, USER_ORIGIN__GROUPS); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - userEClass.getESuperTypes().add(this.getLicenseOwner()); - userGroupEClass.getESuperTypes().add(this.getLicenseOwner()); - - // Initialize classes, features, and operations; add parameters - initEClass(contactEClass, Contact.class, "Contact", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getContact_Name(), ecorePackage.getEString(), "name", null, 1, 1, Contact.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContact_Title(), ecorePackage.getEString(), "title", null, 0, 1, Contact.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContact_Position(), ecorePackage.getEString(), "position", null, 0, 1, Contact.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContact_Email(), ecorePackage.getEString(), "email", null, 1, 1, Contact.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getContact_Address(), ecorePackage.getEString(), "address", null, 0, 1, Contact.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(licenseOwnerEClass, LicenseOwner.class, "LicenseOwner", IS_ABSTRACT, IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLicenseOwner_Identifier(), ecorePackage.getEString(), "identifier", null, 0, 1, //$NON-NLS-1$ - LicenseOwner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getLicenseOwner_Name(), ecorePackage.getEString(), "name", null, 0, 1, LicenseOwner.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLicenseOwner_Description(), ecorePackage.getEString(), "description", null, 0, 1, //$NON-NLS-1$ - LicenseOwner.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getLicenseOwner_Contact(), this.getContact(), null, "contact", null, 1, 1, LicenseOwner.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(userEClass, User.class, "User", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ - initEAttribute(getUser_PreferredEvaluationType(), ecorePackage.getEString(), "preferredEvaluationType", null, 0, //$NON-NLS-1$ - 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUser_PreferredEvaluationExpression(), ecorePackage.getEString(), - "preferredEvaluationExpression", null, 0, 1, User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, //$NON-NLS-1$ - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getUser_Origin(), this.getUserOrigin(), this.getUserOrigin_Users(), "origin", null, 1, 1, //$NON-NLS-1$ - User.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(userGroupEClass, UserGroup.class, "UserGroup", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEReference(getUserGroup_Users(), this.getUser(), null, "users", null, 0, -1, UserGroup.class, !IS_TRANSIENT, //$NON-NLS-1$ - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getUserGroup_Origin(), this.getUserOrigin(), this.getUserOrigin_Groups(), "origin", null, 1, 1, //$NON-NLS-1$ - UserGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(userOriginEClass, UserOrigin.class, "UserOrigin", !IS_ABSTRACT, !IS_INTERFACE, //$NON-NLS-1$ - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getUserOrigin_Identifier(), ecorePackage.getEString(), "identifier", null, 1, 1, //$NON-NLS-1$ - UserOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEAttribute(getUserOrigin_Name(), ecorePackage.getEString(), "name", null, 0, 1, UserOrigin.class, //$NON-NLS-1$ - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getUserOrigin_Description(), ecorePackage.getEString(), "description", null, 1, 1, //$NON-NLS-1$ - UserOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - initEReference(getUserOrigin_Users(), this.getUser(), this.getUser_Origin(), "users", null, 0, -1, //$NON-NLS-1$ - UserOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getUserOrigin_Groups(), this.getUserGroup(), this.getUserGroup_Origin(), "groups", null, 0, -1, //$NON-NLS-1$ - UserOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} // UsersPackageImpl diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersFactory.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersFactory.java deleted file mode 100644 index 9b4440557..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersFactory.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.meta; - -import org.eclipse.emf.ecore.EFactory; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage - * @generated - */ -public interface UsersFactory extends EFactory { - /** - * The singleton instance of the factory. - * - * - * @generated - */ - UsersFactory eINSTANCE = org.eclipse.passage.lic.users.model.impl.UsersFactoryImpl.init(); - - /** - * Returns a new object of class 'User Origin'. - * - * - * @return a new object of class 'User Origin'. - * @generated - */ - UserOrigin createUserOrigin(); - - /** - * Returns a new object of class 'User'. - * - * - * @return a new object of class 'User'. - * @generated - */ - User createUser(); - - /** - * Returns a new object of class 'User Group'. - * - * - * @return a new object of class 'User Group'. - * @since 2.0 - * @generated - */ - UserGroup createUserGroup(); - - /** - * Returns a new object of class 'Contact'. - * - * - * @return a new object of class 'Contact'. - * @since 2.0 - * @generated - */ - Contact createContact(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - UsersPackage getUsersPackage(); - -} // UsersFactory diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersPackage.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersPackage.java deleted file mode 100644 index 6b4df1930..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/meta/UsersPackage.java +++ /dev/null @@ -1,770 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.meta; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *

    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each operation of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.passage.lic.users.model.meta.UsersFactory - * @model kind="package" - * @generated - */ -public interface UsersPackage extends EPackage { - /** - * The package name. - * - * - * @generated - */ - String eNAME = "users"; //$NON-NLS-1$ - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/passage/lic/users/3.0.0"; //$NON-NLS-1$ - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "org.eclipse.passage.lic"; //$NON-NLS-1$ - - /** - * The singleton instance of the package. - * - * - * @generated - */ - UsersPackage eINSTANCE = org.eclipse.passage.lic.users.model.impl.UsersPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.users.model.impl.UserOriginImpl User Origin}' class. - * - * - * @see org.eclipse.passage.lic.users.model.impl.UserOriginImpl - * @see org.eclipse.passage.lic.users.model.impl.UsersPackageImpl#getUserOrigin() - * @generated - */ - int USER_ORIGIN = 4; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.users.model.impl.UserImpl User}' class. - * - * - * @see org.eclipse.passage.lic.users.model.impl.UserImpl - * @see org.eclipse.passage.lic.users.model.impl.UsersPackageImpl#getUser() - * @generated - */ - int USER = 2; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.users.model.impl.UserGroupImpl User Group}' class. - * - * - * @see org.eclipse.passage.lic.users.model.impl.UserGroupImpl - * @see org.eclipse.passage.lic.users.model.impl.UsersPackageImpl#getUserGroup() - * @since 2.0 - * @generated - */ - int USER_GROUP = 3; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.users.model.impl.ContactImpl Contact}' class. - * - * - * @see org.eclipse.passage.lic.users.model.impl.ContactImpl - * @see org.eclipse.passage.lic.users.model.impl.UsersPackageImpl#getContact() - * @since 2.0 - * @generated - */ - int CONTACT = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT__NAME = 0; - - /** - * The feature id for the 'Title' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT__TITLE = 1; - - /** - * The feature id for the 'Position' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT__POSITION = 2; - - /** - * The feature id for the 'Email' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT__EMAIL = 3; - - /** - * The feature id for the 'Address' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT__ADDRESS = 4; - - /** - * The number of structural features of the 'Contact' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT_FEATURE_COUNT = 5; - - /** - * The number of operations of the 'Contact' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int CONTACT_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner License Owner}' class. - * - * - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner - * @see org.eclipse.passage.lic.users.model.impl.UsersPackageImpl#getLicenseOwner() - * @since 2.0 - * @generated - */ - int LICENSE_OWNER = 1; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER__DESCRIPTION = 2; - - /** - * The feature id for the 'Contact' containment reference. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER__CONTACT = 3; - - /** - * The number of structural features of the 'License Owner' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER_FEATURE_COUNT = 4; - - /** - * The number of operations of the 'License Owner' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int LICENSE_OWNER_OPERATION_COUNT = 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__IDENTIFIER = LICENSE_OWNER__IDENTIFIER; - - /** - * The feature id for the 'Name' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__NAME = LICENSE_OWNER__NAME; - - /** - * The feature id for the 'Description' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__DESCRIPTION = LICENSE_OWNER__DESCRIPTION; - - /** - * The feature id for the 'Contact' containment reference. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__CONTACT = LICENSE_OWNER__CONTACT; - - /** - * The feature id for the 'Preferred Evaluation Type' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__PREFERRED_EVALUATION_TYPE = LICENSE_OWNER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Preferred Evaluation Expression' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__PREFERRED_EVALUATION_EXPRESSION = LICENSE_OWNER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Origin' container reference. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER__ORIGIN = LICENSE_OWNER_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'User' class. - * - * - * @generated - * @ordered - */ - int USER_FEATURE_COUNT = LICENSE_OWNER_FEATURE_COUNT + 3; - - /** - * The number of operations of the 'User' class. - * - * - * @generated - * @ordered - */ - int USER_OPERATION_COUNT = LICENSE_OWNER_OPERATION_COUNT + 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__IDENTIFIER = LICENSE_OWNER__IDENTIFIER; - - /** - * The feature id for the 'Name' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__NAME = LICENSE_OWNER__NAME; - - /** - * The feature id for the 'Description' attribute. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__DESCRIPTION = LICENSE_OWNER__DESCRIPTION; - - /** - * The feature id for the 'Contact' containment reference. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__CONTACT = LICENSE_OWNER__CONTACT; - - /** - * The feature id for the 'Users' reference list. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__USERS = LICENSE_OWNER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Origin' container reference. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP__ORIGIN = LICENSE_OWNER_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'User Group' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP_FEATURE_COUNT = LICENSE_OWNER_FEATURE_COUNT + 2; - - /** - * The number of operations of the 'User Group' class. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_GROUP_OPERATION_COUNT = LICENSE_OWNER_OPERATION_COUNT + 0; - - /** - * The feature id for the 'Identifier' attribute. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN__IDENTIFIER = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN__NAME = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN__DESCRIPTION = 2; - - /** - * The feature id for the 'Users' containment reference list. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN__USERS = 3; - - /** - * The feature id for the 'Groups' containment reference list. - * - * - * @since 2.0 - * @generated - * @ordered - */ - int USER_ORIGIN__GROUPS = 4; - - /** - * The number of structural features of the 'User Origin' class. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN_FEATURE_COUNT = 5; - - /** - * The number of operations of the 'User Origin' class. - * - * - * @generated - * @ordered - */ - int USER_ORIGIN_OPERATION_COUNT = 0; - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.users.model.api.UserOrigin User Origin}'. - * - * - * @return the meta object for class 'User Origin'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin - * @generated - */ - EClass getUserOrigin(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getIdentifier() - * @see #getUserOrigin() - * @generated - */ - EAttribute getUserOrigin_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getName() - * @see #getUserOrigin() - * @generated - */ - EAttribute getUserOrigin_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getDescription() - * @see #getUserOrigin() - * @generated - */ - EAttribute getUserOrigin_Description(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getUsers Users}'. - * - * - * @return the meta object for the containment reference list 'Users'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getUsers() - * @see #getUserOrigin() - * @generated - */ - EReference getUserOrigin_Users(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.passage.lic.users.model.api.UserOrigin#getGroups Groups}'. - * - * - * @return the meta object for the containment reference list 'Groups'. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin#getGroups() - * @see #getUserOrigin() - * @since 2.0 - * @generated - */ - EReference getUserOrigin_Groups(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.users.model.api.User User}'. - * - * - * @return the meta object for class 'User'. - * @see org.eclipse.passage.lic.users.model.api.User - * @generated - */ - EClass getUser(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationType Preferred Evaluation Type}'. - * - * - * @return the meta object for the attribute 'Preferred Evaluation Type'. - * @see org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationType() - * @see #getUser() - * @since 2.0 - * @generated - */ - EAttribute getUser_PreferredEvaluationType(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationExpression Preferred Evaluation Expression}'. - * - * - * @return the meta object for the attribute 'Preferred Evaluation Expression'. - * @see org.eclipse.passage.lic.users.model.api.User#getPreferredEvaluationExpression() - * @see #getUser() - * @since 2.0 - * @generated - */ - EAttribute getUser_PreferredEvaluationExpression(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.users.model.api.User#getOrigin Origin}'. - * - * - * @return the meta object for the container reference 'Origin'. - * @see org.eclipse.passage.lic.users.model.api.User#getOrigin() - * @see #getUser() - * @since 2.0 - * @generated - */ - EReference getUser_Origin(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.users.model.api.UserGroup User Group}'. - * - * - * @return the meta object for class 'User Group'. - * @see org.eclipse.passage.lic.users.model.api.UserGroup - * @since 2.0 - * @generated - */ - EClass getUserGroup(); - - /** - * Returns the meta object for the reference list '{@link org.eclipse.passage.lic.users.model.api.UserGroup#getUsers Users}'. - * - * - * @return the meta object for the reference list 'Users'. - * @see org.eclipse.passage.lic.users.model.api.UserGroup#getUsers() - * @see #getUserGroup() - * @since 2.0 - * @generated - */ - EReference getUserGroup_Users(); - - /** - * Returns the meta object for the container reference '{@link org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin Origin}'. - * - * - * @return the meta object for the container reference 'Origin'. - * @see org.eclipse.passage.lic.users.model.api.UserGroup#getOrigin() - * @see #getUserGroup() - * @since 2.0 - * @generated - */ - EReference getUserGroup_Origin(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.users.model.api.Contact Contact}'. - * - * - * @return the meta object for class 'Contact'. - * @see org.eclipse.passage.lic.users.model.api.Contact - * @since 2.0 - * @generated - */ - EClass getContact(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.Contact#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.users.model.api.Contact#getName() - * @see #getContact() - * @since 2.0 - * @generated - */ - EAttribute getContact_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.Contact#getTitle Title}'. - * - * - * @return the meta object for the attribute 'Title'. - * @see org.eclipse.passage.lic.users.model.api.Contact#getTitle() - * @see #getContact() - * @since 2.0 - * @generated - */ - EAttribute getContact_Title(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.Contact#getPosition Position}'. - * - * - * @return the meta object for the attribute 'Position'. - * @see org.eclipse.passage.lic.users.model.api.Contact#getPosition() - * @see #getContact() - * @since 2.0 - * @generated - */ - EAttribute getContact_Position(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.Contact#getEmail Email}'. - * - * - * @return the meta object for the attribute 'Email'. - * @see org.eclipse.passage.lic.users.model.api.Contact#getEmail() - * @see #getContact() - * @since 2.0 - * @generated - */ - EAttribute getContact_Email(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.Contact#getAddress Address}'. - * - * - * @return the meta object for the attribute 'Address'. - * @see org.eclipse.passage.lic.users.model.api.Contact#getAddress() - * @see #getContact() - * @since 2.0 - * @generated - */ - EAttribute getContact_Address(); - - /** - * Returns the meta object for class '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner License Owner}'. - * - * - * @return the meta object for class 'License Owner'. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner - * @since 2.0 - * @generated - */ - EClass getLicenseOwner(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getIdentifier Identifier}'. - * - * - * @return the meta object for the attribute 'Identifier'. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner#getIdentifier() - * @see #getLicenseOwner() - * @since 2.0 - * @generated - */ - EAttribute getLicenseOwner_Identifier(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner#getName() - * @see #getLicenseOwner() - * @since 2.0 - * @generated - */ - EAttribute getLicenseOwner_Name(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner#getDescription() - * @see #getLicenseOwner() - * @since 2.0 - * @generated - */ - EAttribute getLicenseOwner_Description(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner#getContact Contact}'. - * - * - * @return the meta object for the containment reference 'Contact'. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner#getContact() - * @see #getLicenseOwner() - * @since 2.0 - * @generated - */ - EReference getLicenseOwner_Contact(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - UsersFactory getUsersFactory(); - -} // UsersPackage diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersAdapterFactory.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersAdapterFactory.java deleted file mode 100644 index 5bb36f9c7..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersAdapterFactory.java +++ /dev/null @@ -1,210 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.LicenseOwner; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage - * @generated - */ -public class UsersAdapterFactory extends AdapterFactoryImpl { - /** - * The cached model package. - * - * - * @generated - */ - protected static UsersPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public UsersAdapterFactory() { - if (modelPackage == null) { - modelPackage = UsersPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) { - if (object == modelPackage) { - return true; - } - if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected UsersSwitch modelSwitch = new UsersSwitch() { - @Override - public Adapter caseContact(Contact object) { - return createContactAdapter(); - } - - @Override - public Adapter caseLicenseOwner(LicenseOwner object) { - return createLicenseOwnerAdapter(); - } - - @Override - public Adapter caseUser(User object) { - return createUserAdapter(); - } - - @Override - public Adapter caseUserGroup(UserGroup object) { - return createUserGroupAdapter(); - } - - @Override - public Adapter caseUserOrigin(UserOrigin object) { - return createUserOriginAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.users.model.api.UserOrigin User Origin}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.users.model.api.UserOrigin - * @generated - */ - public Adapter createUserOriginAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.users.model.api.User User}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.users.model.api.User - * @generated - */ - public Adapter createUserAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.users.model.api.UserGroup User Group}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.users.model.api.UserGroup - * @since 2.0 - * @generated - */ - public Adapter createUserGroupAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.users.model.api.Contact Contact}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.users.model.api.Contact - * @since 2.0 - * @generated - */ - public Adapter createContactAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.passage.lic.users.model.api.LicenseOwner License Owner}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.passage.lic.users.model.api.LicenseOwner - * @since 2.0 - * @generated - */ - public Adapter createLicenseOwnerAdapter() { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() { - return null; - } - -} // UsersAdapterFactory diff --git a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersSwitch.java b/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersSwitch.java deleted file mode 100644 index c5818e728..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src-gen/org/eclipse/passage/lic/users/model/util/UsersSwitch.java +++ /dev/null @@ -1,220 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.util.Switch; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.LicenseOwner; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserGroup; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.passage.lic.users.model.meta.UsersPackage - * @generated - */ -public class UsersSwitch extends Switch { - /** - * The cached model package - * - * - * @generated - */ - protected static UsersPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public UsersSwitch() { - if (modelPackage == null) { - modelPackage = UsersPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) { - switch (classifierID) { - case UsersPackage.CONTACT: { - Contact contact = (Contact) theEObject; - T result = caseContact(contact); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case UsersPackage.LICENSE_OWNER: { - LicenseOwner licenseOwner = (LicenseOwner) theEObject; - T result = caseLicenseOwner(licenseOwner); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case UsersPackage.USER: { - User user = (User) theEObject; - T result = caseUser(user); - if (result == null) - result = caseLicenseOwner(user); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case UsersPackage.USER_GROUP: { - UserGroup userGroup = (UserGroup) theEObject; - T result = caseUserGroup(userGroup); - if (result == null) - result = caseLicenseOwner(userGroup); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case UsersPackage.USER_ORIGIN: { - UserOrigin userOrigin = (UserOrigin) theEObject; - T result = caseUserOrigin(userOrigin); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'User Origin'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'User Origin'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseUserOrigin(UserOrigin object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'User'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'User'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseUser(User object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'User Group'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'User Group'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @since 2.0 - * @generated - */ - public T caseUserGroup(UserGroup object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Contact'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Contact'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @since 2.0 - * @generated - */ - public T caseContact(Contact object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'License Owner'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'License Owner'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @since 2.0 - * @generated - */ - public T caseLicenseOwner(LicenseOwner object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) { - return null; - } - -} // UsersSwitch diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/EmptyUser.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/EmptyUser.java deleted file mode 100644 index e04b7a2e0..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/EmptyUser.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model; - -import java.util.function.Supplier; - -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; - -public final class EmptyUser implements Supplier { - - @Override - public User get() { - User user = UsersFactory.eINSTANCE.createUser(); - user.setContact(UsersFactory.eINSTANCE.createContact()); - return user; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/UsersClassMetadata.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/UsersClassMetadata.java deleted file mode 100644 index 4f362febf..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/UsersClassMetadata.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model; - -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -import org.eclipse.passage.lic.emf.meta.ClassMetadata; -import org.eclipse.passage.lic.emf.meta.EntityMetadata; -import org.eclipse.passage.lic.emf.meta.PlainEntityMetadata; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -public final class UsersClassMetadata implements ClassMetadata { - - private final UsersPackage meta; - private final Map, EntityMetadata> map; - - public UsersClassMetadata() { - meta = UsersPackage.eINSTANCE; - map = new HashMap, EntityMetadata>(); - map.put(UserOrigin.class, // - new PlainEntityMetadata(// - meta.getUserOrigin(), // - meta.getUserOrigin_Identifier(), // - meta.getUserOrigin_Name())); - map.put(User.class, // - new PlainEntityMetadata(// - meta.getUser(), // - meta.getLicenseOwner_Identifier(), // - meta.getLicenseOwner_Name())); - } - - @Override - public Optional find(Class clazz) { - return Optional.ofNullable(map.get(clazz)); - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/EnsureLicenseOwnerContact.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/EnsureLicenseOwnerContact.java deleted file mode 100644 index 1d17ee9a5..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/EnsureLicenseOwnerContact.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model.migration; - -import java.util.Optional; -import java.util.function.Function; - -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.LicenseOwner; -import org.eclipse.passage.lic.users.model.meta.UsersFactory; - -public final class EnsureLicenseOwnerContact implements Function { - - @Override - public Contact apply(LicenseOwner owner) { - return Optional.ofNullable(owner)// - .map(LicenseOwner::getContact)// - .orElseGet(UsersFactory.eINSTANCE::createContact); - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/UsersResourceHandler.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/UsersResourceHandler.java deleted file mode 100644 index f2ffc599d..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/migration/UsersResourceHandler.java +++ /dev/null @@ -1,117 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2021, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model.migration; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.xmi.XMLResource; -import org.eclipse.passage.lic.emf.migration.DelegateClassifiers; -import org.eclipse.passage.lic.emf.migration.EClassRoutes; -import org.eclipse.passage.lic.emf.migration.MigrationRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleAttributeRoute; -import org.eclipse.passage.lic.emf.migration.SimpleClassRoutes; -import org.eclipse.passage.lic.emf.migration.SimpleMigrationRoutes; -import org.eclipse.passage.lic.emf.xmi.MigratingResourceHandler; -import org.eclipse.passage.lic.users.model.api.Contact; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.eclipse.passage.lic.users.model.meta.UsersPackage; - -public final class UsersResourceHandler extends MigratingResourceHandler { - - @Override - protected void register() { - migrate033(); - migrate040(); - migrate050(); - migrate100(); - migrate110(); - migrate200(); - } - - @Override - protected void complete(XMLResource resource) { - resource.getContents().stream()// - .filter(UserOrigin.class::isInstance)// - .map(UserOrigin.class::cast) // - .forEach(this::complete); - } - - @Override - protected MigrationRoutes attributes() { - MigrationRoutes routes = new SimpleMigrationRoutes(); - UsersPackage users = UsersPackage.eINSTANCE; - routes.define("preferredConditionType", new SimpleAttributeRoute(users.getUser_PreferredEvaluationType())); //$NON-NLS-1$ - routes.define("preferredConditionExpression", //$NON-NLS-1$ - new SimpleAttributeRoute(users.getUser_PreferredEvaluationExpression())); - routes.define("email", //$NON-NLS-1$ - new SimpleAttributeRoute(users.getContact_Email(), users.getLicenseOwner_Contact())); - routes.define("fullName", //$NON-NLS-1$ - new SimpleAttributeRoute(users.getContact_Name(), users.getLicenseOwner_Contact())); - routes.ignore("userLicenses", users.getUser()); //$NON-NLS-1$ - return routes; - } - - private void migrate033() { - String uri = "http://www.eclipse.org/passage/lic/0.3.3"; //$NON-NLS-1$ - new DelegateClassifiers(uri).delegate(classRoutes200()); - } - - private void migrate040() { - String uri = "http://www.eclipse.org/passage/lic/users/0.4.0"; //$NON-NLS-1$ - new DelegateClassifiers(uri).delegate(classRoutes200()); - } - - private void migrate050() { - String uri = "http://www.eclipse.org/passage/lic/users/0.5.0"; //$NON-NLS-1$ - new DelegateClassifiers(uri).delegate(classRoutes200()); - } - - private void migrate100() { - String uri = "http://www.eclipse.org/passage/lic/users/1.0.0"; //$NON-NLS-1$ - new DelegateClassifiers(uri).delegate(classRoutes200()); - } - - private void migrate110() { - String uri = "http://www.eclipse.org/passage/lic/users/1.1.0"; //$NON-NLS-1$ - new DelegateClassifiers(uri).delegate(classRoutes200()); - } - - private void migrate200() { - String uri = "http://www.eclipse.org/passage/lic/users/2.0.0"; //$NON-NLS-1$ - UsersPackage delegate = UsersPackage.eINSTANCE; - EPackage.Registry.INSTANCE.computeIfAbsent(uri, ns -> delegate); - } - - private EClassRoutes classRoutes200() { - UsersPackage delegate = UsersPackage.eINSTANCE; - EClassRoutes.Smart routes = new EClassRoutes.Smart(new SimpleClassRoutes()); - routes.define(delegate.getUserOrigin()); - routes.define(delegate.getUser()); - return routes; - } - - private void complete(UserOrigin origin) { - origin.getUsers().forEach(this::complete); - } - - private void complete(User user) { - Contact contact = new EnsureLicenseOwnerContact().apply(user); - if (user.getIdentifier() == null) { - user.setIdentifier(contact.getEmail()); - } - if (user.getName() == null) { - user.setName(contact.getName()); - } - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceFactoryImpl.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceFactoryImpl.java deleted file mode 100644 index d2bdfcdbc..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceFactoryImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; - -public class UsersResourceFactoryImpl extends ResourceFactoryImpl { - - @Override - public Resource createResource(URI uri) { - Resource result = new UsersResourceImpl(uri); - return result; - } - -} diff --git a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceImpl.java b/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceImpl.java deleted file mode 100644 index 1eecd0dfc..000000000 --- a/bundles/org.eclipse.passage.lic.users.model/src/org/eclipse/passage/lic/internal/users/model/util/UsersResourceImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.internal.users.model.util; - -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; -import org.eclipse.passage.lic.internal.users.model.migration.UsersResourceHandler; - -public class UsersResourceImpl extends XMIResourceImpl { - - public UsersResourceImpl(URI uri) { - super(uri); - } - - public UsersResourceImpl() { - super(); - } - - @Override - protected void init() { - super.init(); - Map options = getDefaultLoadOptions(); - options.put(OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); - options.put(OPTION_RESOURCE_HANDLER, new UsersResourceHandler()); - } - -} diff --git a/bundles/org.eclipse.passage.lic.users/.project b/bundles/org.eclipse.passage.lic.users/.project deleted file mode 100644 index fe61f83b3..000000000 --- a/bundles/org.eclipse.passage.lic.users/.project +++ /dev/null @@ -1,35 +0,0 @@ - - - org.eclipse.passage.lic.users - - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.pde.api.tools.apiAnalysisNature - - - - .settings - 2 - $%7BPARENT-2-PROJECT_LOC%7D/.settings - - - diff --git a/bundles/org.eclipse.passage.lic.users/META-INF/MANIFEST.MF b/bundles/org.eclipse.passage.lic.users/META-INF/MANIFEST.MF deleted file mode 100644 index 626516085..000000000 --- a/bundles/org.eclipse.passage.lic.users/META-INF/MANIFEST.MF +++ /dev/null @@ -1,10 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.users -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.users -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: org.eclipse.passage.lic.api;bundle-version="0.0.0";visibility:=reexport diff --git a/bundles/org.eclipse.passage.lic.users/OSGI-INF/l10n/bundle.properties b/bundles/org.eclipse.passage.lic.users/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index d6ef45acf..000000000 --- a/bundles/org.eclipse.passage.lic.users/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Users -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/bundles/org.eclipse.passage.lic.users/about.html b/bundles/org.eclipse.passage.lic.users/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/bundles/org.eclipse.passage.lic.users/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/bundles/org.eclipse.passage.lic.users/about.ini b/bundles/org.eclipse.passage.lic.users/about.ini deleted file mode 100644 index 8dbb28325..000000000 --- a/bundles/org.eclipse.passage.lic.users/about.ini +++ /dev/null @@ -1,23 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.ini -# contains information about a feature -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# "%key" are externalized strings defined in about.properties -# This file does not need to be translated. - -# Property "aboutText" contains blurb for "About" dialog (translated) -aboutText=%blurb - -# Property "featureImage" contains path to feature image (32x32) -featureImage=passage32.png diff --git a/bundles/org.eclipse.passage.lic.users/about.mappings b/bundles/org.eclipse.passage.lic.users/about.mappings deleted file mode 100644 index 7d53a6a2c..000000000 --- a/bundles/org.eclipse.passage.lic.users/about.mappings +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.mappings -# contains fill-ins for about.properties -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# This file does not need to be translated. - -0=${buildId} diff --git a/bundles/org.eclipse.passage.lic.users/about.properties b/bundles/org.eclipse.passage.lic.users/about.properties deleted file mode 100644 index e20680f94..000000000 --- a/bundles/org.eclipse.passage.lic.users/about.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### -# about.properties -# contains externalized strings for about.ini -# java.io.Properties file (ISO 8859-1 with "\" escapes) -# fill-ins are supplied by about.mappings -# This file should be translated. - -blurb=Passage Licensing Integration Components: EMF Model API for Users data\n\ -\n\ -Version: {featureVersion}\n\ -\n\ -Copyright (c) 2018, 2024 ArSysOp and others. All rights reserved.\n\ -Visit https://www.eclipse.org/passage diff --git a/bundles/org.eclipse.passage.lic.users/build.properties b/bundles/org.eclipse.passage.lic.users/build.properties deleted file mode 100644 index 40677a74b..000000000 --- a/bundles/org.eclipse.passage.lic.users/build.properties +++ /dev/null @@ -1,21 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = META-INF/,\ - .,\ - OSGI-INF/,\ - about.html,\ - about.ini,\ - about.mappings,\ - about.properties,\ - passage32.png diff --git a/bundles/org.eclipse.passage.lic.users/passage32.png b/bundles/org.eclipse.passage.lic.users/passage32.png deleted file mode 100644 index 8f2e30bf3..000000000 Binary files a/bundles/org.eclipse.passage.lic.users/passage32.png and /dev/null differ diff --git a/features/org.eclipse.passage.ldc.feature/feature.xml b/features/org.eclipse.passage.ldc.feature/feature.xml index 39dff09c3..fa26618a2 100644 --- a/features/org.eclipse.passage.ldc.feature/feature.xml +++ b/features/org.eclipse.passage.ldc.feature/feature.xml @@ -33,9 +33,9 @@ + name="Passage LIC Execute"/> - - org.eclipse.passage.lic.agreements.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.agreements.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.agreements.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.agreements.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.agreements.feature/build.properties b/features/org.eclipse.passage.lic.agreements.feature/build.properties deleted file mode 100644 index d00f09508..000000000 --- a/features/org.eclipse.passage.lic.agreements.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.agreements.feature/feature.properties b/features/org.eclipse.passage.lic.agreements.feature/feature.properties deleted file mode 100644 index 59dc03f67..000000000 --- a/features/org.eclipse.passage.lic.agreements.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Agreements -providerName=Eclipse Passage -description=Passage Licensing Integration Components EMF Model API for Agreements data -copyright=Copyright (c) 2018, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.agreements.feature/feature.xml b/features/org.eclipse.passage.lic.agreements.feature/feature.xml deleted file mode 100644 index c6172cd61..000000000 --- a/features/org.eclipse.passage.lic.agreements.feature/feature.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/features/org.eclipse.passage.lic.define.feature/.project b/features/org.eclipse.passage.lic.define.feature/.project deleted file mode 100644 index 65231d38f..000000000 --- a/features/org.eclipse.passage.lic.define.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.define.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.define.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.define.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.define.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.define.feature/build.properties b/features/org.eclipse.passage.lic.define.feature/build.properties deleted file mode 100644 index d010aee01..000000000 --- a/features/org.eclipse.passage.lic.define.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.define.feature/feature.properties b/features/org.eclipse.passage.lic.define.feature/feature.properties deleted file mode 100644 index 5de47c489..000000000 --- a/features/org.eclipse.passage.lic.define.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Define -providerName=Eclipse Passage -description=Passage Licensing Integration Components Define feature contains dependencies required for products that defines and extends the licensing constraints. -copyright=Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.define.feature/feature.xml b/features/org.eclipse.passage.lic.define.feature/feature.xml deleted file mode 100644 index 5a5ae0026..000000000 --- a/features/org.eclipse.passage.lic.define.feature/feature.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/features/org.eclipse.passage.lic.features.feature/.project b/features/org.eclipse.passage.lic.features.feature/.project deleted file mode 100644 index 9b9fd6883..000000000 --- a/features/org.eclipse.passage.lic.features.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.features.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.features.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.features.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.features.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.features.feature/build.properties b/features/org.eclipse.passage.lic.features.feature/build.properties deleted file mode 100644 index d010aee01..000000000 --- a/features/org.eclipse.passage.lic.features.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.features.feature/feature.properties b/features/org.eclipse.passage.lic.features.feature/feature.properties deleted file mode 100644 index a44128174..000000000 --- a/features/org.eclipse.passage.lic.features.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Features -providerName=Eclipse Passage -description=Passage Licensing Integration Components EMF Model API for Features data -copyright=Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.features.feature/feature.xml b/features/org.eclipse.passage.lic.features.feature/feature.xml deleted file mode 100644 index 79faed237..000000000 --- a/features/org.eclipse.passage.lic.features.feature/feature.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/features/org.eclipse.passage.lic.keys.feature/.project b/features/org.eclipse.passage.lic.keys.feature/.project deleted file mode 100644 index 449d64371..000000000 --- a/features/org.eclipse.passage.lic.keys.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.keys.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.keys.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.keys.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.keys.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.keys.feature/build.properties b/features/org.eclipse.passage.lic.keys.feature/build.properties deleted file mode 100644 index d00f09508..000000000 --- a/features/org.eclipse.passage.lic.keys.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2021 ArSysOp -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.keys.feature/feature.properties b/features/org.eclipse.passage.lic.keys.feature/feature.properties deleted file mode 100644 index 94dc7b356..000000000 --- a/features/org.eclipse.passage.lic.keys.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2021, 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 -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Keys -providerName=Eclipse Passage -description=Passage Licensing Integration Components EMF Model API for Keys data -copyright=Copyright (c) 2021, 2024 ArSysOp.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.keys.feature/feature.xml b/features/org.eclipse.passage.lic.keys.feature/feature.xml deleted file mode 100644 index 507b1fedf..000000000 --- a/features/org.eclipse.passage.lic.keys.feature/feature.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/features/org.eclipse.passage.lic.products.feature/.project b/features/org.eclipse.passage.lic.products.feature/.project deleted file mode 100644 index 6d66b9be8..000000000 --- a/features/org.eclipse.passage.lic.products.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.products.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.products.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.products.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.products.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.products.feature/build.properties b/features/org.eclipse.passage.lic.products.feature/build.properties deleted file mode 100644 index d010aee01..000000000 --- a/features/org.eclipse.passage.lic.products.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.products.feature/feature.properties b/features/org.eclipse.passage.lic.products.feature/feature.properties deleted file mode 100644 index a6aa47b2b..000000000 --- a/features/org.eclipse.passage.lic.products.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Products -providerName=Eclipse Passage -description=Passage Licensing Integration Components EMF Model API for Products data -copyright=Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.products.feature/feature.xml b/features/org.eclipse.passage.lic.products.feature/feature.xml deleted file mode 100644 index 695e10212..000000000 --- a/features/org.eclipse.passage.lic.products.feature/feature.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/features/org.eclipse.passage.lic.users.feature/.project b/features/org.eclipse.passage.lic.users.feature/.project deleted file mode 100644 index 6d5585f14..000000000 --- a/features/org.eclipse.passage.lic.users.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - org.eclipse.passage.lic.users.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/features/org.eclipse.passage.lic.users.feature/.settings/org.eclipse.core.resources.prefs b/features/org.eclipse.passage.lic.users.feature/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/features/org.eclipse.passage.lic.users.feature/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/features/org.eclipse.passage.lic.users.feature/build.properties b/features/org.eclipse.passage.lic.users.feature/build.properties deleted file mode 100644 index d010aee01..000000000 --- a/features/org.eclipse.passage.lic.users.feature/build.properties +++ /dev/null @@ -1,15 +0,0 @@ -############################################################################### -# Copyright (c) 2019, 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -bin.includes = feature.xml,\ - feature.properties diff --git a/features/org.eclipse.passage.lic.users.feature/feature.properties b/features/org.eclipse.passage.lic.users.feature/feature.properties deleted file mode 100644 index 7b79a810d..000000000 --- a/features/org.eclipse.passage.lic.users.feature/feature.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -featureName=Passage LIC Users -providerName=Eclipse Passage -description=Passage Licensing Integration Components EMF Model API for Users data -copyright=Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ - diff --git a/features/org.eclipse.passage.lic.users.feature/feature.xml b/features/org.eclipse.passage.lic.users.feature/feature.xml deleted file mode 100644 index 18defd374..000000000 --- a/features/org.eclipse.passage.lic.users.feature/feature.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - %description - - - - %copyright - - - - %license - - - - - - - - - - - - - - - - - diff --git a/releng/org.eclipse.passage.aggregator/pom.xml b/releng/org.eclipse.passage.aggregator/pom.xml index 7a4b2e827..5cda836af 100644 --- a/releng/org.eclipse.passage.aggregator/pom.xml +++ b/releng/org.eclipse.passage.aggregator/pom.xml @@ -58,28 +58,6 @@ ../../features/org.eclipse.passage.lic.e4.ui.feature ../../tests/org.eclipse.passage.lic.jface.tests - ../../bundles/org.eclipse.passage.lic.features - ../../bundles/org.eclipse.passage.lic.features.ecore - ../../bundles/org.eclipse.passage.lic.features.model - ../../bundles/org.eclipse.passage.lic.features.edit - ../../features/org.eclipse.passage.lic.features.feature - ../../tests/org.eclipse.passage.lic.features.model.tests - - ../../bundles/org.eclipse.passage.lic.products - ../../bundles/org.eclipse.passage.lic.products.ecore - ../../bundles/org.eclipse.passage.lic.products.model - ../../bundles/org.eclipse.passage.lic.products.edit - ../../features/org.eclipse.passage.lic.products.feature - ../../tests/org.eclipse.passage.lic.products.model.tests - - - ../../bundles/org.eclipse.passage.lic.users - ../../bundles/org.eclipse.passage.lic.users.ecore - ../../bundles/org.eclipse.passage.lic.users.model - ../../bundles/org.eclipse.passage.lic.users.edit - ../../features/org.eclipse.passage.lic.users.feature - ../../tests/org.eclipse.passage.lic.users.model.tests - ../../bundles/org.eclipse.passage.lic.licenses ../../bundles/org.eclipse.passage.lic.licenses.ecore ../../bundles/org.eclipse.passage.lic.licenses.model @@ -87,17 +65,6 @@ ../../features/org.eclipse.passage.lic.licenses.feature ../../tests/org.eclipse.passage.lic.licenses.model.tests - ../../bundles/org.eclipse.passage.lic.keys - ../../bundles/org.eclipse.passage.lic.keys.ecore - ../../bundles/org.eclipse.passage.lic.keys.model - ../../bundles/org.eclipse.passage.lic.keys.edit - ../../features/org.eclipse.passage.lic.keys.feature - - ../../bundles/org.eclipse.passage.lic.agreements - ../../bundles/org.eclipse.passage.lic.agreements.ecore - ../../bundles/org.eclipse.passage.lic.agreements.model - ../../bundles/org.eclipse.passage.lic.agreements.edit - ../../features/org.eclipse.passage.lic.agreements.feature ../../bundles/org.eclipse.passage.lic.compile.branding ../../features/org.eclipse.passage.lic.compile.feature @@ -106,9 +73,6 @@ ../../bundles/org.eclipse.passage.lic.execute.branding ../../features/org.eclipse.passage.lic.execute.feature - ../../bundles/org.eclipse.passage.lic.define.branding - ../../features/org.eclipse.passage.lic.define.feature - ../../bundles/org.eclipse.passage.ldc.pde.core.templates ../../bundles/org.eclipse.passage.ldc.pde.ui.templates ../../bundles/org.eclipse.passage.ldc diff --git a/sites/org.eclipse.passage.repository/category.xml b/sites/org.eclipse.passage.repository/category.xml index be8a9eff5..ea572264f 100644 --- a/sites/org.eclipse.passage.repository/category.xml +++ b/sites/org.eclipse.passage.repository/category.xml @@ -17,9 +17,6 @@ - - - @@ -29,9 +26,6 @@ - - - diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.classpath b/tests/org.eclipse.passage.lic.features.model.tests/.classpath deleted file mode 100644 index 675a5e296..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.project b/tests/org.eclipse.passage.lic.features.model.tests/.project deleted file mode 100644 index 7019e9065..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.passage.lic.features.model.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f4124005c..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,115 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled -org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore -org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull -org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= -org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable -org.eclipse.jdt.core.compiler.annotation.nullable.secondary= -org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=17 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.APILeak=warning -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning -org.eclipse.jdt.core.compiler.problem.deadCode=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error -org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning -org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning -org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error -org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning -org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning -org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled -org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=17 diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 906381876..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,122 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_modifiers=false -cleanup.remove_redundant_semicolons=false -cleanup.remove_redundant_type_arguments=false -cleanup.remove_trailing_whitespaces=false -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=false -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -org.eclipse.jdt.ui.text.custom_code_templates= -sp_cleanup.add_default_serial_version_id=true -sp_cleanup.add_generated_serial_version_id=false -sp_cleanup.add_missing_annotations=true -sp_cleanup.add_missing_deprecated_annotations=true -sp_cleanup.add_missing_methods=false -sp_cleanup.add_missing_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_missing_override_annotations_interface_methods=true -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_functional_interfaces=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=false -sp_cleanup.format_source_code=true -sp_cleanup.format_source_code_changes_only=false -sp_cleanup.insert_inferred_type_arguments=false -sp_cleanup.make_local_variable_final=true -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_type_abstract_if_missing_method=false -sp_cleanup.make_variable_declarations_final=false -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=true -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_redundant_modifiers=false -sp_cleanup.remove_redundant_semicolons=false -sp_cleanup.remove_redundant_type_arguments=false -sp_cleanup.remove_trailing_whitespaces=false -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=false -sp_cleanup.remove_unused_imports=false -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_anonymous_class_creation=false -sp_cleanup.use_blocks=false -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_lambda=true -sp_cleanup.use_parentheses_in_expressions=false -sp_cleanup.use_this_for_non_static_field_access=false -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=false -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs b/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs deleted file mode 100644 index 73a356b6d..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs +++ /dev/null @@ -1,8 +0,0 @@ -classpath=true -dsVersion=V1_3 -eclipse.preferences.version=1 -enabled=true -generateBundleActivationPolicyLazy=true -path=OSGI-INF -validationErrorLevel=error -validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 47bd5bdfc..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,34 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=2 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=2 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.no.automatic.module=1 -compilers.p.not-externalized-att=0 -compilers.p.service.component.without.lazyactivation=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.passage.lic.features.model.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.passage.lic.features.model.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 55e0e6ad5..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.features.model.tests -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.features.model.tests -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Fragment-Host: org.eclipse.passage.lic.features.model -Import-Package: org.junit diff --git a/tests/org.eclipse.passage.lic.features.model.tests/OSGI-INF/l10n/bundle.properties b/tests/org.eclipse.passage.lic.features.model.tests/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 4e5a3e917..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Features Model Tests -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/tests/org.eclipse.passage.lic.features.model.tests/about.html b/tests/org.eclipse.passage.lic.features.model.tests/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.features.model.tests/build.properties b/tests/org.eclipse.passage.lic.features.model.tests/build.properties deleted file mode 100644 index fa01af22a..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/ diff --git a/tests/org.eclipse.passage.lic.features.model.tests/model/org.eclipse.passage.lic.lic_features b/tests/org.eclipse.passage.lic.features.model.tests/model/org.eclipse.passage.lic.lic_features deleted file mode 100644 index c01af7800..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/model/org.eclipse.passage.lic.lic_features +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/migration/tests/FeaturesMigratorTest.java b/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/migration/tests/FeaturesMigratorTest.java deleted file mode 100644 index 65391ef71..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/migration/tests/FeaturesMigratorTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - * ArSysOp - further support - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.migration.tests; - -import static org.junit.Assert.assertEquals; - -import java.io.File; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.features.model.api.FeatureVersion; -import org.junit.Test; - -public final class FeaturesMigratorTest { - - @Test - public void testMigratorPositive() throws Exception { - File legacy = new File( - System.getProperty("user.dir") + File.separator + "model/org.eclipse.passage.lic.lic_features"); //$NON-NLS-1$//$NON-NLS-2$ - URI uri = URI.createFileURI(legacy.getPath()); - Resource resource = new ResourceSetImpl().createResource(uri); - resource.load(null); - EList contents = resource.getContents(); - EObject eObject = contents.get(0); - - FeatureSet featureSet = FeatureSet.class.cast(eObject); - assertEquals("org.eclipse.passage.lic", featureSet.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage LIC", featureSet.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Licensing Integration Components", featureSet.getDescription()); //$NON-NLS-1$ - - EList features = featureSet.getFeatures(); - assertEquals(2, features.size()); - - Feature f0 = features.get(0); - assertEquals("org.eclipse.passage.lic.launch", f0.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Launch", f0.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage startup feature", f0.getDescription()); //$NON-NLS-1$ - - EList f0vs = f0.getFeatureVersions(); - assertEquals(1, f0vs.size()); - FeatureVersion f0v0 = f0vs.get(0); - assertEquals("0.3.3", f0v0.getVersion()); //$NON-NLS-1$ - - Feature f1 = features.get(1); - assertEquals("org.eclipse.passage.lic.product", f1.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Product", f1.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage product feature", f1.getDescription()); //$NON-NLS-1$ - - EList f1vs = f1.getFeatureVersions(); - assertEquals(1, f1vs.size()); - FeatureVersion f1v1 = f1vs.get(0); - assertEquals("0.4.0", f1v1.getVersion()); //$NON-NLS-1$ - } -} diff --git a/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/tests/FeaturesClassMetadataTest.java b/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/tests/FeaturesClassMetadataTest.java deleted file mode 100644 index 8752df58f..000000000 --- a/tests/org.eclipse.passage.lic.features.model.tests/src/org/eclipse/passage/lic/features/model/tests/FeaturesClassMetadataTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Nikifor Fedorov - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.features.model.tests; - -import static org.junit.Assert.assertTrue; - -import org.eclipse.passage.lic.features.model.api.Feature; -import org.eclipse.passage.lic.features.model.api.FeatureSet; -import org.eclipse.passage.lic.internal.features.model.FeaturesClassMetadata; -import org.junit.Test; - -public class FeaturesClassMetadataTest { - - private final FeaturesClassMetadata metadata; - - public FeaturesClassMetadataTest() { - metadata = new FeaturesClassMetadata(); - } - - @Test - public void featureSetMetadata() { - assertTrue(metadata.find(FeatureSet.class).isPresent()); - } - - @Test - public void featureMetadata() { - assertTrue(metadata.find(Feature.class).isPresent()); - } - - @Test - public void featureVersionMetadata() { - // FIXME: implement -// assertTrue(metadata.find(FeatureVersion.class).isPresent()); - } -} diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.classpath b/tests/org.eclipse.passage.lic.products.model.tests/.classpath deleted file mode 100644 index 675a5e296..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.project b/tests/org.eclipse.passage.lic.products.model.tests/.project deleted file mode 100644 index 2e8dd10f2..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.passage.lic.products.model.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f4124005c..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,115 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled -org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore -org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull -org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= -org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable -org.eclipse.jdt.core.compiler.annotation.nullable.secondary= -org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=17 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.APILeak=warning -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning -org.eclipse.jdt.core.compiler.problem.deadCode=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error -org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning -org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning -org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error -org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning -org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning -org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled -org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=17 diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 906381876..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,122 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_modifiers=false -cleanup.remove_redundant_semicolons=false -cleanup.remove_redundant_type_arguments=false -cleanup.remove_trailing_whitespaces=false -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=false -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -org.eclipse.jdt.ui.text.custom_code_templates= -sp_cleanup.add_default_serial_version_id=true -sp_cleanup.add_generated_serial_version_id=false -sp_cleanup.add_missing_annotations=true -sp_cleanup.add_missing_deprecated_annotations=true -sp_cleanup.add_missing_methods=false -sp_cleanup.add_missing_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_missing_override_annotations_interface_methods=true -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_functional_interfaces=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=false -sp_cleanup.format_source_code=true -sp_cleanup.format_source_code_changes_only=false -sp_cleanup.insert_inferred_type_arguments=false -sp_cleanup.make_local_variable_final=true -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_type_abstract_if_missing_method=false -sp_cleanup.make_variable_declarations_final=false -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=true -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_redundant_modifiers=false -sp_cleanup.remove_redundant_semicolons=false -sp_cleanup.remove_redundant_type_arguments=false -sp_cleanup.remove_trailing_whitespaces=false -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=false -sp_cleanup.remove_unused_imports=false -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_anonymous_class_creation=false -sp_cleanup.use_blocks=false -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_lambda=true -sp_cleanup.use_parentheses_in_expressions=false -sp_cleanup.use_this_for_non_static_field_access=false -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=false -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs b/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs deleted file mode 100644 index 73a356b6d..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs +++ /dev/null @@ -1,8 +0,0 @@ -classpath=true -dsVersion=V1_3 -eclipse.preferences.version=1 -enabled=true -generateBundleActivationPolicyLazy=true -path=OSGI-INF -validationErrorLevel=error -validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 47bd5bdfc..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,34 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=2 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=2 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.no.automatic.module=1 -compilers.p.not-externalized-att=0 -compilers.p.service.component.without.lazyactivation=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.passage.lic.products.model.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.passage.lic.products.model.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 750e1d280..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.products.model.tests -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.products.model.tests -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Fragment-Host: org.eclipse.passage.lic.products.model -Import-Package: org.junit -Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/tests/org.eclipse.passage.lic.products.model.tests/OSGI-INF/l10n/bundle.properties b/tests/org.eclipse.passage.lic.products.model.tests/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 9d0963e0f..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Products Model Tests -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/tests/org.eclipse.passage.lic.products.model.tests/about.html b/tests/org.eclipse.passage.lic.products.model.tests/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.products.model.tests/build.properties b/tests/org.eclipse.passage.lic.products.model.tests/build.properties deleted file mode 100644 index fa01af22a..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/ diff --git a/tests/org.eclipse.passage.lic.products.model.tests/model/org.eclipse.passage.lic.lic_products b/tests/org.eclipse.passage.lic.products.model.tests/model/org.eclipse.passage.lic.lic_products deleted file mode 100644 index b5c54bcae..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/model/org.eclipse.passage.lic.lic_products +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/migration/tests/ProductsMigratorTest.java b/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/migration/tests/ProductsMigratorTest.java deleted file mode 100644 index 1e60473ff..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/migration/tests/ProductsMigratorTest.java +++ /dev/null @@ -1,84 +0,0 @@ -/******************************************************************************* - * 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - * ArSysOp - further support - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.migration.tests; - -import static org.junit.Assert.assertEquals; - -import java.io.File; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.passage.lic.internal.products.model.util.ProductsResourceImpl; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.eclipse.passage.lic.products.model.api.ProductVersionFeature; -import org.junit.Test; - -public final class ProductsMigratorTest { - - @Test - public void testMigratorPositive() throws Exception { - File legacy = new File( - System.getProperty("user.dir") + File.separator + "model/org.eclipse.passage.lic.lic_products"); //$NON-NLS-1$//$NON-NLS-2$ - URI uri = URI.createFileURI(legacy.getPath()); - Resource resource = new ProductsResourceImpl(uri); - resource.load(null); - EList contents = resource.getContents(); - EObject eObject = contents.get(0); - - ProductLine productLine = ProductLine.class.cast(eObject); - assertEquals("org.eclipse.passage.lic", productLine.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage LIC", productLine.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Licensing Integration Components", productLine.getDescription()); //$NON-NLS-1$ - - EList products = productLine.getProducts(); - assertEquals(1, products.size()); - - Product p0 = products.get(0); - assertEquals("org.eclipse.passage.lic.product", p0.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage LIC", p0.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Licensing Integration Components product", p0.getDescription()); //$NON-NLS-1$ - - EList p0vs = p0.getProductVersions(); - assertEquals(2, p0vs.size()); - ProductVersion p0v0 = p0vs.get(0); - assertEquals("0.3.3", p0v0.getVersion()); //$NON-NLS-1$ - assertEquals("./.passage/org.eclipse.passage.lic.product/0.3.3/org.eclipse.passage.lic.product_0.3.3.pub", //$NON-NLS-1$ - p0v0.getInstallationToken()); - assertEquals("./.passage/org.eclipse.passage.lic.product/0.3.3/org.eclipse.passage.lic.product_0.3.3.scr", //$NON-NLS-1$ - p0v0.getSecureToken()); - EList p0v0pvfs = p0v0.getProductVersionFeatures(); - assertEquals(1, p0v0pvfs.size()); - ProductVersionFeature p0v0pvf0 = p0v0pvfs.get(0); - assertEquals("org.eclipse.passage.lic.launch", p0v0pvf0.getFeatureIdentifier()); //$NON-NLS-1$ - assertEquals("0.3.3", p0v0pvf0.getFeatureVersion()); //$NON-NLS-1$ - assertEquals("error", p0v0pvf0.getRestrictionLevel()); //$NON-NLS-1$ - - ProductVersion p0v1 = p0vs.get(1); - assertEquals("0.4.0", p0v1.getVersion()); //$NON-NLS-1$ - assertEquals("./.passage/org.eclipse.passage.lic.product/0.4.0/org.eclipse.passage.lic.product_0.4.0.pub", //$NON-NLS-1$ - p0v1.getInstallationToken()); - assertEquals("./.passage/org.eclipse.passage.lic.product/0.4.0/org.eclipse.passage.lic.product_0.4.0.scr", //$NON-NLS-1$ - p0v1.getSecureToken()); - EList p1v0pvfs = p0v1.getProductVersionFeatures(); - assertEquals(1, p1v0pvfs.size()); - ProductVersionFeature p1v0pvf0 = p1v0pvfs.get(0); - assertEquals("org.eclipse.passage.lic.product", p1v0pvf0.getFeatureIdentifier()); //$NON-NLS-1$ - assertEquals("0.4.0", p1v0pvf0.getFeatureVersion()); //$NON-NLS-1$ - assertEquals("error", p1v0pvf0.getRestrictionLevel()); //$NON-NLS-1$ - } -} diff --git a/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/tests/ProductsClassMetadataTest.java b/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/tests/ProductsClassMetadataTest.java deleted file mode 100644 index 15c186d7a..000000000 --- a/tests/org.eclipse.passage.lic.products.model.tests/src/org/eclipse/passage/lic/products/model/tests/ProductsClassMetadataTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Nikifor Fedorov - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.products.model.tests; - -import static org.junit.Assert.assertTrue; - -import org.eclipse.passage.lic.internal.products.model.ProductsClassMetadata; -import org.eclipse.passage.lic.products.model.api.Product; -import org.eclipse.passage.lic.products.model.api.ProductLine; -import org.eclipse.passage.lic.products.model.api.ProductVersion; -import org.junit.Test; - -public class ProductsClassMetadataTest { - - private final ProductsClassMetadata metadata; - - public ProductsClassMetadataTest() { - metadata = new ProductsClassMetadata(); - } - - @Test - public void productLineMetadata() { - assertTrue(metadata.find(ProductLine.class).isPresent()); - } - - @Test - public void productMetadata() { - assertTrue(metadata.find(Product.class).isPresent()); - } - - @Test - public void productVersionMetadata() { - assertTrue(metadata.find(ProductVersion.class).isPresent()); - } -} diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.classpath b/tests/org.eclipse.passage.lic.users.model.tests/.classpath deleted file mode 100644 index 675a5e296..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.classpath +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.project b/tests/org.eclipse.passage.lic.users.model.tests/.project deleted file mode 100644 index 9edbb597d..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - org.eclipse.passage.lic.users.model.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.pde.api.tools.apiAnalysisBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.eclipse.pde.api.tools.apiAnalysisNature - - diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.core.resources.prefs b/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c020..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.core.prefs b/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f4124005c..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,115 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled -org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore -org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull -org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault -org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= -org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable -org.eclipse.jdt.core.compiler.annotation.nullable.secondary= -org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=17 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.APILeak=warning -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=ignore -org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning -org.eclipse.jdt.core.compiler.problem.deadCode=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore -org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning -org.eclipse.jdt.core.compiler.problem.missingDefaultCase=warning -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled -org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error -org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning -org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning -org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error -org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning -org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning -org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning -org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning -org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning -org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore -org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning -org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled -org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning -org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=17 diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.ui.prefs b/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 906381876..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,122 +0,0 @@ -cleanup.add_default_serial_version_id=true -cleanup.add_generated_serial_version_id=false -cleanup.add_missing_annotations=true -cleanup.add_missing_deprecated_annotations=true -cleanup.add_missing_methods=false -cleanup.add_missing_nls_tags=false -cleanup.add_missing_override_annotations=true -cleanup.add_missing_override_annotations_interface_methods=true -cleanup.add_serial_version_id=false -cleanup.always_use_blocks=true -cleanup.always_use_parentheses_in_expressions=false -cleanup.always_use_this_for_non_static_field_access=false -cleanup.always_use_this_for_non_static_method_access=false -cleanup.convert_functional_interfaces=false -cleanup.convert_to_enhanced_for_loop=false -cleanup.correct_indentation=false -cleanup.format_source_code=false -cleanup.format_source_code_changes_only=false -cleanup.insert_inferred_type_arguments=false -cleanup.make_local_variable_final=true -cleanup.make_parameters_final=false -cleanup.make_private_fields_final=true -cleanup.make_type_abstract_if_missing_method=false -cleanup.make_variable_declarations_final=false -cleanup.never_use_blocks=false -cleanup.never_use_parentheses_in_expressions=true -cleanup.organize_imports=false -cleanup.qualify_static_field_accesses_with_declaring_class=false -cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -cleanup.qualify_static_member_accesses_with_declaring_class=true -cleanup.qualify_static_method_accesses_with_declaring_class=false -cleanup.remove_private_constructors=true -cleanup.remove_redundant_modifiers=false -cleanup.remove_redundant_semicolons=false -cleanup.remove_redundant_type_arguments=false -cleanup.remove_trailing_whitespaces=false -cleanup.remove_trailing_whitespaces_all=true -cleanup.remove_trailing_whitespaces_ignore_empty=false -cleanup.remove_unnecessary_casts=true -cleanup.remove_unnecessary_nls_tags=true -cleanup.remove_unused_imports=true -cleanup.remove_unused_local_variables=false -cleanup.remove_unused_private_fields=true -cleanup.remove_unused_private_members=false -cleanup.remove_unused_private_methods=true -cleanup.remove_unused_private_types=true -cleanup.sort_members=false -cleanup.sort_members_all=false -cleanup.use_anonymous_class_creation=false -cleanup.use_blocks=false -cleanup.use_blocks_only_for_return_and_throw=false -cleanup.use_lambda=true -cleanup.use_parentheses_in_expressions=false -cleanup.use_this_for_non_static_field_access=false -cleanup.use_this_for_non_static_field_access_only_if_necessary=true -cleanup.use_this_for_non_static_method_access=false -cleanup.use_this_for_non_static_method_access_only_if_necessary=true -cleanup_profile=org.eclipse.jdt.ui.default.eclipse_clean_up_profile -cleanup_settings_version=2 -eclipse.preferences.version=1 -editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true -org.eclipse.jdt.ui.text.custom_code_templates= -sp_cleanup.add_default_serial_version_id=true -sp_cleanup.add_generated_serial_version_id=false -sp_cleanup.add_missing_annotations=true -sp_cleanup.add_missing_deprecated_annotations=true -sp_cleanup.add_missing_methods=false -sp_cleanup.add_missing_nls_tags=false -sp_cleanup.add_missing_override_annotations=true -sp_cleanup.add_missing_override_annotations_interface_methods=true -sp_cleanup.add_serial_version_id=false -sp_cleanup.always_use_blocks=true -sp_cleanup.always_use_parentheses_in_expressions=false -sp_cleanup.always_use_this_for_non_static_field_access=false -sp_cleanup.always_use_this_for_non_static_method_access=false -sp_cleanup.convert_functional_interfaces=false -sp_cleanup.convert_to_enhanced_for_loop=false -sp_cleanup.correct_indentation=false -sp_cleanup.format_source_code=true -sp_cleanup.format_source_code_changes_only=false -sp_cleanup.insert_inferred_type_arguments=false -sp_cleanup.make_local_variable_final=true -sp_cleanup.make_parameters_final=false -sp_cleanup.make_private_fields_final=true -sp_cleanup.make_type_abstract_if_missing_method=false -sp_cleanup.make_variable_declarations_final=false -sp_cleanup.never_use_blocks=false -sp_cleanup.never_use_parentheses_in_expressions=true -sp_cleanup.on_save_use_additional_actions=true -sp_cleanup.organize_imports=true -sp_cleanup.qualify_static_field_accesses_with_declaring_class=false -sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true -sp_cleanup.qualify_static_member_accesses_with_declaring_class=false -sp_cleanup.qualify_static_method_accesses_with_declaring_class=false -sp_cleanup.remove_private_constructors=true -sp_cleanup.remove_redundant_modifiers=false -sp_cleanup.remove_redundant_semicolons=false -sp_cleanup.remove_redundant_type_arguments=false -sp_cleanup.remove_trailing_whitespaces=false -sp_cleanup.remove_trailing_whitespaces_all=true -sp_cleanup.remove_trailing_whitespaces_ignore_empty=false -sp_cleanup.remove_unnecessary_casts=true -sp_cleanup.remove_unnecessary_nls_tags=false -sp_cleanup.remove_unused_imports=false -sp_cleanup.remove_unused_local_variables=false -sp_cleanup.remove_unused_private_fields=true -sp_cleanup.remove_unused_private_members=false -sp_cleanup.remove_unused_private_methods=true -sp_cleanup.remove_unused_private_types=true -sp_cleanup.sort_members=false -sp_cleanup.sort_members_all=false -sp_cleanup.use_anonymous_class_creation=false -sp_cleanup.use_blocks=false -sp_cleanup.use_blocks_only_for_return_and_throw=false -sp_cleanup.use_lambda=true -sp_cleanup.use_parentheses_in_expressions=false -sp_cleanup.use_this_for_non_static_field_access=false -sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true -sp_cleanup.use_this_for_non_static_method_access=false -sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs b/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs deleted file mode 100644 index 73a356b6d..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.ds.annotations.prefs +++ /dev/null @@ -1,8 +0,0 @@ -classpath=true -dsVersion=V1_3 -eclipse.preferences.version=1 -enabled=true -generateBundleActivationPolicyLazy=true -path=OSGI-INF -validationErrorLevel=error -validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.prefs b/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.prefs deleted file mode 100644 index 47bd5bdfc..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/.settings/org.eclipse.pde.prefs +++ /dev/null @@ -1,34 +0,0 @@ -compilers.f.unresolved-features=1 -compilers.f.unresolved-plugins=1 -compilers.incompatible-environment=1 -compilers.p.build=1 -compilers.p.build.bin.includes=1 -compilers.p.build.encodings=2 -compilers.p.build.java.compiler=2 -compilers.p.build.java.compliance=1 -compilers.p.build.missing.output=2 -compilers.p.build.output.library=1 -compilers.p.build.source.library=1 -compilers.p.build.src.includes=1 -compilers.p.deprecated=1 -compilers.p.discouraged-class=1 -compilers.p.internal=1 -compilers.p.missing-packages=2 -compilers.p.missing-version-export-package=2 -compilers.p.missing-version-import-package=2 -compilers.p.missing-version-require-bundle=1 -compilers.p.no-required-att=0 -compilers.p.no.automatic.module=1 -compilers.p.not-externalized-att=0 -compilers.p.service.component.without.lazyactivation=1 -compilers.p.unknown-attribute=1 -compilers.p.unknown-class=1 -compilers.p.unknown-element=1 -compilers.p.unknown-identifier=1 -compilers.p.unknown-resource=1 -compilers.p.unresolved-ex-points=0 -compilers.p.unresolved-import=0 -compilers.s.create-docs=false -compilers.s.doc-folder=doc -compilers.s.open-tags=1 -eclipse.preferences.version=1 diff --git a/tests/org.eclipse.passage.lic.users.model.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.passage.lic.users.model.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 61da397f5..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Automatic-Module-Name: org.eclipse.passage.lic.users.model.tests -Bundle-ManifestVersion: 2 -Bundle-SymbolicName: org.eclipse.passage.lic.users.model.tests -Bundle-Version: 4.0.0.qualifier -Bundle-Name: %Bundle-Name -Bundle-Vendor: %Bundle-Vendor -Bundle-Copyright: %Bundle-Copyright -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Fragment-Host: org.eclipse.passage.lic.users.model -Import-Package: org.junit diff --git a/tests/org.eclipse.passage.lic.users.model.tests/OSGI-INF/l10n/bundle.properties b/tests/org.eclipse.passage.lic.users.model.tests/OSGI-INF/l10n/bundle.properties deleted file mode 100644 index 3b21b249d..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/OSGI-INF/l10n/bundle.properties +++ /dev/null @@ -1,22 +0,0 @@ -############################################################################### -# Copyright (c) 2018, 2024 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -Bundle-Name = Passage LIC Users Model Tests -Bundle-Vendor = Eclipse Passage -Bundle-Copyright = Copyright (c) 2018, 2024 ArSysOp and others.\n\ -\n\ -This program and the accompanying materials are made\n\ -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\ diff --git a/tests/org.eclipse.passage.lic.users.model.tests/about.html b/tests/org.eclipse.passage.lic.users.model.tests/about.html deleted file mode 100644 index 164f781a8..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/about.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - -About - - -

About This Content

- -

November 30, 2017

-

License

- -

- The Eclipse Foundation makes available all content in this plug-in - ("Content"). Unless otherwise indicated below, the Content - is provided to you under the terms and conditions of the Eclipse - Public License Version 2.0 ("EPL"). A copy of the EPL is - available at http://www.eclipse.org/legal/epl-2.0. - For purposes of the EPL, "Program" will mean the Content. -

- -

- If you did not receive this Content directly from the Eclipse - Foundation, the Content is being redistributed by another party - ("Redistributor") and different terms and conditions may - apply to your use of any object code in the Content. Check the - Redistributor's license that was provided with the Content. If no such - license exists, contact the Redistributor. Unless otherwise indicated - below, the terms and conditions of the EPL still apply to any source - code in the Content and such source code may be obtained at http://www.eclipse.org. -

- - - \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.users.model.tests/build.properties b/tests/org.eclipse.passage.lic.users.model.tests/build.properties deleted file mode 100644 index fa01af22a..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/build.properties +++ /dev/null @@ -1,18 +0,0 @@ -############################################################################### -# Copyright (c) 2020 ArSysOp and others -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License 2.0 which is available at -# https://www.eclipse.org/legal/epl-2.0/. -# -# SPDX-License-Identifier: EPL-2.0 -# -# Contributors: -# ArSysOp - initial API and implementation -############################################################################### - -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - OSGI-INF/ diff --git a/tests/org.eclipse.passage.lic.users.model.tests/model/0_3_3.lic_users b/tests/org.eclipse.passage.lic.users.model.tests/model/0_3_3.lic_users deleted file mode 100644 index 75b5c773b..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/model/0_3_3.lic_users +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.users.model.tests/model/1_0_0.users_xmi b/tests/org.eclipse.passage.lic.users.model.tests/model/1_0_0.users_xmi deleted file mode 100644 index 378a20ce4..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/model/1_0_0.users_xmi +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/migration/tests/UsersMigratorTest.java b/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/migration/tests/UsersMigratorTest.java deleted file mode 100644 index 5564eb9c7..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/migration/tests/UsersMigratorTest.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2018, 2021 ArSysOp - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * ArSysOp - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.migration.tests; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import java.io.File; -import java.io.IOException; -import java.util.Collections; -import java.util.List; -import java.util.Optional; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.junit.Test; - -public final class UsersMigratorTest { - - @Test - public void test033Migration() throws Exception { - assert033(origin("model/0_3_3.lic_users")); //$NON-NLS-1$ - } - - @Test - public void test100Migration() throws Exception { - assert100(origin("model/1_0_0.users_xmi")); //$NON-NLS-1$ - } - - private void assert100(UserOrigin origin) { - assertEquals("magicians", origin.getIdentifier()); //$NON-NLS-1$ - assertEquals("Magicians Co", origin.getName()); //$NON-NLS-1$ - List all = origin.getUsers(); - assertEquals(3, all.size()); - assertUser(user(all, "elder@magic.com"), "The Elder"); //$NON-NLS-1$//$NON-NLS-2$ - assertUser(user(all, "Albert_Rose@garden.ga"), "Albert Red Rose"); //$NON-NLS-1$//$NON-NLS-2$ - assertUser(user(all, "junior@magic.com"), "The Junior"); //$NON-NLS-1$//$NON-NLS-2$ - } - - private User user(List all, String mail) { - Optional user = all.stream()// - .filter(u -> mail.equals(u.getContact().getEmail()))// - .findAny(); - assertTrue(user.isPresent()); - return user.get(); - } - - private void assertUser(User user, String name) { - assertEquals(name, user.getContact().getName()); - assertEquals("hardware", user.getPreferredEvaluationType()); //$NON-NLS-1$ - assertEquals("os.family=*", user.getPreferredEvaluationExpression()); //$NON-NLS-1$ - } - - private void assert033(UserOrigin origin) { - assertEquals("org.eclipse.passage.lic", origin.getIdentifier()); //$NON-NLS-1$ - assertEquals("Eclipse Passage LIC", origin.getName()); //$NON-NLS-1$ - assertEquals("Eclipse Passage Licensing Integration Components users", origin.getDescription()); //$NON-NLS-1$ - - EList users = origin.getUsers(); - assertEquals(2, users.size()); - - User u0 = users.get(0); - assertEquals("alexander.fedorov@arsysop.ru", u0.getContact().getEmail()); //$NON-NLS-1$ - assertEquals("Alexander Fedorov", u0.getContact().getName()); //$NON-NLS-1$ - assertEquals(null, u0.getDescription()); - - User u1 = users.get(1); - assertEquals("sergei.kovalchuk@arsysop.ru", u1.getContact().getEmail()); //$NON-NLS-1$ - assertEquals("Sergei Kovalchuk", u1.getContact().getName()); //$NON-NLS-1$ - assertEquals(null, u1.getDescription()); - } - - private UserOrigin origin(String path) throws IOException { - File legacy = new File(System.getProperty("user.dir") + File.separator + path); //$NON-NLS-1$ - Resource resource = new ResourceSetImpl().createResource(URI.createFileURI(legacy.getPath())); - resource.load(Collections.emptyMap()); - return UserOrigin.class.cast(resource.getContents().get(0)); - } - -} diff --git a/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/tests/UsersClassMetadataTest.java b/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/tests/UsersClassMetadataTest.java deleted file mode 100644 index 1c4b856fe..000000000 --- a/tests/org.eclipse.passage.lic.users.model.tests/src/org/eclipse/passage/lic/users/model/tests/UsersClassMetadataTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2020, 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 - * https://www.eclipse.org/legal/epl-2.0/. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * Nikifor Fedorov - initial API and implementation - *******************************************************************************/ -package org.eclipse.passage.lic.users.model.tests; - -import static org.junit.Assert.assertTrue; - -import org.eclipse.passage.lic.internal.users.model.UsersClassMetadata; -import org.eclipse.passage.lic.users.model.api.User; -import org.eclipse.passage.lic.users.model.api.UserOrigin; -import org.junit.Test; - -public class UsersClassMetadataTest { - - private final UsersClassMetadata metadata; - - public UsersClassMetadataTest() { - metadata = new UsersClassMetadata(); - } - - @Test - public void userOriginMetadata() { - assertTrue(metadata.find(UserOrigin.class).isPresent()); - } - - @Test - public void userMetadata() { - assertTrue(metadata.find(User.class).isPresent()); - } - -}