-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #419 Add support for Sequence and OrderedSet variables binding …
…in generation configuration.
- Loading branch information
Showing
92 changed files
with
7,814 additions
and
251 deletions.
There are no files selected for viewing
Binary file added
BIN
+365 Bytes
...obeonetwork.m2doc.genconf.edit/icons/full/obj16/BooleanOrderedSetDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+365 Bytes
...g.obeonetwork.m2doc.genconf.edit/icons/full/obj16/BooleanSequenceDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+367 Bytes
...obeonetwork.m2doc.genconf.edit/icons/full/obj16/IntegerOrderedSetDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+367 Bytes
...g.obeonetwork.m2doc.genconf.edit/icons/full/obj16/IntegerSequenceDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+578 Bytes
...g.obeonetwork.m2doc.genconf.edit/icons/full/obj16/ModelOrderedSetDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+578 Bytes
...org.obeonetwork.m2doc.genconf.edit/icons/full/obj16/ModelSequenceDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+351 Bytes
...rg.obeonetwork.m2doc.genconf.edit/icons/full/obj16/RealOrderedSetDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+351 Bytes
.../org.obeonetwork.m2doc.genconf.edit/icons/full/obj16/RealSequenceDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+375 Bytes
....obeonetwork.m2doc.genconf.edit/icons/full/obj16/StringOrderedSetDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+375 Bytes
...rg.obeonetwork.m2doc.genconf.edit/icons/full/obj16/StringSequenceDefinition.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
...c-gen/org/obeonetwork/m2doc/genconf/provider/BooleanOrderedSetDefinitionItemProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/** | ||
*/ | ||
package org.obeonetwork.m2doc.genconf.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.IItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ViewerNotification; | ||
import org.obeonetwork.m2doc.genconf.BooleanOrderedSetDefinition; | ||
import org.obeonetwork.m2doc.genconf.GenconfPackage; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link org.obeonetwork.m2doc.genconf.BooleanOrderedSetDefinition} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
public class BooleanOrderedSetDefinitionItemProvider extends DefinitionItemProvider { | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
public BooleanOrderedSetDefinitionItemProvider(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); | ||
|
||
addValuePropertyDescriptor(object); | ||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* 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_BooleanOrderedSetDefinition_value_feature"), | ||
getString("_UI_PropertyDescriptor_description", "_UI_BooleanOrderedSetDefinition_value_feature", | ||
"_UI_BooleanOrderedSetDefinition_type"), | ||
GenconfPackage.Literals.BOOLEAN_ORDERED_SET_DEFINITION__VALUE, true, false, false, | ||
ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); | ||
} | ||
|
||
/** | ||
* This returns BooleanOrderedSetDefinition.gif. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public Object getImage(Object object) { | ||
return overlayImage(object, getResourceLocator().getImage("full/obj16/BooleanOrderedSetDefinition")); | ||
} | ||
|
||
/** | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
protected boolean shouldComposeCreationImage() { | ||
return true; | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) { | ||
String label = ((BooleanOrderedSetDefinition) object).getKey(); | ||
return label == null || label.length() == 0 ? getString("_UI_BooleanOrderedSetDefinition_type") | ||
: getString("_UI_BooleanOrderedSetDefinition_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}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) { | ||
updateChildren(notification); | ||
|
||
switch (notification.getFeatureID(BooleanOrderedSetDefinition.class)) { | ||
case GenconfPackage.BOOLEAN_ORDERED_SET_DEFINITION__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); | ||
} | ||
|
||
} |
140 changes: 140 additions & 0 deletions
140
...src-gen/org/obeonetwork/m2doc/genconf/provider/BooleanSequenceDefinitionItemProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/** | ||
*/ | ||
package org.obeonetwork.m2doc.genconf.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.IItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; | ||
import org.eclipse.emf.edit.provider.ViewerNotification; | ||
import org.obeonetwork.m2doc.genconf.BooleanSequenceDefinition; | ||
import org.obeonetwork.m2doc.genconf.GenconfPackage; | ||
|
||
/** | ||
* This is the item provider adapter for a {@link org.obeonetwork.m2doc.genconf.BooleanSequenceDefinition} object. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
public class BooleanSequenceDefinitionItemProvider extends DefinitionItemProvider { | ||
/** | ||
* This constructs an instance from a factory and a notifier. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
public BooleanSequenceDefinitionItemProvider(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); | ||
|
||
addValuePropertyDescriptor(object); | ||
} | ||
return itemPropertyDescriptors; | ||
} | ||
|
||
/** | ||
* 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_BooleanSequenceDefinition_value_feature"), | ||
getString("_UI_PropertyDescriptor_description", "_UI_BooleanSequenceDefinition_value_feature", | ||
"_UI_BooleanSequenceDefinition_type"), | ||
GenconfPackage.Literals.BOOLEAN_SEQUENCE_DEFINITION__VALUE, true, false, false, | ||
ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); | ||
} | ||
|
||
/** | ||
* This returns BooleanSequenceDefinition.gif. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public Object getImage(Object object) { | ||
return overlayImage(object, getResourceLocator().getImage("full/obj16/BooleanSequenceDefinition")); | ||
} | ||
|
||
/** | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
protected boolean shouldComposeCreationImage() { | ||
return true; | ||
} | ||
|
||
/** | ||
* This returns the label text for the adapted class. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public String getText(Object object) { | ||
String label = ((BooleanSequenceDefinition) object).getKey(); | ||
return label == null || label.length() == 0 ? getString("_UI_BooleanSequenceDefinition_type") | ||
: getString("_UI_BooleanSequenceDefinition_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}. | ||
* <!-- begin-user-doc --> | ||
* <!-- end-user-doc --> | ||
* | ||
* @generated | ||
*/ | ||
@Override | ||
public void notifyChanged(Notification notification) { | ||
updateChildren(notification); | ||
|
||
switch (notification.getFeatureID(BooleanSequenceDefinition.class)) { | ||
case GenconfPackage.BOOLEAN_SEQUENCE_DEFINITION__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); | ||
} | ||
|
||
} |
Oops, something went wrong.