Commit a85ade0b authored by Arnaud Dieumegard's avatar Arnaud Dieumegard

Added mapping metamodel and generated code.

parent a3370dc0
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
......@@ -4,12 +4,13 @@ Bundle-Name: %pluginName
Bundle-SymbolicName: com.irtsaintexupery.pseim.edit;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: com.irtsaintexupery.pseim.pseim.provider.PseimEditPlugin$Implementation
Bundle-Activator: com.irtsaintexupery.pseim.seim.provider.SeimEditPlugin$Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: com.irtsaintexupery.pseim.seim.provider,
com.irtsaintexupery.pseim.pseim.provider
com.irtsaintexupery.pseim.pseim.provider,
com.irtsaintexupery.pseim.mapping.provider
Require-Bundle: org.eclipse.core.runtime,
com.irtsaintexupery.pseim;visibility:=reexport,
org.eclipse.emf.edit;visibility:=reexport,
......
......@@ -111,3 +111,22 @@ _UI_LinkType_FORKP_literal = FORKP
_UI_LinkType_SHIFTP_literal = SHIFTP
_UI_LinkType_FLATTENC_literal = FLATTENC
_UI_LinkType_LAST_literal = LAST
_UI_PatternApplication_type = Pattern Application
_UI_CardinalityValueSetting_type = Cardinality Value Setting
_UI_PortMapping_type = Port Mapping
_UI_GraphElementMapping_type = Graph Element Mapping
_UI_PatternApplication_multiplicityValueSet_feature = Multiplicity Value Set
_UI_PatternApplication_portMapping_feature = Port Mapping
_UI_PatternApplication_pattern_feature = Pattern
_UI_PatternApplication_modelElement_feature = Model Element
_UI_PatternApplication_model_feature = Model
_UI_CardinalityValueSetting_cardinalityElement_feature = Cardinality Element
_UI_CardinalityValueSetting_value_feature = Value
_UI_PortMapping_modelPort_feature = Model Port
_UI_PortMapping_patternPort_feature = Pattern Port
_UI_GraphElementMapping_modelGraphElement_feature = Model Graph Element
_UI_GraphElementMapping_patternGraphElement_feature = Pattern Graph Element
_UI_CardinalityValue_type = Cardinality Value
_UI_PatternApplication_cardinalityValues_feature = Cardinality Values
_UI_CardinalityValue_cardinalityElement_feature = Cardinality Element
_UI_CardinalityValue_value_feature = Value
......@@ -32,4 +32,17 @@
org.eclipse.emf.edit.provider.IItemPropertySource"/>
</extension>
<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
<!-- @generated mapping -->
<factory
uri="http://www.irit.fr/patterns/mapping/0.1"
class="com.irtsaintexupery.pseim.mapping.provider.MappingItemProviderAdapterFactory"
supportedTypes=
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
org.eclipse.emf.edit.provider.IStructuredItemContentProvider
org.eclipse.emf.edit.provider.ITreeItemContentProvider
org.eclipse.emf.edit.provider.IItemLabelProvider
org.eclipse.emf.edit.provider.IItemPropertySource"/>
</extension>
</plugin>
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.mapping.CardinalityValue;
import com.irtsaintexupery.pseim.mapping.MappingPackage;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link com.irtsaintexupery.pseim.mapping.CardinalityValue} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class CardinalityValueItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public CardinalityValueItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addCardinalityElementPropertyDescriptor(object);
addValuePropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Cardinality Element feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addCardinalityElementPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_CardinalityValue_cardinalityElement_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_CardinalityValue_cardinalityElement_feature", "_UI_CardinalityValue_type"),
MappingPackage.Literals.CARDINALITY_VALUE__CARDINALITY_ELEMENT,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Value feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addValuePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_CardinalityValue_value_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_CardinalityValue_value_feature", "_UI_CardinalityValue_type"),
MappingPackage.Literals.CARDINALITY_VALUE__VALUE,
true,
false,
false,
ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
null,
null));
}
/**
* This returns CardinalityValue.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/CardinalityValue"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
CardinalityValue cardinalityValue = (CardinalityValue)object;
return getString("_UI_CardinalityValue_type") + " " + cardinalityValue.getValue();
}
/**
* 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}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(CardinalityValue.class)) {
case MappingPackage.CARDINALITY_VALUE__VALUE:
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.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return MappingEditPlugin.INSTANCE;
}
}
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.mapping.MappingPackage;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
/**
* This is the item provider adapter for a {@link com.irtsaintexupery.pseim.mapping.GraphElementMapping} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class GraphElementMappingItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GraphElementMappingItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addModelGraphElementPropertyDescriptor(object);
addPatternGraphElementPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Model Graph Element feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addModelGraphElementPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_GraphElementMapping_modelGraphElement_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_GraphElementMapping_modelGraphElement_feature", "_UI_GraphElementMapping_type"),
MappingPackage.Literals.GRAPH_ELEMENT_MAPPING__MODEL_GRAPH_ELEMENT,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Pattern Graph Element feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addPatternGraphElementPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_GraphElementMapping_patternGraphElement_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_GraphElementMapping_patternGraphElement_feature", "_UI_GraphElementMapping_type"),
MappingPackage.Literals.GRAPH_ELEMENT_MAPPING__PATTERN_GRAPH_ELEMENT,
true,
false,
true,
null,
null,
null));
}
/**
* This returns GraphElementMapping.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/GraphElementMapping"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
return getString("_UI_GraphElementMapping_type");
}
/**
* 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}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return MappingEditPlugin.INSTANCE;
}
}
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.pseim.provider.PseimEditPlugin;
import com.irtsaintexupery.pseim.seim.provider.SeimEditPlugin;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
/**
* This is the central singleton for the Mapping edit plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public final class MappingEditPlugin extends EMFPlugin {
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final MappingEditPlugin INSTANCE = new MappingEditPlugin();
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static Implementation plugin;
/**
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MappingEditPlugin() {
super
(new ResourceLocator [] {
PseimEditPlugin.INSTANCE,
SeimEditPlugin.INSTANCE,
});
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the singleton instance.
* @generated
*/
@Override
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the singleton instance.
* @generated
*/
public static Implementation getPlugin() {
return plugin;
}
/**
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static class Implementation extends EclipsePlugin {
/**
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Implementation() {
super();
// Remember the static instance.
//
plugin = this;
}
}
}
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.mapping.util.MappingAdapterFactory;
import java.util.ArrayList;
import java.util.Collection;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
/**
* This is the factory that is used to provide the interfaces needed to support Viewers.
* The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
* The adapters also support Eclipse property sheets.
* Note that most of the adapters are shared among multiple instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class MappingItemProviderAdapterFactory extends MappingAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
/**
* This keeps track of the root adapter factory that delegates to this adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ComposedAdapterFactory parentAdapterFactory;
/**
* This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected IChangeNotifier changeNotifier = new ChangeNotifier();
/**
* This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Collection<Object> supportedTypes = new ArrayList<Object>();
/**
* This constructs an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MappingItemProviderAdapterFactory() {
supportedTypes.add(IEditingDomainItemProvider.class);
supportedTypes.add(IStructuredItemContentProvider.class);
supportedTypes.add(ITreeItemContentProvider.class);
supportedTypes.add(IItemLabelProvider.class);
supportedTypes.add(IItemPropertySource.class);
}
/**
* This keeps track of the one adapter used for all {@link com.irtsaintexupery.pseim.mapping.PatternApplication} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PatternApplicationItemProvider patternApplicationItemProvider;
/**
* This creates an adapter for a {@link com.irtsaintexupery.pseim.mapping.PatternApplication}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter createPatternApplicationAdapter() {
if (patternApplicationItemProvider == null) {
patternApplicationItemProvider = new PatternApplicationItemProvider(this);
}
return patternApplicationItemProvider;
}
/**
* This keeps track of the one adapter used for all {@link com.irtsaintexupery.pseim.mapping.CardinalityValue} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CardinalityValueItemProvider cardinalityValueItemProvider;
/**
* This creates an adapter for a {@link com.irtsaintexupery.pseim.mapping.CardinalityValue}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter createCardinalityValueAdapter() {
if (cardinalityValueItemProvider == null) {
cardinalityValueItemProvider = new CardinalityValueItemProvider(this);
}
return cardinalityValueItemProvider;
}
/**
* This keeps track of the one adapter used for all {@link com.irtsaintexupery.pseim.mapping.PortMapping} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected PortMappingItemProvider portMappingItemProvider;
/**
* This creates an adapter for a {@link com.irtsaintexupery.pseim.mapping.PortMapping}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter createPortMappingAdapter() {
if (portMappingItemProvider == null) {
portMappingItemProvider = new PortMappingItemProvider(this);
}
return portMappingItemProvider;
}
/**
* This keeps track of the one adapter used for all {@link com.irtsaintexupery.pseim.mapping.GraphElementMapping} instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GraphElementMappingItemProvider graphElementMappingItemProvider;
/**
* This creates an adapter for a {@link com.irtsaintexupery.pseim.mapping.GraphElementMapping}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter createGraphElementMappingAdapter() {
if (graphElementMappingItemProvider == null) {
graphElementMappingItemProvider = new GraphElementMappingItemProvider(this);
}
return graphElementMappingItemProvider;
}
/**
* This returns the root adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ComposeableAdapterFactory getRootAdapterFactory() {
return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
}
/**
* This sets the composed adapter factory that contains this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
this.parentAdapterFactory = parentAdapterFactory;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isFactoryForType(Object type) {
return supportedTypes.contains(type) || super.isFactoryForType(type);
}
/**
* This implementation substitutes the factory itself as the key for the adapter.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Adapter adapt(Notifier notifier, Object type) {
return super.adapt(notifier, this);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object adapt(Object object, Object type) {
if (isFactoryForType(type)) {
Object adapter = super.adapt(object, type);
if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
return adapter;
}
}
return null;
}
/**
* This adds a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void addListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.addListener(notifyChangedListener);
}
/**
* This removes a listener.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void removeListener(INotifyChangedListener notifyChangedListener) {
changeNotifier.removeListener(notifyChangedListener);
}
/**
* This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void fireNotifyChanged(Notification notification) {
changeNotifier.fireNotifyChanged(notification);
if (parentAdapterFactory != null) {
parentAdapterFactory.fireNotifyChanged(notification);
}
}
/**
* This disposes all of the item providers created by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void dispose() {
if (patternApplicationItemProvider != null) patternApplicationItemProvider.dispose();
if (cardinalityValueItemProvider != null) cardinalityValueItemProvider.dispose();
if (portMappingItemProvider != null) portMappingItemProvider.dispose();
if (graphElementMappingItemProvider != null) graphElementMappingItemProvider.dispose();
}
}
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.mapping.MappingFactory;
import com.irtsaintexupery.pseim.mapping.MappingPackage;
import com.irtsaintexupery.pseim.mapping.PatternApplication;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link com.irtsaintexupery.pseim.mapping.PatternApplication} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class PatternApplicationItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PatternApplicationItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addPatternPropertyDescriptor(object);
addModelPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Pattern feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addPatternPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PatternApplication_pattern_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_PatternApplication_pattern_feature", "_UI_PatternApplication_type"),
MappingPackage.Literals.PATTERN_APPLICATION__PATTERN,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Model feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addModelPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PatternApplication_model_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_PatternApplication_model_feature", "_UI_PatternApplication_type"),
MappingPackage.Literals.PATTERN_APPLICATION__MODEL,
true,
false,
true,
null,
null,
null));
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
* {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(MappingPackage.Literals.PATTERN_APPLICATION__CARDINALITY_VALUES);
childrenFeatures.add(MappingPackage.Literals.PATTERN_APPLICATION__PORT_MAPPING);
childrenFeatures.add(MappingPackage.Literals.PATTERN_APPLICATION__MODEL_ELEMENT);
}
return childrenFeatures;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
}
/**
* This returns PatternApplication.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/PatternApplication"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
return getString("_UI_PatternApplication_type");
}
/**
* 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}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(PatternApplication.class)) {
case MappingPackage.PATTERN_APPLICATION__CARDINALITY_VALUES:
case MappingPackage.PATTERN_APPLICATION__PORT_MAPPING:
case MappingPackage.PATTERN_APPLICATION__MODEL_ELEMENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(MappingPackage.Literals.PATTERN_APPLICATION__CARDINALITY_VALUES,
MappingFactory.eINSTANCE.createCardinalityValue()));
newChildDescriptors.add
(createChildParameter
(MappingPackage.Literals.PATTERN_APPLICATION__PORT_MAPPING,
MappingFactory.eINSTANCE.createPortMapping()));
newChildDescriptors.add
(createChildParameter
(MappingPackage.Literals.PATTERN_APPLICATION__MODEL_ELEMENT,
MappingFactory.eINSTANCE.createGraphElementMapping()));
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return MappingEditPlugin.INSTANCE;
}
}
/**
*/
package com.irtsaintexupery.pseim.mapping.provider;
import com.irtsaintexupery.pseim.mapping.MappingPackage;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
/**
* This is the item provider adapter for a {@link com.irtsaintexupery.pseim.mapping.PortMapping} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class PortMappingItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PortMappingItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addModelPortPropertyDescriptor(object);
addPatternPortPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Model Port feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addModelPortPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PortMapping_modelPort_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_PortMapping_modelPort_feature", "_UI_PortMapping_type"),
MappingPackage.Literals.PORT_MAPPING__MODEL_PORT,
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Pattern Port feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addPatternPortPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_PortMapping_patternPort_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_PortMapping_patternPort_feature", "_UI_PortMapping_type"),
MappingPackage.Literals.PORT_MAPPING__PATTERN_PORT,
true,
false,
true,
null,
null,
null));
}
/**
* This returns PortMapping.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/PortMapping"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
return getString("_UI_PortMapping_type");
}
/**
* 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}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
/**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public ResourceLocator getResourceLocator() {
return MappingEditPlugin.INSTANCE;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.irtsaintexupery.pseim.editor;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Activator: com.irtsaintexupery.pseim.pseim.presentation.PseimEditorPlugin$Implementation
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: com.irtsaintexupery.pseim.seim.presentation,
com.irtsaintexupery.pseim.pseim.presentation
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources;visibility:=reexport,
com.irtsaintexupery.pseim.edit;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.emf.edit.ui;visibility:=reexport,
org.eclipse.ui.ide;visibility:=reexport
org.eclipse.ui.ide;visibility:=reexport,
org.eclipse.emfforms.editor;bundle-version="1.8.0"
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %providerName
Export-Package: com.irtsaintexupery.pseim.seim.presentation,
com.irtsaintexupery.pseim.pseim.presentation,
com.irtsaintexupery.pseim.mapping.presentation
Bundle-Name: %pluginName
Bundle-Version: 1.0.0.qualifier
Bundle-ClassPath: .
Bundle-Localization: plugin
Bundle-Activator: com.irtsaintexupery.pseim.seim.presentation.SeimEditorPlugin$Implementation
......@@ -58,3 +58,10 @@ _UI_PseimModelWizard_description = Create a new Pseim model
_UI_PseimEditorFilenameDefaultBase = My
_UI_PseimEditorFilenameExtensions = pseim
_UI_MappingEditor_menu = &Mapping Editor
_UI_MappingModelWizard_label = Mapping Model
_UI_MappingModelWizard_description = Create a new Mapping model
_UI_MappingEditor_label = Mapping Model Editor
_UI_MappingEditorFilenameDefaultBase = My
_UI_MappingEditorFilenameExtensions = mapping
......
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
-->
<plugin>
<extension point="org.eclipse.ui.newWizards">
<!-- @generated seim -->
<category
id="org.eclipse.emf.ecore.Wizard.category.ID"
name="%_UI_Wizard_category"/>
<wizard
id="com.irtsaintexupery.pseim.seim.presentation.SeimModelWizardID"
name="%_UI_SeimModelWizard_label"
class="com.irtsaintexupery.pseim.seim.presentation.SeimModelWizard"
category="org.eclipse.emf.ecore.Wizard.category.ID"
icon="icons/full/obj16/SeimModelFile.gif">
<description>%_UI_SeimModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.editors">
<!-- @generated seim -->
<editor
id="com.irtsaintexupery.pseim.seim.presentation.SeimEditorID"
name="%_UI_SeimEditor_label"
icon="icons/full/obj16/SeimModelFile.gif"
extensions="seim"
class="com.irtsaintexupery.pseim.seim.presentation.SeimEditor"
contributorClass="com.irtsaintexupery.pseim.seim.presentation.SeimActionBarContributor">
</editor>
</extension>
<extension point="org.eclipse.ui.newWizards">
<!-- @generated pseim -->
<category
id="org.eclipse.emf.ecore.Wizard.category.ID"
name="%_UI_Wizard_category"/>
<wizard
id="com.irtsaintexupery.pseim.pseim.presentation.PseimModelWizardID"
name="%_UI_PseimModelWizard_label"
class="com.irtsaintexupery.pseim.pseim.presentation.PseimModelWizard"
category="org.eclipse.emf.ecore.Wizard.category.ID"
icon="icons/full/obj16/PseimModelFile.gif">
<description>%_UI_PseimModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.editors">
<!-- @generated pseim -->
<editor
id="com.irtsaintexupery.pseim.pseim.presentation.PseimEditorID"
name="%_UI_PseimEditor_label"
icon="icons/full/obj16/PseimModelFile.gif"
extensions="pseim"
class="com.irtsaintexupery.pseim.pseim.presentation.PseimEditor"
contributorClass="com.irtsaintexupery.pseim.pseim.presentation.PseimActionBarContributor">
</editor>
</extension>
</plugin>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><?eclipse version="3.0"?><!--
--><plugin>
<extension point="org.eclipse.ui.newWizards">
<!-- @generated pseim -->
<category id="org.eclipse.emf.ecore.Wizard.category.ID" name="%_UI_Wizard_category"/>
<wizard category="org.eclipse.emf.ecore.Wizard.category.ID" class="com.irtsaintexupery.pseim.pseim.presentation.PseimModelWizard" icon="icons/full/obj16/PseimModelFile.gif" id="com.irtsaintexupery.pseim.pseim.presentation.PseimModelWizardID" name="%_UI_PseimModelWizard_label">
<description>%_UI_PseimModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.editors">
<!-- @generated pseim -->
<editor class="com.irtsaintexupery.pseim.pseim.presentation.PseimEditor" contributorClass="com.irtsaintexupery.pseim.pseim.presentation.PseimActionBarContributor" extensions="pseim" icon="icons/full/obj16/PseimModelFile.gif" id="com.irtsaintexupery.pseim.pseim.presentation.PseimEditorID" name="%_UI_PseimEditor_label">
</editor>
</extension>
<extension point="org.eclipse.ui.editors"><editor class="org.eclipse.emfforms.spi.editor.GenericEditor" default="false" extensions="mapping" icon="icons/full/obj16/MappingModelFile.gif" id="com.irtsaintexupery.pseim.editor.Mapping.emfformseditor" name="EMFForms Editor"/></extension>
<extension point="org.eclipse.ui.newWizards">
<!-- @generated mapping -->
<category
id="org.eclipse.emf.ecore.Wizard.category.ID"
name="%_UI_Wizard_category"/>
<wizard
id="com.irtsaintexupery.pseim.mapping.presentation.MappingModelWizardID"
name="%_UI_MappingModelWizard_label"
class="com.irtsaintexupery.pseim.mapping.presentation.MappingModelWizard"
category="org.eclipse.emf.ecore.Wizard.category.ID"
icon="icons/full/obj16/MappingModelFile.gif">
<description>%_UI_MappingModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.editors">
<!-- @generated mapping -->
<editor
id="com.irtsaintexupery.pseim.mapping.presentation.MappingEditorID"
name="%_UI_MappingEditor_label"
icon="icons/full/obj16/MappingModelFile.gif"
extensions="mapping"
class="com.irtsaintexupery.pseim.mapping.presentation.MappingEditor"
contributorClass="com.irtsaintexupery.pseim.mapping.presentation.MappingActionBarContributor">
</editor>
</extension>
<extension point="org.eclipse.ui.newWizards">
<!-- @generated seim -->
<category
id="org.eclipse.emf.ecore.Wizard.category.ID"
name="%_UI_Wizard_category"/>
<wizard
id="com.irtsaintexupery.pseim.seim.presentation.SeimModelWizardID"
name="%_UI_SeimModelWizard_label"
class="com.irtsaintexupery.pseim.seim.presentation.SeimModelWizard"
category="org.eclipse.emf.ecore.Wizard.category.ID"
icon="icons/full/obj16/SeimModelFile.gif">
<description>%_UI_SeimModelWizard_description</description>
<selection class="org.eclipse.core.resources.IResource"/>
</wizard>
</extension>
<extension point="org.eclipse.ui.editors">
<!-- @generated seim -->
<editor
id="com.irtsaintexupery.pseim.seim.presentation.SeimEditorID"
name="%_UI_SeimEditor_label"
icon="icons/full/obj16/SeimModelFile.gif"
extensions="seim"
class="com.irtsaintexupery.pseim.seim.presentation.SeimEditor"
contributorClass="com.irtsaintexupery.pseim.seim.presentation.SeimActionBarContributor">
</editor>
</extension>
</plugin>
\ No newline at end of file
/**
*/
package com.irtsaintexupery.pseim.mapping.presentation;
import com.irtsaintexupery.pseim.pseim.provider.PseimEditPlugin;
import com.irtsaintexupery.pseim.seim.provider.SeimEditPlugin;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.ui.EclipseUIPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
/**
* This is the central singleton for the Mapping editor plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public final class MappingEditorPlugin extends EMFPlugin {
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final MappingEditorPlugin INSTANCE = new MappingEditorPlugin();
/**
* Keep track of the singleton.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static Implementation plugin;
/**
* Create the instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MappingEditorPlugin() {
super
(new ResourceLocator [] {
PseimEditPlugin.INSTANCE,
SeimEditPlugin.INSTANCE,
});
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the singleton instance.
* @generated
*/
@Override
public ResourceLocator getPluginResourceLocator() {
return plugin;
}
/**
* Returns the singleton instance of the Eclipse plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the singleton instance.
* @generated
*/
public static Implementation getPlugin() {
return plugin;
}
/**
* The actual implementation of the Eclipse <b>Plugin</b>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static class Implementation extends EclipseUIPlugin {
/**
* Creates an instance.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Implementation() {
super();
// Remember the static instance.
//
plugin = this;
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
......@@ -12,7 +12,10 @@ Export-Package: com.irtsaintexupery.pseim.seim,
com.irtsaintexupery.pseim.seim.util,
com.irtsaintexupery.pseim.pseim,
com.irtsaintexupery.pseim.pseim.impl,
com.irtsaintexupery.pseim.pseim.util
com.irtsaintexupery.pseim.pseim.util,
com.irtsaintexupery.pseim.mapping,
com.irtsaintexupery.pseim.mapping.impl,
com.irtsaintexupery.pseim.mapping.util
Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport,
com.irtsaintexupery.pseim;visibility:=reexport,
org.eclipse.core.runtime
......
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="mapping" nsURI="http://www.irit.fr/patterns/mapping/0.1" nsPrefix="mapping">
<eAnnotations source="http://www.eclipse.org/OCL/Import">
<details key="ecore" value="http://www.eclipse.org/emf/2002/Ecore"/>
<details key="pseim" value="pseim.ecore#/"/>
<details key="seim" value="seim.ecore#/"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
<details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
<details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="PatternApplication">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="InvariantName"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
<details key="InvariantName" value="true"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="cardinalityValues" upperBound="-1"
eType="#//CardinalityValue" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="portMapping" upperBound="-1"
eType="#//PortMapping" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" lowerBound="1"
eType="ecore:EClass pseim.ecore#//Pattern"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="modelElement" lowerBound="1"
upperBound="-1" eType="#//GraphElementMapping" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="model" lowerBound="1" eType="ecore:EClass seim.ecore#//Model"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CardinalityValue">
<eStructuralFeatures xsi:type="ecore:EReference" name="cardinalityElement" lowerBound="1"
eType="ecore:EClass pseim.ecore#//CardinalityElement"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PortMapping">
<eStructuralFeatures xsi:type="ecore:EReference" name="modelPort" ordered="false"
upperBound="-1" eType="ecore:EClass seim.ecore#//BorderElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="patternPort" lowerBound="1"
eType="ecore:EClass seim.ecore#//BorderElement"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GraphElementMapping">
<eStructuralFeatures xsi:type="ecore:EReference" name="modelGraphElement" ordered="false"
upperBound="-1" eType="ecore:EClass seim.ecore#//GraphElement"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="patternGraphElement" lowerBound="1"
eType="ecore:EClass seim.ecore#//GraphElement"/>
</eClassifiers>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/com.irtsaintexupery.pseim/src-gen" editDirectory="/com.irtsaintexupery.pseim.edit/src-gen"
editorDirectory="/com.irtsaintexupery.pseim.editor/src-gen" modelPluginID="com.irtsaintexupery.pseim"
templateDirectory="" modelName="Mapping" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
testsDirectory="/com.irtsaintexupery.pseim.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
complianceLevel="8.0" copyrightFields="false" usedGenPackages="pseim.genmodel#//pseim seim.genmodel#//seim"
operationReflection="true" importOrganizing="true">
<foreignModel>mapping.ecore</foreignModel>
<genPackages prefix="Mapping" basePackage="com.irtsaintexupery.pseim" disposableProviderFactory="true"
ecorePackage="mapping.ecore#/">
<genClasses ecoreClass="mapping.ecore#//PatternApplication">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mapping.ecore#//PatternApplication/cardinalityValues"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mapping.ecore#//PatternApplication/portMapping"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//PatternApplication/pattern"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference mapping.ecore#//PatternApplication/modelElement"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//PatternApplication/model"/>
</genClasses>
<genClasses ecoreClass="mapping.ecore#//CardinalityValue">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//CardinalityValue/cardinalityElement"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute mapping.ecore#//CardinalityValue/value"/>
</genClasses>
<genClasses ecoreClass="mapping.ecore#//PortMapping">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//PortMapping/modelPort"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//PortMapping/patternPort"/>
</genClasses>
<genClasses ecoreClass="mapping.ecore#//GraphElementMapping">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//GraphElementMapping/modelGraphElement"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mapping.ecore#//GraphElementMapping/patternGraphElement"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
......@@ -98,8 +98,8 @@
<details key="constraints" value="srcIsPatternPort dstIsPatternPort"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
<details key="srcIsPatternPort" value="src.oclIsTypeOf(PatternLink)"/>
<details key="dstIsPatternPort" value="dst.oclIsTypeOf(PatternLink)"/>
<details key="srcIsPatternPort" value="src.oclIsTypeOf(PatternPort)"/>
<details key="dstIsPatternPort" value="dst.oclIsTypeOf(PatternPort)"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="linkType" lowerBound="1"
eType="#//LinkType"/>
......
......@@ -3,7 +3,7 @@
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2018 IRT AESE (IRT Saint Exupéry).&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v2.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;https://www.eclipse.org/legal/epl-2.0"
modelDirectory="/com.irtsaintexupery.pseim/src-gen" editDirectory="/com.irtsaintexupery.pseim.edit/src-gen"
editorDirectory="/com.irtsaintexupery.pseim.editor/src-gen" modelPluginID="com.irtsaintexupery.pseim"
redirection="" modelName="Pseim" editPluginClass="com.irtsaintexupery.pseim.pseim.provider.PseimEditPlugin"
redirection="" modelName="Pseim" modelPluginClass="" editPluginClass="com.irtsaintexupery.pseim.pseim.provider.PseimEditPlugin"
editorPluginClass="com.irtsaintexupery.pseim.pseim.presentation.PseimEditorPlugin"
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" codeFormatting="true"
testsDirectory="/com.irtsaintexupery.pseim.tests/src-gen" testSuiteClass="com.irtsaintexupery.pseim.pseim.tests.PseimAllTests"
......
......@@ -6,6 +6,8 @@
<semanticResources>http://www.eclipse.org/emf/2002/Ecore</semanticResources>
<semanticResources>pseim.ecore</semanticResources>
<semanticResources>pseim.genmodel</semanticResources>
<semanticResources>mapping.ecore</semanticResources>
<semanticResources>mapping.genmodel</semanticResources>
<ownedViews xmi:type="viewpoint:DView" xmi:id="_2M5gcCtyEei2HetS0nQhKw">
<viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/>
<ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" xmi:id="_FZgtNyt2Eei2HetS0nQhKw" name="seim class diagram" repPath="#_FY63UCt2Eei2HetS0nQhKw">
......
......@@ -69,7 +69,7 @@
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
<details key="nameNotEmpty" value="name &lt;> ''"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IdentifiedElement" abstract="true" interface="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
......
......@@ -22,4 +22,12 @@
genModel="model/pseim.genmodel"/>
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated mapping -->
<package
uri="http://www.irit.fr/patterns/mapping/0.1"
class="com.irtsaintexupery.pseim.mapping.MappingPackage"
genModel="model/mapping.genmodel"/>
</extension>
</plugin>
/**
*/
package com.irtsaintexupery.pseim.mapping;
import com.irtsaintexupery.pseim.pseim.CardinalityElement;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Cardinality Value</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.pseim.mapping.CardinalityValue#getCardinalityElement <em>Cardinality Element</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.CardinalityValue#getValue <em>Value</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValue()
* @model
* @generated
*/
public interface CardinalityValue extends EObject {
/**
* Returns the value of the '<em><b>Cardinality Element</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Cardinality Element</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Cardinality Element</em>' reference.
* @see #setCardinalityElement(CardinalityElement)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValue_CardinalityElement()
* @model required="true"
* @generated
*/
CardinalityElement getCardinalityElement();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.CardinalityValue#getCardinalityElement <em>Cardinality Element</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Cardinality Element</em>' reference.
* @see #getCardinalityElement()
* @generated
*/
void setCardinalityElement(CardinalityElement value);
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(int)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValue_Value()
* @model required="true"
* @generated
*/
int getValue();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.CardinalityValue#getValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #getValue()
* @generated
*/
void setValue(int value);
} // CardinalityValue
/**
*/
package com.irtsaintexupery.pseim.mapping;
import com.irtsaintexupery.pseim.pseim.CardinalityElement;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Cardinality Value Setting</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.pseim.mapping.CardinalityValueSetting#getCardinalityElement <em>Cardinality Element</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.CardinalityValueSetting#getValue <em>Value</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValueSetting()
* @model
* @generated
*/
public interface CardinalityValueSetting extends EObject {
/**
* Returns the value of the '<em><b>Cardinality Element</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Cardinality Element</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Cardinality Element</em>' reference.
* @see #setCardinalityElement(CardinalityElement)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValueSetting_CardinalityElement()
* @model required="true"
* @generated
*/
CardinalityElement getCardinalityElement();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.CardinalityValueSetting#getCardinalityElement <em>Cardinality Element</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Cardinality Element</em>' reference.
* @see #getCardinalityElement()
* @generated
*/
void setCardinalityElement(CardinalityElement value);
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(int)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getCardinalityValueSetting_Value()
* @model required="true"
* @generated
*/
int getValue();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.CardinalityValueSetting#getValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #getValue()
* @generated
*/
void setValue(int value);
} // CardinalityValueSetting
/**
*/
package com.irtsaintexupery.pseim.mapping;
import com.irtsaintexupery.pseim.seim.GraphElement;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Graph Element Mapping</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.pseim.mapping.GraphElementMapping#getModelGraphElement <em>Model Graph Element</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.GraphElementMapping#getPatternGraphElement <em>Pattern Graph Element</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getGraphElementMapping()
* @model
* @generated
*/
public interface GraphElementMapping extends EObject {
/**
* Returns the value of the '<em><b>Model Graph Element</b></em>' reference list.
* The list contents are of type {@link com.irtsaintexupery.pseim.seim.GraphElement}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Model Graph Element</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Model Graph Element</em>' reference list.
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getGraphElementMapping_ModelGraphElement()
* @model ordered="false"
* @generated
*/
EList<GraphElement> getModelGraphElement();
/**
* Returns the value of the '<em><b>Pattern Graph Element</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Pattern Graph Element</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Pattern Graph Element</em>' reference.
* @see #setPatternGraphElement(GraphElement)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getGraphElementMapping_PatternGraphElement()
* @model required="true"
* @generated
*/
GraphElement getPatternGraphElement();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.GraphElementMapping#getPatternGraphElement <em>Pattern Graph Element</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Pattern Graph Element</em>' reference.
* @see #getPatternGraphElement()
* @generated
*/
void setPatternGraphElement(GraphElement value);
} // GraphElementMapping
/**
*/
package com.irtsaintexupery.pseim.mapping;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see com.irtsaintexupery.pseim.mapping.MappingPackage
* @generated
*/
public interface MappingFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
MappingFactory eINSTANCE = com.irtsaintexupery.pseim.mapping.impl.MappingFactoryImpl.init();
/**
* Returns a new object of class '<em>Pattern Application</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Pattern Application</em>'.
* @generated
*/
PatternApplication createPatternApplication();
/**
* Returns a new object of class '<em>Cardinality Value</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Cardinality Value</em>'.
* @generated
*/
CardinalityValue createCardinalityValue();
/**
* Returns a new object of class '<em>Port Mapping</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Port Mapping</em>'.
* @generated
*/
PortMapping createPortMapping();
/**
* Returns a new object of class '<em>Graph Element Mapping</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Graph Element Mapping</em>'.
* @generated
*/
GraphElementMapping createGraphElementMapping();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
MappingPackage getMappingPackage();
} //MappingFactory
/**
*/
package com.irtsaintexupery.pseim.mapping;
import com.irtsaintexupery.pseim.pseim.Pattern;
import com.irtsaintexupery.pseim.seim.Model;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Pattern Application</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getCardinalityValues <em>Cardinality Values</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getPortMapping <em>Port Mapping</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getPattern <em>Pattern</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getModelElement <em>Model Element</em>}</li>
* <li>{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getModel <em>Model</em>}</li>
* </ul>
*
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication()
* @model annotation="http://www.eclipse.org/emf/2002/Ecore constraints='InvariantName'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot InvariantName='true'"
* @generated
*/
public interface PatternApplication extends EObject {
/**
* Returns the value of the '<em><b>Cardinality Values</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.pseim.mapping.CardinalityValue}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Cardinality Values</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Cardinality Values</em>' containment reference list.
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication_CardinalityValues()
* @model containment="true"
* @generated
*/
EList<CardinalityValue> getCardinalityValues();
/**
* Returns the value of the '<em><b>Port Mapping</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.pseim.mapping.PortMapping}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Port Mapping</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Port Mapping</em>' containment reference list.
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication_PortMapping()
* @model containment="true"
* @generated
*/
EList<PortMapping> getPortMapping();
/**
* Returns the value of the '<em><b>Pattern</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Pattern</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Pattern</em>' reference.
* @see #setPattern(Pattern)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication_Pattern()
* @model required="true"
* @generated
*/
Pattern getPattern();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getPattern <em>Pattern</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Pattern</em>' reference.
* @see #getPattern()
* @generated
*/
void setPattern(Pattern value);
/**
* Returns the value of the '<em><b>Model Element</b></em>' containment reference list.
* The list contents are of type {@link com.irtsaintexupery.pseim.mapping.GraphElementMapping}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Model Element</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Model Element</em>' containment reference list.
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication_ModelElement()
* @model containment="true" required="true"
* @generated
*/
EList<GraphElementMapping> getModelElement();
/**
* Returns the value of the '<em><b>Model</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Model</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Model</em>' reference.
* @see #setModel(Model)
* @see com.irtsaintexupery.pseim.mapping.MappingPackage#getPatternApplication_Model()
* @model required="true"
* @generated
*/
Model getModel();
/**
* Sets the value of the '{@link com.irtsaintexupery.pseim.mapping.PatternApplication#getModel <em>Model</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Model</em>' reference.
* @see #getModel()
* @generated
*/
void setModel(Model value);
} // PatternApplication
......@@ -29,7 +29,7 @@ import com.irtsaintexupery.pseim.seim.Link;
*
* @see com.irtsaintexupery.pseim.pseim.PseimPackage#getPatternLink()
* @model annotation="http://www.eclipse.org/emf/2002/Ecore constraints='srcIsPatternPort dstIsPatternPort'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot srcIsPatternPort='src.oclIsTypeOf(PatternLink)' dstIsPatternPort='dst.oclIsTypeOf(PatternLink)'"
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot srcIsPatternPort='src.oclIsTypeOf(PatternPort)' dstIsPatternPort='dst.oclIsTypeOf(PatternPort)'"
* @generated
*/
public interface PatternLink extends IdentifiedElement, Link {
......
......@@ -787,8 +787,8 @@ public class PseimPackageImpl extends EPackageImpl implements PseimPackage {
String source = "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot";
addAnnotation(patternComponentEClass, source, new String[] { "contentIsPatternContent",
"content->forAll(c | c.oclIsTypeOf(PatternComponent) or c.oclIsTypeOf(PatternPort) or c.oclIsTypeOf(PatternLink))" });
addAnnotation(patternLinkEClass, source, new String[] { "srcIsPatternPort", "src.oclIsTypeOf(PatternLink)",
"dstIsPatternPort", "dst.oclIsTypeOf(PatternLink)" });
addAnnotation(patternLinkEClass, source, new String[] { "srcIsPatternPort", "src.oclIsTypeOf(PatternPort)",
"dstIsPatternPort", "dst.oclIsTypeOf(PatternPort)" });
addAnnotation(multiplicityElementEClass, source, new String[] { "cardinalityAsElementOrMult",
"(not (cardinalityElement.oclIsUndefined())) implies multiplicityValue = 1" });
}
......
......@@ -370,7 +370,7 @@ public class PseimValidator extends EObjectValidator {
* <!-- end-user-doc -->
* @generated
*/
protected static final String PATTERN_LINK__SRC_IS_PATTERN_PORT__EEXPRESSION = "src.oclIsTypeOf(PatternLink)";
protected static final String PATTERN_LINK__SRC_IS_PATTERN_PORT__EEXPRESSION = "src.oclIsTypeOf(PatternPort)";
/**
* Validates the srcIsPatternPort constraint of '<em>Pattern Link</em>'.
......@@ -391,7 +391,7 @@ public class PseimValidator extends EObjectValidator {
* <!-- end-user-doc -->
* @generated
*/
protected static final String PATTERN_LINK__DST_IS_PATTERN_PORT__EEXPRESSION = "dst.oclIsTypeOf(PatternLink)";
protected static final String PATTERN_LINK__DST_IS_PATTERN_PORT__EEXPRESSION = "dst.oclIsTypeOf(PatternPort)";
/**
* Validates the dstIsPatternPort constraint of '<em>Pattern Link</em>'.
......
......@@ -45,7 +45,7 @@ public interface NamedElement extends IdentifiedElement {
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see com.irtsaintexupery.pseim.seim.SeimPackage#getNamedElement_Name()
* @model required="true"
* @model
* @generated
*/
String getName();
......
......@@ -693,7 +693,7 @@ public class SeimPackageImpl extends EPackageImpl implements SeimPackage {
initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedElement.class,
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(identifiedElementEClass, IdentifiedElement.class, "IdentifiedElement", IS_ABSTRACT, IS_INTERFACE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment