From a5a46135833cd2c52ffbd880263ad12713c6e74f Mon Sep 17 00:00:00 2001 From: cdumoulin Date: Thu, 20 Oct 2011 13:40:20 +0000 Subject: ASSIGNED - bug 359058: [Refactoring - Architecture] Identify the layers and sub-layers for the Papyrus architecture https://bugs.eclipse.org/bugs/show_bug.cgi?id=359058 Improve the architecture profile --- .../icons/full/obj16/Project.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ProjectDependency.gif | Bin 0 -> 129 bytes .../plugin.properties | 12 + .../ArchitectureItemProviderAdapterFactory.java | 40 +- .../provider/PluginDependencyItemProvider.java | 194 -------- .../architecture/provider/PluginItemProvider.java | 174 +------- .../provider/ProjectDependencyItemProvider.java | 194 ++++++++ .../architecture/provider/ProjectItemProvider.java | 290 ++++++++++++ .../models/architecture.ecore | 32 +- .../models/architecture.profile.genmodel | 25 +- .../models/architecture.profile.notation | 101 +++-- .../models/architecture.profile.uml | 113 +++-- .../profile/architecture/ArchitectureFactory.java | 15 +- .../profile/architecture/ArchitecturePackage.java | 311 +++++++++---- .../design/profile/architecture/Plugin.java | 210 +-------- .../design/profile/architecture/Project.java | 230 ++++++++++ .../profile/architecture/ProjectDependency.java | 109 +++++ .../architecture/impl/ArchitectureFactoryImpl.java | 19 +- .../architecture/impl/ArchitecturePackageImpl.java | 118 +++-- .../architecture/impl/PluginDependencyImpl.java | 283 ------------ .../profile/architecture/impl/PluginImpl.java | 451 +------------------ .../architecture/impl/ProjectDependencyImpl.java | 283 ++++++++++++ .../profile/architecture/impl/ProjectImpl.java | 497 +++++++++++++++++++++ .../util/ArchitectureAdapterFactory.java | 28 +- .../architecture/util/ArchitectureSwitch.java | 37 +- .../site.xml | 2 +- 26 files changed, 2190 insertions(+), 1578 deletions(-) create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/Project.gif create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/ProjectDependency.gif delete mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginDependencyItemProvider.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectDependencyItemProvider.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectItemProvider.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Project.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ProjectDependency.java delete mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginDependencyImpl.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectDependencyImpl.java create mode 100644 extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectImpl.java (limited to 'extraplugins/design') diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/Project.gif b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/Project.gif new file mode 100644 index 00000000000..7bac4fd3808 Binary files /dev/null and b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/Project.gif differ diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/ProjectDependency.gif b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/ProjectDependency.gif new file mode 100644 index 00000000000..420eee17752 Binary files /dev/null and b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/icons/full/obj16/ProjectDependency.gif differ diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/plugin.properties b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/plugin.properties index c1118e9529f..d35bdd430ee 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/plugin.properties +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/plugin.properties @@ -48,3 +48,15 @@ _UI_Plugin_base_Package_feature = Base Package _UI_PluginDependency_deprecatedComment_feature = Deprecated Comment _UI_PluginDependency_isDeprecated_feature = Is Deprecated _UI_PluginDependency_base_Dependency_feature = Base Dependency +_UI_Project_type = Project +_UI_ProjectDependency_type = Project Dependency +_UI_Project_isDeprecated_feature = Is Deprecated +_UI_Project_deprecatedComment_feature = Deprecated Comment +_UI_Project_name_feature = Name +_UI_Project_referent_feature = Referent +_UI_Project_parentFolder_feature = Parent Folder +_UI_Project_originalParentFolder_feature = Original Parent Folder +_UI_Project_base_Package_feature = Base Package +_UI_ProjectDependency_deprecatedComment_feature = Deprecated Comment +_UI_ProjectDependency_isDeprecated_feature = Is Deprecated +_UI_ProjectDependency_base_Dependency_feature = Base Dependency diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ArchitectureItemProviderAdapterFactory.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ArchitectureItemProviderAdapterFactory.java index 3d0503ecd40..a5f0c25bad4 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ArchitectureItemProviderAdapterFactory.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ArchitectureItemProviderAdapterFactory.java @@ -145,26 +145,49 @@ public class ArchitectureItemProviderAdapterFactory extends ArchitectureAdapterF } /** - * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.design.profile.architecture.PluginDependency} instances. + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.design.profile.architecture.Project} instances. * * * @generated */ - protected PluginDependencyItemProvider pluginDependencyItemProvider; + protected ProjectItemProvider projectItemProvider; /** - * This creates an adapter for a {@link org.eclipse.papyrus.design.profile.architecture.PluginDependency}. + * This creates an adapter for a {@link org.eclipse.papyrus.design.profile.architecture.Project}. * * * @generated */ @Override - public Adapter createPluginDependencyAdapter() { - if (pluginDependencyItemProvider == null) { - pluginDependencyItemProvider = new PluginDependencyItemProvider(this); + public Adapter createProjectAdapter() { + if (projectItemProvider == null) { + projectItemProvider = new ProjectItemProvider(this); } - return pluginDependencyItemProvider; + return projectItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency} instances. + * + * + * @generated + */ + protected ProjectDependencyItemProvider projectDependencyItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency}. + * + * + * @generated + */ + @Override + public Adapter createProjectDependencyAdapter() { + if (projectDependencyItemProvider == null) { + projectDependencyItemProvider = new ProjectDependencyItemProvider(this); + } + + return projectDependencyItemProvider; } /** @@ -269,7 +292,8 @@ public class ArchitectureItemProviderAdapterFactory extends ArchitectureAdapterF if (layerItemProvider != null) layerItemProvider.dispose(); if (layerDependencyItemProvider != null) layerDependencyItemProvider.dispose(); if (pluginItemProvider != null) pluginItemProvider.dispose(); - if (pluginDependencyItemProvider != null) pluginDependencyItemProvider.dispose(); + if (projectItemProvider != null) projectItemProvider.dispose(); + if (projectDependencyItemProvider != null) projectDependencyItemProvider.dispose(); } } diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginDependencyItemProvider.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginDependencyItemProvider.java deleted file mode 100644 index 33e90ac2dc5..00000000000 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginDependencyItemProvider.java +++ /dev/null @@ -1,194 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.eclipse.papyrus.design.profile.architecture.provider; - - -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.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.ViewerNotification; - -import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; -import org.eclipse.papyrus.design.profile.architecture.PluginDependency; - -/** - * This is the item provider adapter for a {@link org.eclipse.papyrus.design.profile.architecture.PluginDependency} object. - * - * - * @generated - */ -public class PluginDependencyItemProvider - extends ElementItemProvider - implements - IEditingDomainItemProvider, - IStructuredItemContentProvider, - ITreeItemContentProvider, - IItemLabelProvider, - IItemPropertySource { - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public PluginDependencyItemProvider(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); - - addDeprecatedCommentPropertyDescriptor(object); - addIsDeprecatedPropertyDescriptor(object); - addBase_DependencyPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Deprecated Comment feature. - * - * - * @generated - */ - protected void addDeprecatedCommentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PluginDependency_deprecatedComment_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PluginDependency_deprecatedComment_feature", "_UI_PluginDependency_type"), - ArchitecturePackage.Literals.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Is Deprecated feature. - * - * - * @generated - */ - protected void addIsDeprecatedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PluginDependency_isDeprecated_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PluginDependency_isDeprecated_feature", "_UI_PluginDependency_type"), - ArchitecturePackage.Literals.PLUGIN_DEPENDENCY__IS_DEPRECATED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Base Dependency feature. - * - * - * @generated - */ - protected void addBase_DependencyPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_PluginDependency_base_Dependency_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_PluginDependency_base_Dependency_feature", "_UI_PluginDependency_type"), - ArchitecturePackage.Literals.PLUGIN_DEPENDENCY__BASE_DEPENDENCY, - true, - false, - true, - null, - null, - null)); - } - - /** - * This returns PluginDependency.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/PluginDependency")); - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) { - String label = ((PluginDependency)object).getDocumentation(); - return label == null || label.length() == 0 ? - getString("_UI_PluginDependency_type") : - getString("_UI_PluginDependency_type") + " " + label; - } - - /** - * 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(PluginDependency.class)) { - case ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT: - case ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } - - /** - * 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); - } - -} diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginItemProvider.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginItemProvider.java index b766cc30eac..506f47e2cb4 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginItemProvider.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/PluginItemProvider.java @@ -33,7 +33,7 @@ import org.eclipse.papyrus.design.profile.architecture.Plugin; * @generated */ public class PluginItemProvider - extends ElementItemProvider + extends ProjectItemProvider implements IEditingDomainItemProvider, IStructuredItemContentProvider, @@ -61,171 +61,10 @@ public class PluginItemProvider if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); - addNamePropertyDescriptor(object); - addParentFolderPropertyDescriptor(object); - addOriginalParentFolderPropertyDescriptor(object); - addIsDeprecatedPropertyDescriptor(object); - addDeprecatedCommentPropertyDescriptor(object); - addReferentPropertyDescriptor(object); - addBase_PackagePropertyDescriptor(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_Plugin_name_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_name_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__NAME, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Parent Folder feature. - * - * - * @generated - */ - protected void addParentFolderPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_parentFolder_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_parentFolder_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__PARENT_FOLDER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Original Parent Folder feature. - * - * - * @generated - */ - protected void addOriginalParentFolderPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_originalParentFolder_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_originalParentFolder_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__ORIGINAL_PARENT_FOLDER, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Is Deprecated feature. - * - * - * @generated - */ - protected void addIsDeprecatedPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_isDeprecated_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_isDeprecated_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__IS_DEPRECATED, - true, - false, - false, - ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Deprecated Comment feature. - * - * - * @generated - */ - protected void addDeprecatedCommentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_deprecatedComment_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_deprecatedComment_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__DEPRECATED_COMMENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Referent feature. - * - * - * @generated - */ - protected void addReferentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_referent_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_referent_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__REFERENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } - - /** - * This adds a property descriptor for the Base Package feature. - * - * - * @generated - */ - protected void addBase_PackagePropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_Plugin_base_Package_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Plugin_base_Package_feature", "_UI_Plugin_type"), - ArchitecturePackage.Literals.PLUGIN__BASE_PACKAGE, - true, - false, - true, - null, - null, - null)); - } - /** * This returns Plugin.gif. * @@ -261,17 +100,6 @@ public class PluginItemProvider @Override public void notifyChanged(Notification notification) { updateChildren(notification); - - switch (notification.getFeatureID(Plugin.class)) { - case ArchitecturePackage.PLUGIN__NAME: - case ArchitecturePackage.PLUGIN__PARENT_FOLDER: - case ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER: - case ArchitecturePackage.PLUGIN__IS_DEPRECATED: - case ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT: - case ArchitecturePackage.PLUGIN__REFERENT: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } super.notifyChanged(notification); } diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectDependencyItemProvider.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectDependencyItemProvider.java new file mode 100644 index 00000000000..4c6f8ab7ef7 --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectDependencyItemProvider.java @@ -0,0 +1,194 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture.provider; + + +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.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.ViewerNotification; + +import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; +import org.eclipse.papyrus.design.profile.architecture.ProjectDependency; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency} object. + * + * + * @generated + */ +public class ProjectDependencyItemProvider + extends ElementItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ProjectDependencyItemProvider(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); + + addDeprecatedCommentPropertyDescriptor(object); + addIsDeprecatedPropertyDescriptor(object); + addBase_DependencyPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Deprecated Comment feature. + * + * + * @generated + */ + protected void addDeprecatedCommentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ProjectDependency_deprecatedComment_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ProjectDependency_deprecatedComment_feature", "_UI_ProjectDependency_type"), + ArchitecturePackage.Literals.PROJECT_DEPENDENCY__DEPRECATED_COMMENT, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Is Deprecated feature. + * + * + * @generated + */ + protected void addIsDeprecatedPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ProjectDependency_isDeprecated_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ProjectDependency_isDeprecated_feature", "_UI_ProjectDependency_type"), + ArchitecturePackage.Literals.PROJECT_DEPENDENCY__IS_DEPRECATED, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Base Dependency feature. + * + * + * @generated + */ + protected void addBase_DependencyPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ProjectDependency_base_Dependency_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ProjectDependency_base_Dependency_feature", "_UI_ProjectDependency_type"), + ArchitecturePackage.Literals.PROJECT_DEPENDENCY__BASE_DEPENDENCY, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns ProjectDependency.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ProjectDependency")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ProjectDependency)object).getDocumentation(); + return label == null || label.length() == 0 ? + getString("_UI_ProjectDependency_type") : + getString("_UI_ProjectDependency_type") + " " + label; + } + + /** + * 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(ProjectDependency.class)) { + case ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT: + case ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * 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); + } + +} diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectItemProvider.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectItemProvider.java new file mode 100644 index 00000000000..a292c85d434 --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit/src/org/eclipse/papyrus/design/profile/architecture/provider/ProjectItemProvider.java @@ -0,0 +1,290 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture.provider; + + +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.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.ViewerNotification; + +import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; +import org.eclipse.papyrus.design.profile.architecture.Project; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.design.profile.architecture.Project} object. + * + * + * @generated + */ +public class ProjectItemProvider + extends ElementItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ProjectItemProvider(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); + + addIsDeprecatedPropertyDescriptor(object); + addDeprecatedCommentPropertyDescriptor(object); + addNamePropertyDescriptor(object); + addReferentPropertyDescriptor(object); + addParentFolderPropertyDescriptor(object); + addOriginalParentFolderPropertyDescriptor(object); + addBase_PackagePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Is Deprecated feature. + * + * + * @generated + */ + protected void addIsDeprecatedPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_isDeprecated_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_isDeprecated_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__IS_DEPRECATED, + true, + false, + false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Deprecated Comment feature. + * + * + * @generated + */ + protected void addDeprecatedCommentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_deprecatedComment_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_deprecatedComment_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__DEPRECATED_COMMENT, + 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_Project_name_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_name_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__NAME, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Referent feature. + * + * + * @generated + */ + protected void addReferentPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_referent_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_referent_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__REFERENT, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Parent Folder feature. + * + * + * @generated + */ + protected void addParentFolderPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_parentFolder_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_parentFolder_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__PARENT_FOLDER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Original Parent Folder feature. + * + * + * @generated + */ + protected void addOriginalParentFolderPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_originalParentFolder_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_originalParentFolder_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__ORIGINAL_PARENT_FOLDER, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } + + /** + * This adds a property descriptor for the Base Package feature. + * + * + * @generated + */ + protected void addBase_PackagePropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_Project_base_Package_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Project_base_Package_feature", "_UI_Project_type"), + ArchitecturePackage.Literals.PROJECT__BASE_PACKAGE, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns Project.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/Project")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Project)object).getName(); + return label == null || label.length() == 0 ? + getString("_UI_Project_type") : + getString("_UI_Project_type") + " " + label; + } + + /** + * 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(Project.class)) { + case ArchitecturePackage.PROJECT__IS_DEPRECATED: + case ArchitecturePackage.PROJECT__DEPRECATED_COMMENT: + case ArchitecturePackage.PROJECT__NAME: + case ArchitecturePackage.PROJECT__REFERENT: + case ArchitecturePackage.PROJECT__PARENT_FOLDER: + case ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } + + /** + * 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); + } + +} diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.ecore b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.ecore index 657ea61cad6..dec6c551bd0 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.ecore +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.ecore @@ -58,13 +58,31 @@ - + + +
+ + + + +
+ + + + +
+ +
+ @@ -77,20 +95,10 @@
- - - -
- - - - + diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.genmodel b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.genmodel index 24fb789bd3d..561acd5d435 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.genmodel +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.genmodel @@ -45,21 +45,22 @@ - - - - - - - + + + + + + + + + propertySortChoices="true" ecoreFeature="ecore:EReference architecture.ecore#//Project/base_Package"/> - - - + + + + propertySortChoices="true" ecoreFeature="ecore:EReference architecture.ecore#//ProjectDependency/base_Dependency"/> diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.notation b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.notation index 30687da9b3c..97e82ed7c19 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.notation +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.notation @@ -78,7 +78,7 @@ - + @@ -160,30 +160,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -196,7 +172,7 @@ - + @@ -224,6 +200,56 @@ + + +
+ + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -263,15 +289,15 @@ - + - - + + @@ -294,4 +320,21 @@ + + + + + + + + + + + + + + + + + diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.uml b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.uml index df85c387f8b..3e69ca0b499 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.uml +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/models/architecture.profile.uml @@ -645,53 +645,11 @@ + + A plugin project + - - - - <p> - An alternative name to be used in place of the stereotyped element's name. -</p> - - - - - - <p> - The name of the parent folder that will contain the layer, if any. -</p> -<p> - If no parent is specified, the layer is 'virtual' (no corresponding physical folder) -</p> -<p> - Ex: plugins -</p> - - - - - - <p> - The name of the parent folder that was containing the layer before the refactoring, if any. -</p> - - - - - - - - - - <p> - A comment associated to the isDeprecated=true -</p> - - - - - - + @@ -699,7 +657,7 @@ - + @@ -732,12 +690,69 @@ - - + + + + + A simple project with no type. + + + + + + + + <p> + A comment associated to the isDeprecated=true +</p> + + + + + + <p> + An alternative name to be used in place of the stereotyped element's name. +</p> + + + + + + + + + <p> + The name of the parent folder that will contain the layer, if any. +</p> +<p> + If no parent is specified, the layer is 'virtual' (no corresponding physical folder) +</p> +<p> + Ex: plugins +</p> + + + + + + <p> + The name of the parent folder that was containing the layer before the refactoring, if any. +</p> + + + + + + + + + + + diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitectureFactory.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitectureFactory.java index dbe61fc397b..7f64de900b9 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitectureFactory.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitectureFactory.java @@ -53,13 +53,22 @@ public interface ArchitectureFactory extends EFactory { Plugin createPlugin(); /** - * Returns a new object of class 'Plugin Dependency'. + * Returns a new object of class 'Project'. * * - * @return a new object of class 'Plugin Dependency'. + * @return a new object of class 'Project'. * @generated */ - PluginDependency createPluginDependency(); + Project createProject(); + + /** + * Returns a new object of class 'Project Dependency'. + * + * + * @return a new object of class 'Project Dependency'. + * @generated + */ + ProjectDependency createProjectDependency(); /** * Returns the package supported by this factory. diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitecturePackage.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitecturePackage.java index c28e55559a8..c8cabcb0006 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitecturePackage.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ArchitecturePackage.java @@ -254,14 +254,14 @@ public interface ArchitecturePackage extends EPackage { /** - * The meta object id for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl Plugin}' class. + * The meta object id for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl Project}' class. * * - * @see org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl - * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getPlugin() + * @see org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl + * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getProject() * @generated */ - int PLUGIN = 3; + int PROJECT = 4; /** * The feature id for the 'Documentation' attribute. @@ -270,7 +270,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__DOCUMENTATION = ELEMENT__DOCUMENTATION; + int PROJECT__DOCUMENTATION = ELEMENT__DOCUMENTATION; /** * The feature id for the 'Comment' attribute. @@ -279,7 +279,25 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__COMMENT = ELEMENT__COMMENT; + int PROJECT__COMMENT = ELEMENT__COMMENT; + + /** + * The feature id for the 'Is Deprecated' attribute. + * + * + * @generated + * @ordered + */ + int PROJECT__IS_DEPRECATED = ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Deprecated Comment' attribute. + * + * + * @generated + * @ordered + */ + int PROJECT__DEPRECATED_COMMENT = ELEMENT_FEATURE_COUNT + 1; /** * The feature id for the 'Name' attribute. @@ -288,7 +306,16 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__NAME = ELEMENT_FEATURE_COUNT + 0; + int PROJECT__NAME = ELEMENT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Referent' attribute. + * + * + * @generated + * @ordered + */ + int PROJECT__REFERENT = ELEMENT_FEATURE_COUNT + 3; /** * The feature id for the 'Parent Folder' attribute. @@ -297,7 +324,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__PARENT_FOLDER = ELEMENT_FEATURE_COUNT + 1; + int PROJECT__PARENT_FOLDER = ELEMENT_FEATURE_COUNT + 4; /** * The feature id for the 'Original Parent Folder' attribute. @@ -306,7 +333,53 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__ORIGINAL_PARENT_FOLDER = ELEMENT_FEATURE_COUNT + 2; + int PROJECT__ORIGINAL_PARENT_FOLDER = ELEMENT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Base Package' reference. + * + * + * @generated + * @ordered + */ + int PROJECT__BASE_PACKAGE = ELEMENT_FEATURE_COUNT + 6; + + /** + * The number of structural features of the 'Project' class. + * + * + * @generated + * @ordered + */ + int PROJECT_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 7; + + /** + * The meta object id for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl Plugin}' class. + * + * + * @see org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl + * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getPlugin() + * @generated + */ + int PLUGIN = 3; + + /** + * The feature id for the 'Documentation' attribute. + * + * + * @generated + * @ordered + */ + int PLUGIN__DOCUMENTATION = PROJECT__DOCUMENTATION; + + /** + * The feature id for the 'Comment' attribute. + * + * + * @generated + * @ordered + */ + int PLUGIN__COMMENT = PROJECT__COMMENT; /** * The feature id for the 'Is Deprecated' attribute. @@ -315,7 +388,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__IS_DEPRECATED = ELEMENT_FEATURE_COUNT + 3; + int PLUGIN__IS_DEPRECATED = PROJECT__IS_DEPRECATED; /** * The feature id for the 'Deprecated Comment' attribute. @@ -324,7 +397,16 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__DEPRECATED_COMMENT = ELEMENT_FEATURE_COUNT + 4; + int PLUGIN__DEPRECATED_COMMENT = PROJECT__DEPRECATED_COMMENT; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PLUGIN__NAME = PROJECT__NAME; /** * The feature id for the 'Referent' attribute. @@ -333,7 +415,25 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__REFERENT = ELEMENT_FEATURE_COUNT + 5; + int PLUGIN__REFERENT = PROJECT__REFERENT; + + /** + * The feature id for the 'Parent Folder' attribute. + * + * + * @generated + * @ordered + */ + int PLUGIN__PARENT_FOLDER = PROJECT__PARENT_FOLDER; + + /** + * The feature id for the 'Original Parent Folder' attribute. + * + * + * @generated + * @ordered + */ + int PLUGIN__ORIGINAL_PARENT_FOLDER = PROJECT__ORIGINAL_PARENT_FOLDER; /** * The feature id for the 'Base Package' reference. @@ -342,7 +442,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN__BASE_PACKAGE = ELEMENT_FEATURE_COUNT + 6; + int PLUGIN__BASE_PACKAGE = PROJECT__BASE_PACKAGE; /** * The number of structural features of the 'Plugin' class. @@ -351,17 +451,17 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 7; + int PLUGIN_FEATURE_COUNT = PROJECT_FEATURE_COUNT + 0; /** - * The meta object id for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl Plugin Dependency}' class. + * The meta object id for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl Project Dependency}' class. * * - * @see org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl - * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getPluginDependency() + * @see org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl + * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getProjectDependency() * @generated */ - int PLUGIN_DEPENDENCY = 4; + int PROJECT_DEPENDENCY = 5; /** * The feature id for the 'Documentation' attribute. @@ -370,7 +470,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_DEPENDENCY__DOCUMENTATION = ELEMENT__DOCUMENTATION; + int PROJECT_DEPENDENCY__DOCUMENTATION = ELEMENT__DOCUMENTATION; /** * The feature id for the 'Comment' attribute. @@ -379,7 +479,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_DEPENDENCY__COMMENT = ELEMENT__COMMENT; + int PROJECT_DEPENDENCY__COMMENT = ELEMENT__COMMENT; /** * The feature id for the 'Deprecated Comment' attribute. @@ -388,7 +488,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_DEPENDENCY__DEPRECATED_COMMENT = ELEMENT_FEATURE_COUNT + 0; + int PROJECT_DEPENDENCY__DEPRECATED_COMMENT = ELEMENT_FEATURE_COUNT + 0; /** * The feature id for the 'Is Deprecated' attribute. @@ -397,7 +497,7 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_DEPENDENCY__IS_DEPRECATED = ELEMENT_FEATURE_COUNT + 1; + int PROJECT_DEPENDENCY__IS_DEPRECATED = ELEMENT_FEATURE_COUNT + 1; /** * The feature id for the 'Base Dependency' reference. @@ -406,17 +506,16 @@ public interface ArchitecturePackage extends EPackage { * @generated * @ordered */ - int PLUGIN_DEPENDENCY__BASE_DEPENDENCY = ELEMENT_FEATURE_COUNT + 2; + int PROJECT_DEPENDENCY__BASE_DEPENDENCY = ELEMENT_FEATURE_COUNT + 2; /** - * The number of structural features of the 'Plugin Dependency' class. + * The number of structural features of the 'Project Dependency' class. * * * @generated * @ordered */ - int PLUGIN_DEPENDENCY_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 3; - + int PROJECT_DEPENDENCY_FEATURE_COUNT = ELEMENT_FEATURE_COUNT + 3; /** * Returns the meta object for class '{@link org.eclipse.papyrus.design.profile.architecture.Layer Layer}'. @@ -580,124 +679,134 @@ public interface ArchitecturePackage extends EPackage { EClass getPlugin(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getName Name}'. + * Returns the meta object for class '{@link org.eclipse.papyrus.design.profile.architecture.Project Project}'. * * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getName() - * @see #getPlugin() + * @return the meta object for class 'Project'. + * @see org.eclipse.papyrus.design.profile.architecture.Project * @generated */ - EAttribute getPlugin_Name(); + EClass getProject(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getParentFolder Parent Folder}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#isDeprecated Is Deprecated}'. * * - * @return the meta object for the attribute 'Parent Folder'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getParentFolder() - * @see #getPlugin() + * @return the meta object for the attribute 'Is Deprecated'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#isDeprecated() + * @see #getProject() * @generated */ - EAttribute getPlugin_ParentFolder(); + EAttribute getProject_IsDeprecated(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getOriginalParentFolder Original Parent Folder}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#getDeprecatedComment Deprecated Comment}'. * * - * @return the meta object for the attribute 'Original Parent Folder'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getOriginalParentFolder() - * @see #getPlugin() + * @return the meta object for the attribute 'Deprecated Comment'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#getDeprecatedComment() + * @see #getProject() * @generated */ - EAttribute getPlugin_OriginalParentFolder(); + EAttribute getProject_DeprecatedComment(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#isDeprecated Is Deprecated}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#getName Name}'. * * - * @return the meta object for the attribute 'Is Deprecated'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#isDeprecated() - * @see #getPlugin() + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#getName() + * @see #getProject() * @generated */ - EAttribute getPlugin_IsDeprecated(); + EAttribute getProject_Name(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getDeprecatedComment Deprecated Comment}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#getReferent Referent}'. * * - * @return the meta object for the attribute 'Deprecated Comment'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getDeprecatedComment() - * @see #getPlugin() + * @return the meta object for the attribute 'Referent'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#getReferent() + * @see #getProject() * @generated */ - EAttribute getPlugin_DeprecatedComment(); + EAttribute getProject_Referent(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getReferent Referent}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#getParentFolder Parent Folder}'. * * - * @return the meta object for the attribute 'Referent'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getReferent() - * @see #getPlugin() + * @return the meta object for the attribute 'Parent Folder'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#getParentFolder() + * @see #getProject() + * @generated + */ + EAttribute getProject_ParentFolder(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.Project#getOriginalParentFolder Original Parent Folder}'. + * + * + * @return the meta object for the attribute 'Original Parent Folder'. + * @see org.eclipse.papyrus.design.profile.architecture.Project#getOriginalParentFolder() + * @see #getProject() * @generated */ - EAttribute getPlugin_Referent(); + EAttribute getProject_OriginalParentFolder(); /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getBase_Package Base Package}'. + * Returns the meta object for the reference '{@link org.eclipse.papyrus.design.profile.architecture.Project#getBase_Package Base Package}'. * * * @return the meta object for the reference 'Base Package'. - * @see org.eclipse.papyrus.design.profile.architecture.Plugin#getBase_Package() - * @see #getPlugin() + * @see org.eclipse.papyrus.design.profile.architecture.Project#getBase_Package() + * @see #getProject() * @generated */ - EReference getPlugin_Base_Package(); + EReference getProject_Base_Package(); /** - * Returns the meta object for class '{@link org.eclipse.papyrus.design.profile.architecture.PluginDependency Plugin Dependency}'. + * Returns the meta object for class '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency Project Dependency}'. * * - * @return the meta object for class 'Plugin Dependency'. - * @see org.eclipse.papyrus.design.profile.architecture.PluginDependency + * @return the meta object for class 'Project Dependency'. + * @see org.eclipse.papyrus.design.profile.architecture.ProjectDependency * @generated */ - EClass getPluginDependency(); + EClass getProjectDependency(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.PluginDependency#getDeprecatedComment Deprecated Comment}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getDeprecatedComment Deprecated Comment}'. * * * @return the meta object for the attribute 'Deprecated Comment'. - * @see org.eclipse.papyrus.design.profile.architecture.PluginDependency#getDeprecatedComment() - * @see #getPluginDependency() + * @see org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getDeprecatedComment() + * @see #getProjectDependency() * @generated */ - EAttribute getPluginDependency_DeprecatedComment(); + EAttribute getProjectDependency_DeprecatedComment(); /** - * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.PluginDependency#isDeprecated Is Deprecated}'. + * Returns the meta object for the attribute '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#isDeprecated Is Deprecated}'. * * * @return the meta object for the attribute 'Is Deprecated'. - * @see org.eclipse.papyrus.design.profile.architecture.PluginDependency#isDeprecated() - * @see #getPluginDependency() + * @see org.eclipse.papyrus.design.profile.architecture.ProjectDependency#isDeprecated() + * @see #getProjectDependency() * @generated */ - EAttribute getPluginDependency_IsDeprecated(); + EAttribute getProjectDependency_IsDeprecated(); /** - * Returns the meta object for the reference '{@link org.eclipse.papyrus.design.profile.architecture.PluginDependency#getBase_Dependency Base Dependency}'. + * Returns the meta object for the reference '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getBase_Dependency Base Dependency}'. * * * @return the meta object for the reference 'Base Dependency'. - * @see org.eclipse.papyrus.design.profile.architecture.PluginDependency#getBase_Dependency() - * @see #getPluginDependency() + * @see org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getBase_Dependency() + * @see #getProjectDependency() * @generated */ - EReference getPluginDependency_Base_Dependency(); + EReference getProjectDependency_Base_Dependency(); /** * Returns the factory that creates the instances of the model. @@ -850,52 +959,62 @@ public interface ArchitecturePackage extends EPackage { EClass PLUGIN = eINSTANCE.getPlugin(); /** - * The meta object literal for the 'Name' attribute feature. + * The meta object literal for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl Project}' class. * * + * @see org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl + * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getProject() * @generated */ - EAttribute PLUGIN__NAME = eINSTANCE.getPlugin_Name(); + EClass PROJECT = eINSTANCE.getProject(); /** - * The meta object literal for the 'Parent Folder' attribute feature. + * The meta object literal for the 'Is Deprecated' attribute feature. * * * @generated */ - EAttribute PLUGIN__PARENT_FOLDER = eINSTANCE.getPlugin_ParentFolder(); + EAttribute PROJECT__IS_DEPRECATED = eINSTANCE.getProject_IsDeprecated(); /** - * The meta object literal for the 'Original Parent Folder' attribute feature. + * The meta object literal for the 'Deprecated Comment' attribute feature. * * * @generated */ - EAttribute PLUGIN__ORIGINAL_PARENT_FOLDER = eINSTANCE.getPlugin_OriginalParentFolder(); + EAttribute PROJECT__DEPRECATED_COMMENT = eINSTANCE.getProject_DeprecatedComment(); /** - * The meta object literal for the 'Is Deprecated' attribute feature. + * The meta object literal for the 'Name' attribute feature. * * * @generated */ - EAttribute PLUGIN__IS_DEPRECATED = eINSTANCE.getPlugin_IsDeprecated(); + EAttribute PROJECT__NAME = eINSTANCE.getProject_Name(); /** - * The meta object literal for the 'Deprecated Comment' attribute feature. + * The meta object literal for the 'Referent' attribute feature. * * * @generated */ - EAttribute PLUGIN__DEPRECATED_COMMENT = eINSTANCE.getPlugin_DeprecatedComment(); + EAttribute PROJECT__REFERENT = eINSTANCE.getProject_Referent(); /** - * The meta object literal for the 'Referent' attribute feature. + * The meta object literal for the 'Parent Folder' attribute feature. + * + * + * @generated + */ + EAttribute PROJECT__PARENT_FOLDER = eINSTANCE.getProject_ParentFolder(); + + /** + * The meta object literal for the 'Original Parent Folder' attribute feature. * * * @generated */ - EAttribute PLUGIN__REFERENT = eINSTANCE.getPlugin_Referent(); + EAttribute PROJECT__ORIGINAL_PARENT_FOLDER = eINSTANCE.getProject_OriginalParentFolder(); /** * The meta object literal for the 'Base Package' reference feature. @@ -903,17 +1022,17 @@ public interface ArchitecturePackage extends EPackage { * * @generated */ - EReference PLUGIN__BASE_PACKAGE = eINSTANCE.getPlugin_Base_Package(); + EReference PROJECT__BASE_PACKAGE = eINSTANCE.getProject_Base_Package(); /** - * The meta object literal for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl Plugin Dependency}' class. + * The meta object literal for the '{@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl Project Dependency}' class. * * - * @see org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl - * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getPluginDependency() + * @see org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl + * @see org.eclipse.papyrus.design.profile.architecture.impl.ArchitecturePackageImpl#getProjectDependency() * @generated */ - EClass PLUGIN_DEPENDENCY = eINSTANCE.getPluginDependency(); + EClass PROJECT_DEPENDENCY = eINSTANCE.getProjectDependency(); /** * The meta object literal for the 'Deprecated Comment' attribute feature. @@ -921,7 +1040,7 @@ public interface ArchitecturePackage extends EPackage { * * @generated */ - EAttribute PLUGIN_DEPENDENCY__DEPRECATED_COMMENT = eINSTANCE.getPluginDependency_DeprecatedComment(); + EAttribute PROJECT_DEPENDENCY__DEPRECATED_COMMENT = eINSTANCE.getProjectDependency_DeprecatedComment(); /** * The meta object literal for the 'Is Deprecated' attribute feature. @@ -929,7 +1048,7 @@ public interface ArchitecturePackage extends EPackage { * * @generated */ - EAttribute PLUGIN_DEPENDENCY__IS_DEPRECATED = eINSTANCE.getPluginDependency_IsDeprecated(); + EAttribute PROJECT_DEPENDENCY__IS_DEPRECATED = eINSTANCE.getProjectDependency_IsDeprecated(); /** * The meta object literal for the 'Base Dependency' reference feature. @@ -937,7 +1056,7 @@ public interface ArchitecturePackage extends EPackage { * * @generated */ - EReference PLUGIN_DEPENDENCY__BASE_DEPENDENCY = eINSTANCE.getPluginDependency_Base_Dependency(); + EReference PROJECT_DEPENDENCY__BASE_DEPENDENCY = eINSTANCE.getProjectDependency_Base_Dependency(); } diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Plugin.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Plugin.java index fb5f0305e9f..1683e1df818 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Plugin.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Plugin.java @@ -12,215 +12,15 @@ package org.eclipse.papyrus.design.profile.architecture; * A representation of the model object 'Plugin'. * * - *

- * The following features are supported: - *

    - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getName Name}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getParentFolder Parent Folder}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getOriginalParentFolder Original Parent Folder}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#isDeprecated Is Deprecated}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getDeprecatedComment Deprecated Comment}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getReferent Referent}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.Plugin#getBase_Package Base Package}
  • - *
- *

+ * + * A plugin project + * + * * * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin() * @model * @generated */ -public interface Plugin extends Element { - /** - * Returns the value of the 'Name' attribute. - * - * - * - *

- * An alternative name to be used in place of the stereotyped element's name. - *

- * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_Name() - * @model required="true" ordered="false" - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Parent Folder' attribute. - * - * - * - *

- * The name of the parent folder that will contain the layer, if any. - *

- *

- * If no parent is specified, the layer is 'virtual' (no corresponding physical folder) - *

- *

- * Ex: plugins - *

- * - * @return the value of the 'Parent Folder' attribute. - * @see #setParentFolder(String) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_ParentFolder() - * @model required="true" ordered="false" - * @generated - */ - String getParentFolder(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getParentFolder Parent Folder}' attribute. - * - * - * @param value the new value of the 'Parent Folder' attribute. - * @see #getParentFolder() - * @generated - */ - void setParentFolder(String value); - - /** - * Returns the value of the 'Original Parent Folder' attribute. - * - * - * - *

- * The name of the parent folder that was containing the layer before the refactoring, if any. - *

- * - * - * @return the value of the 'Original Parent Folder' attribute. - * @see #setOriginalParentFolder(String) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_OriginalParentFolder() - * @model required="true" ordered="false" - * @generated - */ - String getOriginalParentFolder(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getOriginalParentFolder Original Parent Folder}' attribute. - * - * - * @param value the new value of the 'Original Parent Folder' attribute. - * @see #getOriginalParentFolder() - * @generated - */ - void setOriginalParentFolder(String value); - - /** - * Returns the value of the 'Is Deprecated' attribute. - * - *

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

- * - * @return the value of the 'Is Deprecated' attribute. - * @see #setIsDeprecated(boolean) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_IsDeprecated() - * @model required="true" ordered="false" - * @generated - */ - boolean isDeprecated(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#isDeprecated Is Deprecated}' attribute. - * - * - * @param value the new value of the 'Is Deprecated' attribute. - * @see #isDeprecated() - * @generated - */ - void setIsDeprecated(boolean value); - - /** - * Returns the value of the 'Deprecated Comment' attribute. - * - * - * - *

- * A comment associated to the isDeprecated=true - *

- * - * @return the value of the 'Deprecated Comment' attribute. - * @see #setDeprecatedComment(String) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_DeprecatedComment() - * @model required="true" ordered="false" - * @generated - */ - String getDeprecatedComment(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getDeprecatedComment Deprecated Comment}' attribute. - * - * - * @param value the new value of the 'Deprecated Comment' attribute. - * @see #getDeprecatedComment() - * @generated - */ - void setDeprecatedComment(String value); - - /** - * Returns the value of the 'Referent' attribute. - * - *

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

- * - * @return the value of the 'Referent' attribute. - * @see #setReferent(String) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_Referent() - * @model required="true" ordered="false" - * @generated - */ - String getReferent(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getReferent Referent}' attribute. - * - * - * @param value the new value of the 'Referent' attribute. - * @see #getReferent() - * @generated - */ - void setReferent(String value); - - /** - * Returns the value of the 'Base Package' reference. - * - *

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

- * - * @return the value of the 'Base Package' reference. - * @see #setBase_Package(org.eclipse.uml2.uml.Package) - * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getPlugin_Base_Package() - * @model required="true" ordered="false" - * @generated - */ - org.eclipse.uml2.uml.Package getBase_Package(); - - /** - * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Plugin#getBase_Package Base Package}' reference. - * - * - * @param value the new value of the 'Base Package' reference. - * @see #getBase_Package() - * @generated - */ - void setBase_Package(org.eclipse.uml2.uml.Package value); +public interface Plugin extends Project, Element { } // Plugin diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Project.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Project.java new file mode 100644 index 00000000000..ae03bf8bebe --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/Project.java @@ -0,0 +1,230 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture; + + +/** + * + * A representation of the model object 'Project'. + * + * + * + * A simple project with no type. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#isDeprecated Is Deprecated}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getDeprecatedComment Deprecated Comment}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getName Name}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getReferent Referent}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getParentFolder Parent Folder}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getOriginalParentFolder Original Parent Folder}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.Project#getBase_Package Base Package}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject() + * @model + * @generated + */ +public interface Project extends Element { + /** + * Returns the value of the 'Is Deprecated' attribute. + * + *

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

+ * + * @return the value of the 'Is Deprecated' attribute. + * @see #setIsDeprecated(boolean) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_IsDeprecated() + * @model required="true" ordered="false" + * @generated + */ + boolean isDeprecated(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#isDeprecated Is Deprecated}' attribute. + * + * + * @param value the new value of the 'Is Deprecated' attribute. + * @see #isDeprecated() + * @generated + */ + void setIsDeprecated(boolean value); + + /** + * Returns the value of the 'Deprecated Comment' attribute. + * + * + * + *

+ * A comment associated to the isDeprecated=true + *

+ * + * @return the value of the 'Deprecated Comment' attribute. + * @see #setDeprecatedComment(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_DeprecatedComment() + * @model required="true" ordered="false" + * @generated + */ + String getDeprecatedComment(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getDeprecatedComment Deprecated Comment}' attribute. + * + * + * @param value the new value of the 'Deprecated Comment' attribute. + * @see #getDeprecatedComment() + * @generated + */ + void setDeprecatedComment(String value); + + /** + * Returns the value of the 'Name' attribute. + * + * + * + *

+ * An alternative name to be used in place of the stereotyped element's name. + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_Name() + * @model required="true" ordered="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Referent' attribute. + * + *

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

+ * + * @return the value of the 'Referent' attribute. + * @see #setReferent(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_Referent() + * @model required="true" ordered="false" + * @generated + */ + String getReferent(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getReferent Referent}' attribute. + * + * + * @param value the new value of the 'Referent' attribute. + * @see #getReferent() + * @generated + */ + void setReferent(String value); + + /** + * Returns the value of the 'Parent Folder' attribute. + * + * + * + *

+ * The name of the parent folder that will contain the layer, if any. + *

+ *

+ * If no parent is specified, the layer is 'virtual' (no corresponding physical folder) + *

+ *

+ * Ex: plugins + *

+ * + * @return the value of the 'Parent Folder' attribute. + * @see #setParentFolder(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_ParentFolder() + * @model required="true" ordered="false" + * @generated + */ + String getParentFolder(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getParentFolder Parent Folder}' attribute. + * + * + * @param value the new value of the 'Parent Folder' attribute. + * @see #getParentFolder() + * @generated + */ + void setParentFolder(String value); + + /** + * Returns the value of the 'Original Parent Folder' attribute. + * + * + * + *

+ * The name of the parent folder that was containing the layer before the refactoring, if any. + *

+ * + * + * @return the value of the 'Original Parent Folder' attribute. + * @see #setOriginalParentFolder(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_OriginalParentFolder() + * @model required="true" ordered="false" + * @generated + */ + String getOriginalParentFolder(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getOriginalParentFolder Original Parent Folder}' attribute. + * + * + * @param value the new value of the 'Original Parent Folder' attribute. + * @see #getOriginalParentFolder() + * @generated + */ + void setOriginalParentFolder(String value); + + /** + * Returns the value of the 'Base Package' reference. + * + *

+ * If the meaning of the 'Base Package' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Package' reference. + * @see #setBase_Package(org.eclipse.uml2.uml.Package) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProject_Base_Package() + * @model required="true" ordered="false" + * @generated + */ + org.eclipse.uml2.uml.Package getBase_Package(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.Project#getBase_Package Base Package}' reference. + * + * + * @param value the new value of the 'Base Package' reference. + * @see #getBase_Package() + * @generated + */ + void setBase_Package(org.eclipse.uml2.uml.Package value); + +} // Project diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ProjectDependency.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ProjectDependency.java new file mode 100644 index 00000000000..584323077de --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/ProjectDependency.java @@ -0,0 +1,109 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture; + +import org.eclipse.uml2.uml.Dependency; + +/** + * + * A representation of the model object 'Project Dependency'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getDeprecatedComment Deprecated Comment}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#isDeprecated Is Deprecated}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getBase_Dependency Base Dependency}
  • + *
+ *

+ * + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProjectDependency() + * @model + * @generated + */ +public interface ProjectDependency extends Element { + /** + * Returns the value of the 'Deprecated Comment' attribute. + * + * + * + *

+ * A comment associated to the isDeprecated=true + *

+ * + * @return the value of the 'Deprecated Comment' attribute. + * @see #setDeprecatedComment(String) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProjectDependency_DeprecatedComment() + * @model required="true" ordered="false" + * @generated + */ + String getDeprecatedComment(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getDeprecatedComment Deprecated Comment}' attribute. + * + * + * @param value the new value of the 'Deprecated Comment' attribute. + * @see #getDeprecatedComment() + * @generated + */ + void setDeprecatedComment(String value); + + /** + * Returns the value of the 'Is Deprecated' attribute. + * + *

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

+ * + * @return the value of the 'Is Deprecated' attribute. + * @see #setIsDeprecated(boolean) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProjectDependency_IsDeprecated() + * @model required="true" ordered="false" + * @generated + */ + boolean isDeprecated(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#isDeprecated Is Deprecated}' attribute. + * + * + * @param value the new value of the 'Is Deprecated' attribute. + * @see #isDeprecated() + * @generated + */ + void setIsDeprecated(boolean value); + + /** + * Returns the value of the 'Base Dependency' reference. + * + *

+ * If the meaning of the 'Base Dependency' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Base Dependency' reference. + * @see #setBase_Dependency(Dependency) + * @see org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage#getProjectDependency_Base_Dependency() + * @model required="true" ordered="false" + * @generated + */ + Dependency getBase_Dependency(); + + /** + * Sets the value of the '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency#getBase_Dependency Base Dependency}' reference. + * + * + * @param value the new value of the 'Base Dependency' reference. + * @see #getBase_Dependency() + * @generated + */ + void setBase_Dependency(Dependency value); + +} // ProjectDependency diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitectureFactoryImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitectureFactoryImpl.java index 6a3b6318359..d64d2082c2b 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitectureFactoryImpl.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitectureFactoryImpl.java @@ -63,7 +63,8 @@ public class ArchitectureFactoryImpl extends EFactoryImpl implements Architectur case ArchitecturePackage.LAYER: return createLayer(); case ArchitecturePackage.LAYER_DEPENDENCY: return createLayerDependency(); case ArchitecturePackage.PLUGIN: return createPlugin(); - case ArchitecturePackage.PLUGIN_DEPENDENCY: return createPluginDependency(); + case ArchitecturePackage.PROJECT: return createProject(); + case ArchitecturePackage.PROJECT_DEPENDENCY: return createProjectDependency(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -104,9 +105,19 @@ public class ArchitectureFactoryImpl extends EFactoryImpl implements Architectur * * @generated */ - public PluginDependency createPluginDependency() { - PluginDependencyImpl pluginDependency = new PluginDependencyImpl(); - return pluginDependency; + public Project createProject() { + ProjectImpl project = new ProjectImpl(); + return project; + } + + /** + * + * + * @generated + */ + public ProjectDependency createProjectDependency() { + ProjectDependencyImpl projectDependency = new ProjectDependencyImpl(); + return projectDependency; } /** diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitecturePackageImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitecturePackageImpl.java index 98578dcda52..720a9ce446b 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitecturePackageImpl.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ArchitecturePackageImpl.java @@ -19,6 +19,8 @@ import org.eclipse.papyrus.design.profile.architecture.Element; import org.eclipse.papyrus.design.profile.architecture.Layer; import org.eclipse.papyrus.design.profile.architecture.LayerDependency; import org.eclipse.papyrus.design.profile.architecture.Plugin; +import org.eclipse.papyrus.design.profile.architecture.Project; +import org.eclipse.papyrus.design.profile.architecture.ProjectDependency; import org.eclipse.papyrus.design.profile.architecture.PluginDependency; import org.eclipse.uml2.uml.UMLPackage; @@ -62,7 +64,14 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - private EClass pluginDependencyEClass = null; + private EClass projectEClass = null; + + /** + * + * + * @generated + */ + private EClass projectDependencyEClass = null; /** * Creates an instance of the model Package, registered with @@ -268,8 +277,17 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_Name() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(0); + public EClass getProject() { + return projectEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getProject_IsDeprecated() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(0); } /** @@ -277,8 +295,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_ParentFolder() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(1); + public EAttribute getProject_DeprecatedComment() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(1); } /** @@ -286,8 +304,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_OriginalParentFolder() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(2); + public EAttribute getProject_Name() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(2); } /** @@ -295,8 +313,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_IsDeprecated() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(3); + public EAttribute getProject_Referent() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(3); } /** @@ -304,8 +322,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_DeprecatedComment() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(4); + public EAttribute getProject_ParentFolder() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(4); } /** @@ -313,8 +331,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPlugin_Referent() { - return (EAttribute)pluginEClass.getEStructuralFeatures().get(5); + public EAttribute getProject_OriginalParentFolder() { + return (EAttribute)projectEClass.getEStructuralFeatures().get(5); } /** @@ -322,8 +340,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EReference getPlugin_Base_Package() { - return (EReference)pluginEClass.getEStructuralFeatures().get(6); + public EReference getProject_Base_Package() { + return (EReference)projectEClass.getEStructuralFeatures().get(6); } /** @@ -331,8 +349,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EClass getPluginDependency() { - return pluginDependencyEClass; + public EClass getProjectDependency() { + return projectDependencyEClass; } /** @@ -340,8 +358,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPluginDependency_DeprecatedComment() { - return (EAttribute)pluginDependencyEClass.getEStructuralFeatures().get(0); + public EAttribute getProjectDependency_DeprecatedComment() { + return (EAttribute)projectDependencyEClass.getEStructuralFeatures().get(0); } /** @@ -349,8 +367,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EAttribute getPluginDependency_IsDeprecated() { - return (EAttribute)pluginDependencyEClass.getEStructuralFeatures().get(1); + public EAttribute getProjectDependency_IsDeprecated() { + return (EAttribute)projectDependencyEClass.getEStructuralFeatures().get(1); } /** @@ -358,8 +376,8 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur * * @generated */ - public EReference getPluginDependency_Base_Dependency() { - return (EReference)pluginDependencyEClass.getEStructuralFeatures().get(2); + public EReference getProjectDependency_Base_Dependency() { + return (EReference)projectDependencyEClass.getEStructuralFeatures().get(2); } /** @@ -408,18 +426,20 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur createEReference(layerDependencyEClass, LAYER_DEPENDENCY__BASE_DEPENDENCY); pluginEClass = createEClass(PLUGIN); - createEAttribute(pluginEClass, PLUGIN__NAME); - createEAttribute(pluginEClass, PLUGIN__PARENT_FOLDER); - createEAttribute(pluginEClass, PLUGIN__ORIGINAL_PARENT_FOLDER); - createEAttribute(pluginEClass, PLUGIN__IS_DEPRECATED); - createEAttribute(pluginEClass, PLUGIN__DEPRECATED_COMMENT); - createEAttribute(pluginEClass, PLUGIN__REFERENT); - createEReference(pluginEClass, PLUGIN__BASE_PACKAGE); - pluginDependencyEClass = createEClass(PLUGIN_DEPENDENCY); - createEAttribute(pluginDependencyEClass, PLUGIN_DEPENDENCY__DEPRECATED_COMMENT); - createEAttribute(pluginDependencyEClass, PLUGIN_DEPENDENCY__IS_DEPRECATED); - createEReference(pluginDependencyEClass, PLUGIN_DEPENDENCY__BASE_DEPENDENCY); + projectEClass = createEClass(PROJECT); + createEAttribute(projectEClass, PROJECT__IS_DEPRECATED); + createEAttribute(projectEClass, PROJECT__DEPRECATED_COMMENT); + createEAttribute(projectEClass, PROJECT__NAME); + createEAttribute(projectEClass, PROJECT__REFERENT); + createEAttribute(projectEClass, PROJECT__PARENT_FOLDER); + createEAttribute(projectEClass, PROJECT__ORIGINAL_PARENT_FOLDER); + createEReference(projectEClass, PROJECT__BASE_PACKAGE); + + projectDependencyEClass = createEClass(PROJECT_DEPENDENCY); + createEAttribute(projectDependencyEClass, PROJECT_DEPENDENCY__DEPRECATED_COMMENT); + createEAttribute(projectDependencyEClass, PROJECT_DEPENDENCY__IS_DEPRECATED); + createEReference(projectDependencyEClass, PROJECT_DEPENDENCY__BASE_DEPENDENCY); } /** @@ -455,8 +475,10 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur // Add supertypes to classes layerEClass.getESuperTypes().add(this.getElement()); layerDependencyEClass.getESuperTypes().add(this.getElement()); + pluginEClass.getESuperTypes().add(this.getProject()); pluginEClass.getESuperTypes().add(this.getElement()); - pluginDependencyEClass.getESuperTypes().add(this.getElement()); + projectEClass.getESuperTypes().add(this.getElement()); + projectDependencyEClass.getESuperTypes().add(this.getElement()); // Initialize classes and features; add operations and parameters initEClass(layerEClass, Layer.class, "Layer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -477,18 +499,20 @@ public class ArchitecturePackageImpl extends EPackageImpl implements Architectur initEReference(getLayerDependency_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, LayerDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEClass(pluginEClass, Plugin.class, "Plugin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPlugin_Name(), ecorePackage.getEString(), "name", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPlugin_ParentFolder(), ecorePackage.getEString(), "parentFolder", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPlugin_OriginalParentFolder(), ecorePackage.getEString(), "originalParentFolder", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPlugin_IsDeprecated(), ecorePackage.getEBoolean(), "isDeprecated", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPlugin_DeprecatedComment(), ecorePackage.getEString(), "deprecatedComment", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPlugin_Referent(), ecorePackage.getEString(), "referent", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getPlugin_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, Plugin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(pluginDependencyEClass, PluginDependency.class, "PluginDependency", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPluginDependency_DeprecatedComment(), ecorePackage.getEString(), "deprecatedComment", null, 1, 1, PluginDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEAttribute(getPluginDependency_IsDeprecated(), ecorePackage.getEBoolean(), "isDeprecated", null, 1, 1, PluginDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getPluginDependency_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, PluginDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(projectEClass, Project.class, "Project", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProject_IsDeprecated(), ecorePackage.getEBoolean(), "isDeprecated", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProject_DeprecatedComment(), ecorePackage.getEString(), "deprecatedComment", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProject_Name(), ecorePackage.getEString(), "name", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProject_Referent(), ecorePackage.getEString(), "referent", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProject_ParentFolder(), ecorePackage.getEString(), "parentFolder", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProject_OriginalParentFolder(), ecorePackage.getEString(), "originalParentFolder", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getProject_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, Project.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(projectDependencyEClass, ProjectDependency.class, "ProjectDependency", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getProjectDependency_DeprecatedComment(), ecorePackage.getEString(), "deprecatedComment", null, 1, 1, ProjectDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEAttribute(getProjectDependency_IsDeprecated(), ecorePackage.getEBoolean(), "isDeprecated", null, 1, 1, ProjectDependency.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getProjectDependency_Base_Dependency(), theUMLPackage.getDependency(), null, "base_Dependency", null, 1, 1, ProjectDependency.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); diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginDependencyImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginDependencyImpl.java deleted file mode 100644 index aa863676d1d..00000000000 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginDependencyImpl.java +++ /dev/null @@ -1,283 +0,0 @@ -/** - * - * - * - * $Id$ - */ -package org.eclipse.papyrus.design.profile.architecture.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; -import org.eclipse.papyrus.design.profile.architecture.PluginDependency; - -import org.eclipse.uml2.uml.Dependency; - -/** - * - * An implementation of the model object 'Plugin Dependency'. - * - *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl#getDeprecatedComment Deprecated Comment}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl#isDeprecated Is Deprecated}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginDependencyImpl#getBase_Dependency Base Dependency}
  • - *
- *

- * - * @generated - */ -public class PluginDependencyImpl extends ElementImpl implements PluginDependency { - /** - * The default value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. - * - * - * @see #getDeprecatedComment() - * @generated - * @ordered - */ - protected static final String DEPRECATED_COMMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. - * - * - * @see #getDeprecatedComment() - * @generated - * @ordered - */ - protected String deprecatedComment = DEPRECATED_COMMENT_EDEFAULT; - - /** - * The default value of the '{@link #isDeprecated() Is Deprecated}' attribute. - * - * - * @see #isDeprecated() - * @generated - * @ordered - */ - protected static final boolean IS_DEPRECATED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDeprecated() Is Deprecated}' attribute. - * - * - * @see #isDeprecated() - * @generated - * @ordered - */ - protected boolean isDeprecated = IS_DEPRECATED_EDEFAULT; - - /** - * The cached value of the '{@link #getBase_Dependency() Base Dependency}' reference. - * - * - * @see #getBase_Dependency() - * @generated - * @ordered - */ - protected Dependency base_Dependency; - - /** - * - * - * @generated - */ - protected PluginDependencyImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return ArchitecturePackage.Literals.PLUGIN_DEPENDENCY; - } - - /** - * - * - * @generated - */ - public String getDeprecatedComment() { - return deprecatedComment; - } - - /** - * - * - * @generated - */ - public void setDeprecatedComment(String newDeprecatedComment) { - String oldDeprecatedComment = deprecatedComment; - deprecatedComment = newDeprecatedComment; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT, oldDeprecatedComment, deprecatedComment)); - } - - /** - * - * - * @generated - */ - public boolean isDeprecated() { - return isDeprecated; - } - - /** - * - * - * @generated - */ - public void setIsDeprecated(boolean newIsDeprecated) { - boolean oldIsDeprecated = isDeprecated; - isDeprecated = newIsDeprecated; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED, oldIsDeprecated, isDeprecated)); - } - - /** - * - * - * @generated - */ - public Dependency getBase_Dependency() { - if (base_Dependency != null && base_Dependency.eIsProxy()) { - InternalEObject oldBase_Dependency = (InternalEObject)base_Dependency; - base_Dependency = (Dependency)eResolveProxy(oldBase_Dependency); - if (base_Dependency != oldBase_Dependency) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); - } - } - return base_Dependency; - } - - /** - * - * - * @generated - */ - public Dependency basicGetBase_Dependency() { - return base_Dependency; - } - - /** - * - * - * @generated - */ - public void setBase_Dependency(Dependency newBase_Dependency) { - Dependency oldBase_Dependency = base_Dependency; - base_Dependency = newBase_Dependency; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT: - return getDeprecatedComment(); - case ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED: - return isDeprecated(); - case ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY: - if (resolve) return getBase_Dependency(); - return basicGetBase_Dependency(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT: - setDeprecatedComment((String)newValue); - return; - case ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED: - setIsDeprecated((Boolean)newValue); - return; - case ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY: - setBase_Dependency((Dependency)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT: - setDeprecatedComment(DEPRECATED_COMMENT_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED: - setIsDeprecated(IS_DEPRECATED_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY: - setBase_Dependency((Dependency)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ArchitecturePackage.PLUGIN_DEPENDENCY__DEPRECATED_COMMENT: - return DEPRECATED_COMMENT_EDEFAULT == null ? deprecatedComment != null : !DEPRECATED_COMMENT_EDEFAULT.equals(deprecatedComment); - case ArchitecturePackage.PLUGIN_DEPENDENCY__IS_DEPRECATED: - return isDeprecated != IS_DEPRECATED_EDEFAULT; - case ArchitecturePackage.PLUGIN_DEPENDENCY__BASE_DEPENDENCY: - return base_Dependency != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (deprecatedComment: "); - result.append(deprecatedComment); - result.append(", isDeprecated: "); - result.append(isDeprecated); - result.append(')'); - return result.toString(); - } - -} //PluginDependencyImpl diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginImpl.java index 477c5d36373..d0892b1d3ad 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginImpl.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/PluginImpl.java @@ -21,151 +21,11 @@ import org.eclipse.papyrus.design.profile.architecture.Plugin; * An implementation of the model object 'Plugin'. * *

- * The following features are implemented: - *

    - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getName Name}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getParentFolder Parent Folder}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getOriginalParentFolder Original Parent Folder}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#isDeprecated Is Deprecated}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getDeprecatedComment Deprecated Comment}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getReferent Referent}
  • - *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.PluginImpl#getBase_Package Base Package}
  • - *
*

* * @generated */ -public class PluginImpl extends ElementImpl implements Plugin { - /** - * 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 - */ - protected String name = NAME_EDEFAULT; - - /** - * The default value of the '{@link #getParentFolder() Parent Folder}' attribute. - * - * - * @see #getParentFolder() - * @generated - * @ordered - */ - protected static final String PARENT_FOLDER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getParentFolder() Parent Folder}' attribute. - * - * - * @see #getParentFolder() - * @generated - * @ordered - */ - protected String parentFolder = PARENT_FOLDER_EDEFAULT; - - /** - * The default value of the '{@link #getOriginalParentFolder() Original Parent Folder}' attribute. - * - * - * @see #getOriginalParentFolder() - * @generated - * @ordered - */ - protected static final String ORIGINAL_PARENT_FOLDER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getOriginalParentFolder() Original Parent Folder}' attribute. - * - * - * @see #getOriginalParentFolder() - * @generated - * @ordered - */ - protected String originalParentFolder = ORIGINAL_PARENT_FOLDER_EDEFAULT; - - /** - * The default value of the '{@link #isDeprecated() Is Deprecated}' attribute. - * - * - * @see #isDeprecated() - * @generated - * @ordered - */ - protected static final boolean IS_DEPRECATED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isDeprecated() Is Deprecated}' attribute. - * - * - * @see #isDeprecated() - * @generated - * @ordered - */ - protected boolean isDeprecated = IS_DEPRECATED_EDEFAULT; - - /** - * The default value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. - * - * - * @see #getDeprecatedComment() - * @generated - * @ordered - */ - protected static final String DEPRECATED_COMMENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. - * - * - * @see #getDeprecatedComment() - * @generated - * @ordered - */ - protected String deprecatedComment = DEPRECATED_COMMENT_EDEFAULT; - - /** - * The default value of the '{@link #getReferent() Referent}' attribute. - * - * - * @see #getReferent() - * @generated - * @ordered - */ - protected static final String REFERENT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getReferent() Referent}' attribute. - * - * - * @see #getReferent() - * @generated - * @ordered - */ - protected String referent = REFERENT_EDEFAULT; - - /** - * The cached value of the '{@link #getBase_Package() Base Package}' reference. - * - * - * @see #getBase_Package() - * @generated - * @ordered - */ - protected org.eclipse.uml2.uml.Package base_Package; - +public class PluginImpl extends ProjectImpl implements Plugin { /** * * @@ -185,313 +45,4 @@ public class PluginImpl extends ElementImpl implements Plugin { return ArchitecturePackage.Literals.PLUGIN; } - /** - * - * - * @generated - */ - public String getName() { - return name; - } - - /** - * - * - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - public String getParentFolder() { - return parentFolder; - } - - /** - * - * - * @generated - */ - public void setParentFolder(String newParentFolder) { - String oldParentFolder = parentFolder; - parentFolder = newParentFolder; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__PARENT_FOLDER, oldParentFolder, parentFolder)); - } - - /** - * - * - * @generated - */ - public String getOriginalParentFolder() { - return originalParentFolder; - } - - /** - * - * - * @generated - */ - public void setOriginalParentFolder(String newOriginalParentFolder) { - String oldOriginalParentFolder = originalParentFolder; - originalParentFolder = newOriginalParentFolder; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER, oldOriginalParentFolder, originalParentFolder)); - } - - /** - * - * - * @generated - */ - public boolean isDeprecated() { - return isDeprecated; - } - - /** - * - * - * @generated - */ - public void setIsDeprecated(boolean newIsDeprecated) { - boolean oldIsDeprecated = isDeprecated; - isDeprecated = newIsDeprecated; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__IS_DEPRECATED, oldIsDeprecated, isDeprecated)); - } - - /** - * - * - * @generated - */ - public String getDeprecatedComment() { - return deprecatedComment; - } - - /** - * - * - * @generated - */ - public void setDeprecatedComment(String newDeprecatedComment) { - String oldDeprecatedComment = deprecatedComment; - deprecatedComment = newDeprecatedComment; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT, oldDeprecatedComment, deprecatedComment)); - } - - /** - * - * - * @generated - */ - public String getReferent() { - return referent; - } - - /** - * - * - * @generated - */ - public void setReferent(String newReferent) { - String oldReferent = referent; - referent = newReferent; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__REFERENT, oldReferent, referent)); - } - - /** - * - * - * @generated - */ - public org.eclipse.uml2.uml.Package getBase_Package() { - if (base_Package != null && base_Package.eIsProxy()) { - InternalEObject oldBase_Package = (InternalEObject)base_Package; - base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package); - if (base_Package != oldBase_Package) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ArchitecturePackage.PLUGIN__BASE_PACKAGE, oldBase_Package, base_Package)); - } - } - return base_Package; - } - - /** - * - * - * @generated - */ - public org.eclipse.uml2.uml.Package basicGetBase_Package() { - return base_Package; - } - - /** - * - * - * @generated - */ - public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) { - org.eclipse.uml2.uml.Package oldBase_Package = base_Package; - base_Package = newBase_Package; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PLUGIN__BASE_PACKAGE, oldBase_Package, base_Package)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ArchitecturePackage.PLUGIN__NAME: - return getName(); - case ArchitecturePackage.PLUGIN__PARENT_FOLDER: - return getParentFolder(); - case ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER: - return getOriginalParentFolder(); - case ArchitecturePackage.PLUGIN__IS_DEPRECATED: - return isDeprecated(); - case ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT: - return getDeprecatedComment(); - case ArchitecturePackage.PLUGIN__REFERENT: - return getReferent(); - case ArchitecturePackage.PLUGIN__BASE_PACKAGE: - if (resolve) return getBase_Package(); - return basicGetBase_Package(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ArchitecturePackage.PLUGIN__NAME: - setName((String)newValue); - return; - case ArchitecturePackage.PLUGIN__PARENT_FOLDER: - setParentFolder((String)newValue); - return; - case ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER: - setOriginalParentFolder((String)newValue); - return; - case ArchitecturePackage.PLUGIN__IS_DEPRECATED: - setIsDeprecated((Boolean)newValue); - return; - case ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT: - setDeprecatedComment((String)newValue); - return; - case ArchitecturePackage.PLUGIN__REFERENT: - setReferent((String)newValue); - return; - case ArchitecturePackage.PLUGIN__BASE_PACKAGE: - setBase_Package((org.eclipse.uml2.uml.Package)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ArchitecturePackage.PLUGIN__NAME: - setName(NAME_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__PARENT_FOLDER: - setParentFolder(PARENT_FOLDER_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER: - setOriginalParentFolder(ORIGINAL_PARENT_FOLDER_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__IS_DEPRECATED: - setIsDeprecated(IS_DEPRECATED_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT: - setDeprecatedComment(DEPRECATED_COMMENT_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__REFERENT: - setReferent(REFERENT_EDEFAULT); - return; - case ArchitecturePackage.PLUGIN__BASE_PACKAGE: - setBase_Package((org.eclipse.uml2.uml.Package)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ArchitecturePackage.PLUGIN__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ArchitecturePackage.PLUGIN__PARENT_FOLDER: - return PARENT_FOLDER_EDEFAULT == null ? parentFolder != null : !PARENT_FOLDER_EDEFAULT.equals(parentFolder); - case ArchitecturePackage.PLUGIN__ORIGINAL_PARENT_FOLDER: - return ORIGINAL_PARENT_FOLDER_EDEFAULT == null ? originalParentFolder != null : !ORIGINAL_PARENT_FOLDER_EDEFAULT.equals(originalParentFolder); - case ArchitecturePackage.PLUGIN__IS_DEPRECATED: - return isDeprecated != IS_DEPRECATED_EDEFAULT; - case ArchitecturePackage.PLUGIN__DEPRECATED_COMMENT: - return DEPRECATED_COMMENT_EDEFAULT == null ? deprecatedComment != null : !DEPRECATED_COMMENT_EDEFAULT.equals(deprecatedComment); - case ArchitecturePackage.PLUGIN__REFERENT: - return REFERENT_EDEFAULT == null ? referent != null : !REFERENT_EDEFAULT.equals(referent); - case ArchitecturePackage.PLUGIN__BASE_PACKAGE: - return base_Package != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(", parentFolder: "); - result.append(parentFolder); - result.append(", originalParentFolder: "); - result.append(originalParentFolder); - result.append(", isDeprecated: "); - result.append(isDeprecated); - result.append(", deprecatedComment: "); - result.append(deprecatedComment); - result.append(", referent: "); - result.append(referent); - result.append(')'); - return result.toString(); - } - } //PluginImpl diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectDependencyImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectDependencyImpl.java new file mode 100644 index 00000000000..5d777874546 --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectDependencyImpl.java @@ -0,0 +1,283 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; +import org.eclipse.papyrus.design.profile.architecture.ProjectDependency; + +import org.eclipse.uml2.uml.Dependency; + +/** + * + * An implementation of the model object 'Project Dependency'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl#getDeprecatedComment Deprecated Comment}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl#isDeprecated Is Deprecated}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectDependencyImpl#getBase_Dependency Base Dependency}
  • + *
+ *

+ * + * @generated + */ +public class ProjectDependencyImpl extends ElementImpl implements ProjectDependency { + /** + * The default value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. + * + * + * @see #getDeprecatedComment() + * @generated + * @ordered + */ + protected static final String DEPRECATED_COMMENT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. + * + * + * @see #getDeprecatedComment() + * @generated + * @ordered + */ + protected String deprecatedComment = DEPRECATED_COMMENT_EDEFAULT; + + /** + * The default value of the '{@link #isDeprecated() Is Deprecated}' attribute. + * + * + * @see #isDeprecated() + * @generated + * @ordered + */ + protected static final boolean IS_DEPRECATED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDeprecated() Is Deprecated}' attribute. + * + * + * @see #isDeprecated() + * @generated + * @ordered + */ + protected boolean isDeprecated = IS_DEPRECATED_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Dependency() Base Dependency}' reference. + * + * + * @see #getBase_Dependency() + * @generated + * @ordered + */ + protected Dependency base_Dependency; + + /** + * + * + * @generated + */ + protected ProjectDependencyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ArchitecturePackage.Literals.PROJECT_DEPENDENCY; + } + + /** + * + * + * @generated + */ + public String getDeprecatedComment() { + return deprecatedComment; + } + + /** + * + * + * @generated + */ + public void setDeprecatedComment(String newDeprecatedComment) { + String oldDeprecatedComment = deprecatedComment; + deprecatedComment = newDeprecatedComment; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT, oldDeprecatedComment, deprecatedComment)); + } + + /** + * + * + * @generated + */ + public boolean isDeprecated() { + return isDeprecated; + } + + /** + * + * + * @generated + */ + public void setIsDeprecated(boolean newIsDeprecated) { + boolean oldIsDeprecated = isDeprecated; + isDeprecated = newIsDeprecated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED, oldIsDeprecated, isDeprecated)); + } + + /** + * + * + * @generated + */ + public Dependency getBase_Dependency() { + if (base_Dependency != null && base_Dependency.eIsProxy()) { + InternalEObject oldBase_Dependency = (InternalEObject)base_Dependency; + base_Dependency = (Dependency)eResolveProxy(oldBase_Dependency); + if (base_Dependency != oldBase_Dependency) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); + } + } + return base_Dependency; + } + + /** + * + * + * @generated + */ + public Dependency basicGetBase_Dependency() { + return base_Dependency; + } + + /** + * + * + * @generated + */ + public void setBase_Dependency(Dependency newBase_Dependency) { + Dependency oldBase_Dependency = base_Dependency; + base_Dependency = newBase_Dependency; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT: + return getDeprecatedComment(); + case ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED: + return isDeprecated(); + case ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY: + if (resolve) return getBase_Dependency(); + return basicGetBase_Dependency(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT: + setDeprecatedComment((String)newValue); + return; + case ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED: + setIsDeprecated((Boolean)newValue); + return; + case ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY: + setBase_Dependency((Dependency)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT: + setDeprecatedComment(DEPRECATED_COMMENT_EDEFAULT); + return; + case ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED: + setIsDeprecated(IS_DEPRECATED_EDEFAULT); + return; + case ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY: + setBase_Dependency((Dependency)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ArchitecturePackage.PROJECT_DEPENDENCY__DEPRECATED_COMMENT: + return DEPRECATED_COMMENT_EDEFAULT == null ? deprecatedComment != null : !DEPRECATED_COMMENT_EDEFAULT.equals(deprecatedComment); + case ArchitecturePackage.PROJECT_DEPENDENCY__IS_DEPRECATED: + return isDeprecated != IS_DEPRECATED_EDEFAULT; + case ArchitecturePackage.PROJECT_DEPENDENCY__BASE_DEPENDENCY: + return base_Dependency != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (deprecatedComment: "); + result.append(deprecatedComment); + result.append(", isDeprecated: "); + result.append(isDeprecated); + result.append(')'); + return result.toString(); + } + +} //ProjectDependencyImpl diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectImpl.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectImpl.java new file mode 100644 index 00000000000..798833d1464 --- /dev/null +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/impl/ProjectImpl.java @@ -0,0 +1,497 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.design.profile.architecture.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.papyrus.design.profile.architecture.ArchitecturePackage; +import org.eclipse.papyrus.design.profile.architecture.Project; + +/** + * + * An implementation of the model object 'Project'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#isDeprecated Is Deprecated}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getDeprecatedComment Deprecated Comment}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getName Name}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getReferent Referent}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getParentFolder Parent Folder}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getOriginalParentFolder Original Parent Folder}
  • + *
  • {@link org.eclipse.papyrus.design.profile.architecture.impl.ProjectImpl#getBase_Package Base Package}
  • + *
+ *

+ * + * @generated + */ +public class ProjectImpl extends ElementImpl implements Project { + /** + * The default value of the '{@link #isDeprecated() Is Deprecated}' attribute. + * + * + * @see #isDeprecated() + * @generated + * @ordered + */ + protected static final boolean IS_DEPRECATED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isDeprecated() Is Deprecated}' attribute. + * + * + * @see #isDeprecated() + * @generated + * @ordered + */ + protected boolean isDeprecated = IS_DEPRECATED_EDEFAULT; + + /** + * The default value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. + * + * + * @see #getDeprecatedComment() + * @generated + * @ordered + */ + protected static final String DEPRECATED_COMMENT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeprecatedComment() Deprecated Comment}' attribute. + * + * + * @see #getDeprecatedComment() + * @generated + * @ordered + */ + protected String deprecatedComment = DEPRECATED_COMMENT_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 + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getReferent() Referent}' attribute. + * + * + * @see #getReferent() + * @generated + * @ordered + */ + protected static final String REFERENT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getReferent() Referent}' attribute. + * + * + * @see #getReferent() + * @generated + * @ordered + */ + protected String referent = REFERENT_EDEFAULT; + + /** + * The default value of the '{@link #getParentFolder() Parent Folder}' attribute. + * + * + * @see #getParentFolder() + * @generated + * @ordered + */ + protected static final String PARENT_FOLDER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getParentFolder() Parent Folder}' attribute. + * + * + * @see #getParentFolder() + * @generated + * @ordered + */ + protected String parentFolder = PARENT_FOLDER_EDEFAULT; + + /** + * The default value of the '{@link #getOriginalParentFolder() Original Parent Folder}' attribute. + * + * + * @see #getOriginalParentFolder() + * @generated + * @ordered + */ + protected static final String ORIGINAL_PARENT_FOLDER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOriginalParentFolder() Original Parent Folder}' attribute. + * + * + * @see #getOriginalParentFolder() + * @generated + * @ordered + */ + protected String originalParentFolder = ORIGINAL_PARENT_FOLDER_EDEFAULT; + + /** + * The cached value of the '{@link #getBase_Package() Base Package}' reference. + * + * + * @see #getBase_Package() + * @generated + * @ordered + */ + protected org.eclipse.uml2.uml.Package base_Package; + + /** + * + * + * @generated + */ + protected ProjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ArchitecturePackage.Literals.PROJECT; + } + + /** + * + * + * @generated + */ + public boolean isDeprecated() { + return isDeprecated; + } + + /** + * + * + * @generated + */ + public void setIsDeprecated(boolean newIsDeprecated) { + boolean oldIsDeprecated = isDeprecated; + isDeprecated = newIsDeprecated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__IS_DEPRECATED, oldIsDeprecated, isDeprecated)); + } + + /** + * + * + * @generated + */ + public String getDeprecatedComment() { + return deprecatedComment; + } + + /** + * + * + * @generated + */ + public void setDeprecatedComment(String newDeprecatedComment) { + String oldDeprecatedComment = deprecatedComment; + deprecatedComment = newDeprecatedComment; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__DEPRECATED_COMMENT, oldDeprecatedComment, deprecatedComment)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getReferent() { + return referent; + } + + /** + * + * + * @generated + */ + public void setReferent(String newReferent) { + String oldReferent = referent; + referent = newReferent; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__REFERENT, oldReferent, referent)); + } + + /** + * + * + * @generated + */ + public String getParentFolder() { + return parentFolder; + } + + /** + * + * + * @generated + */ + public void setParentFolder(String newParentFolder) { + String oldParentFolder = parentFolder; + parentFolder = newParentFolder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__PARENT_FOLDER, oldParentFolder, parentFolder)); + } + + /** + * + * + * @generated + */ + public String getOriginalParentFolder() { + return originalParentFolder; + } + + /** + * + * + * @generated + */ + public void setOriginalParentFolder(String newOriginalParentFolder) { + String oldOriginalParentFolder = originalParentFolder; + originalParentFolder = newOriginalParentFolder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER, oldOriginalParentFolder, originalParentFolder)); + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Package getBase_Package() { + if (base_Package != null && base_Package.eIsProxy()) { + InternalEObject oldBase_Package = (InternalEObject)base_Package; + base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package); + if (base_Package != oldBase_Package) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, ArchitecturePackage.PROJECT__BASE_PACKAGE, oldBase_Package, base_Package)); + } + } + return base_Package; + } + + /** + * + * + * @generated + */ + public org.eclipse.uml2.uml.Package basicGetBase_Package() { + return base_Package; + } + + /** + * + * + * @generated + */ + public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) { + org.eclipse.uml2.uml.Package oldBase_Package = base_Package; + base_Package = newBase_Package; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ArchitecturePackage.PROJECT__BASE_PACKAGE, oldBase_Package, base_Package)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ArchitecturePackage.PROJECT__IS_DEPRECATED: + return isDeprecated(); + case ArchitecturePackage.PROJECT__DEPRECATED_COMMENT: + return getDeprecatedComment(); + case ArchitecturePackage.PROJECT__NAME: + return getName(); + case ArchitecturePackage.PROJECT__REFERENT: + return getReferent(); + case ArchitecturePackage.PROJECT__PARENT_FOLDER: + return getParentFolder(); + case ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER: + return getOriginalParentFolder(); + case ArchitecturePackage.PROJECT__BASE_PACKAGE: + if (resolve) return getBase_Package(); + return basicGetBase_Package(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ArchitecturePackage.PROJECT__IS_DEPRECATED: + setIsDeprecated((Boolean)newValue); + return; + case ArchitecturePackage.PROJECT__DEPRECATED_COMMENT: + setDeprecatedComment((String)newValue); + return; + case ArchitecturePackage.PROJECT__NAME: + setName((String)newValue); + return; + case ArchitecturePackage.PROJECT__REFERENT: + setReferent((String)newValue); + return; + case ArchitecturePackage.PROJECT__PARENT_FOLDER: + setParentFolder((String)newValue); + return; + case ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER: + setOriginalParentFolder((String)newValue); + return; + case ArchitecturePackage.PROJECT__BASE_PACKAGE: + setBase_Package((org.eclipse.uml2.uml.Package)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ArchitecturePackage.PROJECT__IS_DEPRECATED: + setIsDeprecated(IS_DEPRECATED_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__DEPRECATED_COMMENT: + setDeprecatedComment(DEPRECATED_COMMENT_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__NAME: + setName(NAME_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__REFERENT: + setReferent(REFERENT_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__PARENT_FOLDER: + setParentFolder(PARENT_FOLDER_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER: + setOriginalParentFolder(ORIGINAL_PARENT_FOLDER_EDEFAULT); + return; + case ArchitecturePackage.PROJECT__BASE_PACKAGE: + setBase_Package((org.eclipse.uml2.uml.Package)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ArchitecturePackage.PROJECT__IS_DEPRECATED: + return isDeprecated != IS_DEPRECATED_EDEFAULT; + case ArchitecturePackage.PROJECT__DEPRECATED_COMMENT: + return DEPRECATED_COMMENT_EDEFAULT == null ? deprecatedComment != null : !DEPRECATED_COMMENT_EDEFAULT.equals(deprecatedComment); + case ArchitecturePackage.PROJECT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ArchitecturePackage.PROJECT__REFERENT: + return REFERENT_EDEFAULT == null ? referent != null : !REFERENT_EDEFAULT.equals(referent); + case ArchitecturePackage.PROJECT__PARENT_FOLDER: + return PARENT_FOLDER_EDEFAULT == null ? parentFolder != null : !PARENT_FOLDER_EDEFAULT.equals(parentFolder); + case ArchitecturePackage.PROJECT__ORIGINAL_PARENT_FOLDER: + return ORIGINAL_PARENT_FOLDER_EDEFAULT == null ? originalParentFolder != null : !ORIGINAL_PARENT_FOLDER_EDEFAULT.equals(originalParentFolder); + case ArchitecturePackage.PROJECT__BASE_PACKAGE: + return base_Package != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isDeprecated: "); + result.append(isDeprecated); + result.append(", deprecatedComment: "); + result.append(deprecatedComment); + result.append(", name: "); + result.append(name); + result.append(", referent: "); + result.append(referent); + result.append(", parentFolder: "); + result.append(parentFolder); + result.append(", originalParentFolder: "); + result.append(originalParentFolder); + result.append(')'); + return result.toString(); + } + +} //ProjectImpl diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureAdapterFactory.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureAdapterFactory.java index 03b4716a6de..37e6522239c 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureAdapterFactory.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureAdapterFactory.java @@ -88,8 +88,12 @@ public class ArchitectureAdapterFactory extends AdapterFactoryImpl { return createPluginAdapter(); } @Override - public Adapter casePluginDependency(PluginDependency object) { - return createPluginDependencyAdapter(); + public Adapter caseProject(Project object) { + return createProjectAdapter(); + } + @Override + public Adapter caseProjectDependency(ProjectDependency object) { + return createProjectDependencyAdapter(); } @Override public Adapter defaultCase(EObject object) { @@ -168,16 +172,30 @@ public class ArchitectureAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.design.profile.architecture.PluginDependency Plugin Dependency}'. + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.design.profile.architecture.Project Project}'. + * + * 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.papyrus.design.profile.architecture.Project + * @generated + */ + public Adapter createProjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.design.profile.architecture.ProjectDependency Project Dependency}'. * * 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.papyrus.design.profile.architecture.PluginDependency + * @see org.eclipse.papyrus.design.profile.architecture.ProjectDependency * @generated */ - public Adapter createPluginDependencyAdapter() { + public Adapter createProjectDependencyAdapter() { return null; } diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureSwitch.java b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureSwitch.java index f29cc3fac4b..37c6d434fd5 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureSwitch.java +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.architecture/src/org/eclipse/papyrus/design/profile/architecture/util/ArchitectureSwitch.java @@ -93,14 +93,22 @@ public class ArchitectureSwitch extends Switch { case ArchitecturePackage.PLUGIN: { Plugin plugin = (Plugin)theEObject; T result = casePlugin(plugin); + if (result == null) result = caseProject(plugin); if (result == null) result = caseElement(plugin); if (result == null) result = defaultCase(theEObject); return result; } - case ArchitecturePackage.PLUGIN_DEPENDENCY: { - PluginDependency pluginDependency = (PluginDependency)theEObject; - T result = casePluginDependency(pluginDependency); - if (result == null) result = caseElement(pluginDependency); + case ArchitecturePackage.PROJECT: { + Project project = (Project)theEObject; + T result = caseProject(project); + if (result == null) result = caseElement(project); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ArchitecturePackage.PROJECT_DEPENDENCY: { + ProjectDependency projectDependency = (ProjectDependency)theEObject; + T result = caseProjectDependency(projectDependency); + if (result == null) result = caseElement(projectDependency); if (result == null) result = defaultCase(theEObject); return result; } @@ -169,17 +177,32 @@ public class ArchitectureSwitch extends Switch { } /** - * Returns the result of interpreting the object as an instance of 'Plugin Dependency'. + * Returns the result of interpreting the object as an instance of 'Project'. + * + * 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 'Project'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseProject(Project object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Project Dependency'. * * 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 'Plugin Dependency'. + * @return the result of interpreting the object as an instance of 'Project Dependency'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T casePluginDependency(PluginDependency object) { + public T caseProjectDependency(ProjectDependency object) { return null; } diff --git a/extraplugins/design/org.eclipse.papyrus.design.profile.updatesite/site.xml b/extraplugins/design/org.eclipse.papyrus.design.profile.updatesite/site.xml index e0f4aad9e64..bd995cb649c 100644 --- a/extraplugins/design/org.eclipse.papyrus.design.profile.updatesite/site.xml +++ b/extraplugins/design/org.eclipse.papyrus.design.profile.updatesite/site.xml @@ -1,6 +1,6 @@ - + -- cgit v1.2.3