Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFButtonConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCheckboxConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFLabelConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFRadioConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFSelectConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/icons/full/obj16/EEFTextConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.eef.edit/plugin.properties26
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFConditionalStyleItemProvider.java142
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetDescriptionItemProvider.java10
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetStyleItemProvider.java105
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextConditionalStyleItemProvider.java148
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextDescriptionItemProvider.java5
-rw-r--r--plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EefItemProviderAdapterFactory.java224
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java77
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFButtonLifecycleManager.java30
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFCheckboxLifecycleManager.java30
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java58
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFRadioLifecycleManager.java28
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFSelectLifecycleManager.java28
-rw-r--r--plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java56
-rw-r--r--plugins/org.eclipse.eef/model/eef.ecore106
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxConditionalStyle.java57
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetDescription.java37
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetStyle.java23
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextConditionalStyle.java56
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextDescription.java15
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefFactory.java71
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefPackage.java933
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonDescriptionImpl.java45
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxDescriptionImpl.java45
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFConditionalStyleImpl.java172
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetDescriptionImpl.java152
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetStyleImpl.java43
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelDescriptionImpl.java45
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioDescriptionImpl.java53
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectDescriptionImpl.java45
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextConditionalStyleImpl.java221
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextDescriptionImpl.java45
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefFactoryImpl.java112
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefPackageImpl.java470
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefAdapterFactory.java180
-rw-r--r--plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefSwitch.java240
-rw-r--r--samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java30
73 files changed, 6776 insertions, 37 deletions
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFButtonConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFButtonConditionalStyle.gif
new file mode 100644
index 000000000..d3dc5a9ad
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFButtonConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCheckboxConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCheckboxConditionalStyle.gif
new file mode 100644
index 000000000..134551bff
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCheckboxConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetConditionalStyle.gif
new file mode 100644
index 000000000..05dc74ad5
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetStyle.gif
new file mode 100644
index 000000000..f8041d225
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFCustomWidgetStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFLabelConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFLabelConditionalStyle.gif
new file mode 100644
index 000000000..136e3b272
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFLabelConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFRadioConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFRadioConditionalStyle.gif
new file mode 100644
index 000000000..ef56c1408
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFRadioConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFSelectConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFSelectConditionalStyle.gif
new file mode 100644
index 000000000..a17dc7d88
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFSelectConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFTextConditionalStyle.gif b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFTextConditionalStyle.gif
new file mode 100644
index 000000000..a26660ec2
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/icons/full/obj16/EEFTextConditionalStyle.gif
Binary files differ
diff --git a/plugins/org.eclipse.eef.edit/plugin.properties b/plugins/org.eclipse.eef.edit/plugin.properties
index b0a489a3e..16baa1623 100644
--- a/plugins/org.eclipse.eef.edit/plugin.properties
+++ b/plugins/org.eclipse.eef.edit/plugin.properties
@@ -138,3 +138,29 @@ _UI_EEFButtonDescription_style_feature = Style
_UI_EEFCheckboxDescription_style_feature = Style
_UI_EEFSelectDescription_style_feature = Style
_UI_EEFRadioDescription_style_feature = Style
+_UI_EEFConditionalStyle_type = EEF Conditional Style
+_UI_EEFTextConditionalStyle_type = EEF Text Conditional Style
+_UI_EEFTextDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFConditionalStyle_preconditionExpression_feature = Precondition Expression
+_UI_EEFTextConditionalStyle_style_feature = Style
+_UI_EEFButtonConditionalStyle_type = EEF Button Conditional Style
+_UI_EEFLabelConditionalStyle_type = EEF Label Conditional Style
+_UI_EEFCheckboxConditionalStyle_type = EEF Checkbox Conditional Style
+_UI_EEFSelectConditionalStyle_type = EEF Select Conditional Style
+_UI_EEFRadioConditionalStyle_type = EEF Radio Conditional Style
+_UI_EEFLabelDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFButtonDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFCheckboxDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFSelectDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFRadioDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFButtonConditionalStyle_style_feature = Style
+_UI_EEFLabelConditionalStyle_style_feature = Style
+_UI_EEFCheckboxConditionalStyle_style_feature = Style
+_UI_EEFSelectConditionalStyle_style_feature = Style
+_UI_EEFRadioConditionalStyle_style_feature = Style
+_UI_EEFCustomConditionalStyle_type = EEF Custom Conditional Style
+_UI_EEFCustomWidgetDescription_style_feature = Style
+_UI_EEFCustomWidgetStyle_type = EEF Custom Widget Style
+_UI_EEFCustomWidgetConditionalStyle_type = EEF Custom Widget Conditional Style
+_UI_EEFCustomWidgetDescription_conditionalStyles_feature = Conditional Styles
+_UI_EEFCustomWidgetConditionalStyle_style_feature = Style
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonConditionalStyleItemProvider.java
new file mode 100644
index 000000000..212419443
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFButtonConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFButtonConditionalStyle} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFButtonConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFButtonConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_BUTTON_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFButtonConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFButtonConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFButtonConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFButtonConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFButtonConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFButtonConditionalStyle.class)) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_BUTTON_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFButtonStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonDescriptionItemProvider.java
index 65b914028..245739192 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFButtonDescriptionItemProvider.java
@@ -99,6 +99,7 @@ public class EEFButtonDescriptionItemProvider extends EEFWidgetDescriptionItemPr
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_BUTTON_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -165,6 +166,7 @@ public class EEFButtonDescriptionItemProvider extends EEFWidgetDescriptionItemPr
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_BUTTON_DESCRIPTION__STYLE:
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -182,6 +184,9 @@ public class EEFButtonDescriptionItemProvider extends EEFWidgetDescriptionItemPr
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_BUTTON_DESCRIPTION__STYLE, EefFactory.eINSTANCE.createEEFButtonStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFButtonConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxConditionalStyleItemProvider.java
new file mode 100644
index 000000000..00082abf1
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFCheckboxConditionalStyle} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFCheckboxConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCheckboxConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFCheckboxConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFCheckboxConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFCheckboxConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFCheckboxConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFCheckboxConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFCheckboxConditionalStyle.class)) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFCheckboxStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxDescriptionItemProvider.java
index fb837a909..63fda0dfd 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCheckboxDescriptionItemProvider.java
@@ -101,6 +101,7 @@ public class EEFCheckboxDescriptionItemProvider extends EEFWidgetDescriptionItem
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_CHECKBOX_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -167,6 +168,7 @@ public class EEFCheckboxDescriptionItemProvider extends EEFWidgetDescriptionItem
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE:
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -185,6 +187,9 @@ public class EEFCheckboxDescriptionItemProvider extends EEFWidgetDescriptionItem
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_CHECKBOX_DESCRIPTION__STYLE,
EefFactory.eINSTANCE.createEEFCheckboxStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFCheckboxConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFConditionalStyleItemProvider.java
new file mode 100644
index 000000000..a38a9648a
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFConditionalStyleItemProvider.java
@@ -0,0 +1,142 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EefPackage;
+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 org.eclipse.eef.EEFConditionalStyle} object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFConditionalStyleItemProvider 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 EEFConditionalStyleItemProvider(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);
+
+ addPreconditionExpressionPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Precondition Expression feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addPreconditionExpressionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_EEFConditionalStyle_preconditionExpression_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_EEFConditionalStyle_preconditionExpression_feature", "_UI_EEFConditionalStyle_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ EefPackage.Literals.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION, true, false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * <!-- 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 = ((EEFConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFConditionalStyle.class)) {
+ case EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION:
+ 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 EefEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetConditionalStyleItemProvider.java
new file mode 100644
index 000000000..8345fb06e
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFCustomWidgetConditionalStyle} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFCustomWidgetConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCustomWidgetConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFCustomWidgetConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFCustomWidgetConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFCustomWidgetConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFCustomWidgetConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFCustomWidgetConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFCustomWidgetConditionalStyle.class)) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFCustomWidgetStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetDescriptionItemProvider.java
index 4dff062a2..c8add9517 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetDescriptionItemProvider.java
@@ -63,6 +63,8 @@ public class EEFCustomWidgetDescriptionItemProvider extends EEFWidgetDescription
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS);
+ childrenFeatures.add(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -125,6 +127,8 @@ public class EEFCustomWidgetDescriptionItemProvider extends EEFWidgetDescription
switch (notification.getFeatureID(EEFCustomWidgetDescription.class)) {
case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS:
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -143,6 +147,12 @@ public class EEFCustomWidgetDescriptionItemProvider extends EEFWidgetDescription
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS,
EefFactory.eINSTANCE.createEEFCustomExpression()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE,
+ EefFactory.eINSTANCE.createEEFCustomWidgetStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFCustomWidgetConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetStyleItemProvider.java
new file mode 100644
index 000000000..3c1f7a428
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFCustomWidgetStyleItemProvider.java
@@ -0,0 +1,105 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFCustomWidgetStyle;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFCustomWidgetStyle} object. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFCustomWidgetStyleItemProvider extends EEFWidgetStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCustomWidgetStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This returns EEFCustomWidgetStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFCustomWidgetStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFCustomWidgetStyle) object).getLabelFontNameExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFCustomWidgetStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFCustomWidgetStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- 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);
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelConditionalStyleItemProvider.java
new file mode 100644
index 000000000..4d8959e97
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFLabelConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFLabelConditionalStyle} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFLabelConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFLabelConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_LABEL_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFLabelConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFLabelConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFLabelConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFLabelConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFLabelConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFLabelConditionalStyle.class)) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_LABEL_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFLabelStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelDescriptionItemProvider.java
index cb155bc1a..8ab648703 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFLabelDescriptionItemProvider.java
@@ -80,6 +80,7 @@ public class EEFLabelDescriptionItemProvider extends EEFWidgetDescriptionItemPro
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_LABEL_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -145,6 +146,7 @@ public class EEFLabelDescriptionItemProvider extends EEFWidgetDescriptionItemPro
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_LABEL_DESCRIPTION__STYLE:
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -162,6 +164,9 @@ public class EEFLabelDescriptionItemProvider extends EEFWidgetDescriptionItemPro
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_LABEL_DESCRIPTION__STYLE, EefFactory.eINSTANCE.createEEFLabelStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFLabelConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioConditionalStyleItemProvider.java
new file mode 100644
index 000000000..5269809b1
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFRadioConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFRadioConditionalStyle} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFRadioConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFRadioConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_RADIO_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFRadioConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFRadioConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFRadioConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFRadioConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFRadioConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFRadioConditionalStyle.class)) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_RADIO_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFRadioStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioDescriptionItemProvider.java
index edc7e3985..816a39ab2 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFRadioDescriptionItemProvider.java
@@ -148,6 +148,7 @@ public class EEFRadioDescriptionItemProvider extends EEFWidgetDescriptionItemPro
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_RADIO_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -217,6 +218,7 @@ public class EEFRadioDescriptionItemProvider extends EEFWidgetDescriptionItemPro
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_RADIO_DESCRIPTION__STYLE:
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -234,6 +236,9 @@ public class EEFRadioDescriptionItemProvider extends EEFWidgetDescriptionItemPro
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_RADIO_DESCRIPTION__STYLE, EefFactory.eINSTANCE.createEEFRadioStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFRadioConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectConditionalStyleItemProvider.java
new file mode 100644
index 000000000..2ce62df25
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFSelectConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFSelectConditionalStyle} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFSelectConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFSelectConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_SELECT_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFSelectConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFSelectConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFSelectConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFSelectConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFSelectConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFSelectConditionalStyle.class)) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_SELECT_CONDITIONAL_STYLE__STYLE,
+ EefFactory.eINSTANCE.createEEFSelectStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectDescriptionItemProvider.java
index 46fd86750..676288706 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFSelectDescriptionItemProvider.java
@@ -133,6 +133,7 @@ public class EEFSelectDescriptionItemProvider extends EEFWidgetDescriptionItemPr
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_SELECT_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -201,6 +202,7 @@ public class EEFSelectDescriptionItemProvider extends EEFWidgetDescriptionItemPr
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_SELECT_DESCRIPTION__STYLE:
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -218,6 +220,9 @@ public class EEFSelectDescriptionItemProvider extends EEFWidgetDescriptionItemPr
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_SELECT_DESCRIPTION__STYLE, EefFactory.eINSTANCE.createEEFSelectStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFSelectConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextConditionalStyleItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextConditionalStyleItemProvider.java
new file mode 100644
index 000000000..7b9eab121
--- /dev/null
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextConditionalStyleItemProvider.java
@@ -0,0 +1,148 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.eef.EEFTextConditionalStyle;
+import org.eclipse.eef.EefFactory;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.eef.EEFTextConditionalStyle} object. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class EEFTextConditionalStyleItemProvider extends EEFConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFTextConditionalStyleItemProvider(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);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * 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(EefPackage.Literals.EEF_TEXT_CONDITIONAL_STYLE__STYLE);
+ }
+ 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 EEFTextConditionalStyle.gif. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/EEFTextConditionalStyle")); //$NON-NLS-1$
+ }
+
+ /**
+ * <!-- 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 = ((EEFTextConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_EEFTextConditionalStyle_type") : //$NON-NLS-1$
+ getString("_UI_EEFTextConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EEFTextConditionalStyle.class)) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ 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(EefPackage.Literals.EEF_TEXT_CONDITIONAL_STYLE__STYLE, EefFactory.eINSTANCE.createEEFTextStyle()));
+ }
+
+}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextDescriptionItemProvider.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextDescriptionItemProvider.java
index 20a88d336..4ffb3fadb 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextDescriptionItemProvider.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EEFTextDescriptionItemProvider.java
@@ -111,6 +111,7 @@ public class EEFTextDescriptionItemProvider extends EEFWidgetDescriptionItemProv
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(EefPackage.Literals.EEF_TEXT_DESCRIPTION__STYLE);
+ childrenFeatures.add(EefPackage.Literals.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES);
}
return childrenFeatures;
}
@@ -178,6 +179,7 @@ public class EEFTextDescriptionItemProvider extends EEFWidgetDescriptionItemProv
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case EefPackage.EEF_TEXT_DESCRIPTION__STYLE:
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -195,6 +197,9 @@ public class EEFTextDescriptionItemProvider extends EEFWidgetDescriptionItemProv
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_TEXT_DESCRIPTION__STYLE, EefFactory.eINSTANCE.createEEFTextStyle()));
+
+ newChildDescriptors.add(createChildParameter(EefPackage.Literals.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES,
+ EefFactory.eINSTANCE.createEEFTextConditionalStyle()));
}
}
diff --git a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EefItemProviderAdapterFactory.java b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EefItemProviderAdapterFactory.java
index f25e82515..d38a43ce2 100644
--- a/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EefItemProviderAdapterFactory.java
+++ b/plugins/org.eclipse.eef.edit/src-gen/org/eclipse/eef/provider/EefItemProviderAdapterFactory.java
@@ -535,7 +535,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFButtonStyle} instances. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected EEFButtonStyleItemProvider eefButtonStyleItemProvider;
@@ -543,7 +543,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This creates an adapter for a {@link org.eclipse.eef.EEFButtonStyle}. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
@Override
@@ -558,7 +558,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFCheckboxStyle} instances. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected EEFCheckboxStyleItemProvider eefCheckboxStyleItemProvider;
@@ -566,7 +566,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This creates an adapter for a {@link org.eclipse.eef.EEFCheckboxStyle}. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
@Override
@@ -581,7 +581,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFSelectStyle} instances. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected EEFSelectStyleItemProvider eefSelectStyleItemProvider;
@@ -589,7 +589,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This creates an adapter for a {@link org.eclipse.eef.EEFSelectStyle}. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
@Override
@@ -604,7 +604,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFRadioStyle} instances. <!--
* begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated
*/
protected EEFRadioStyleItemProvider eefRadioStyleItemProvider;
@@ -612,7 +612,7 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
/**
* This creates an adapter for a {@link org.eclipse.eef.EEFRadioStyle}. <!-- begin-user-doc --> <!-- end-user-doc
* -->
- *
+ *
* @generated
*/
@Override
@@ -625,6 +625,190 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
}
/**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFCustomWidgetStyle} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCustomWidgetStyleItemProvider eefCustomWidgetStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFCustomWidgetStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFCustomWidgetStyleAdapter() {
+ if (eefCustomWidgetStyleItemProvider == null) {
+ eefCustomWidgetStyleItemProvider = new EEFCustomWidgetStyleItemProvider(this);
+ }
+
+ return eefCustomWidgetStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFTextConditionalStyle} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFTextConditionalStyleItemProvider eefTextConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFTextConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFTextConditionalStyleAdapter() {
+ if (eefTextConditionalStyleItemProvider == null) {
+ eefTextConditionalStyleItemProvider = new EEFTextConditionalStyleItemProvider(this);
+ }
+
+ return eefTextConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFButtonConditionalStyle} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFButtonConditionalStyleItemProvider eefButtonConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFButtonConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFButtonConditionalStyleAdapter() {
+ if (eefButtonConditionalStyleItemProvider == null) {
+ eefButtonConditionalStyleItemProvider = new EEFButtonConditionalStyleItemProvider(this);
+ }
+
+ return eefButtonConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFLabelConditionalStyle} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFLabelConditionalStyleItemProvider eefLabelConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFLabelConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFLabelConditionalStyleAdapter() {
+ if (eefLabelConditionalStyleItemProvider == null) {
+ eefLabelConditionalStyleItemProvider = new EEFLabelConditionalStyleItemProvider(this);
+ }
+
+ return eefLabelConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFCheckboxConditionalStyle} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCheckboxConditionalStyleItemProvider eefCheckboxConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFCheckboxConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFCheckboxConditionalStyleAdapter() {
+ if (eefCheckboxConditionalStyleItemProvider == null) {
+ eefCheckboxConditionalStyleItemProvider = new EEFCheckboxConditionalStyleItemProvider(this);
+ }
+
+ return eefCheckboxConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFSelectConditionalStyle} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFSelectConditionalStyleItemProvider eefSelectConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFSelectConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFSelectConditionalStyleAdapter() {
+ if (eefSelectConditionalStyleItemProvider == null) {
+ eefSelectConditionalStyleItemProvider = new EEFSelectConditionalStyleItemProvider(this);
+ }
+
+ return eefSelectConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFRadioConditionalStyle} instances. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFRadioConditionalStyleItemProvider eefRadioConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFRadioConditionalStyle}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFRadioConditionalStyleAdapter() {
+ if (eefRadioConditionalStyleItemProvider == null) {
+ eefRadioConditionalStyleItemProvider = new EEFRadioConditionalStyleItemProvider(this);
+ }
+
+ return eefRadioConditionalStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.eef.EEFCustomWidgetConditionalStyle}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCustomWidgetConditionalStyleItemProvider eefCustomWidgetConditionalStyleItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.eef.EEFCustomWidgetConditionalStyle}. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createEEFCustomWidgetConditionalStyleAdapter() {
+ if (eefCustomWidgetConditionalStyleItemProvider == null) {
+ eefCustomWidgetConditionalStyleItemProvider = new EEFCustomWidgetConditionalStyleItemProvider(this);
+ }
+
+ return eefCustomWidgetConditionalStyleItemProvider;
+ }
+
+ /**
* This returns the root adapter factory that contains this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -796,6 +980,30 @@ public class EefItemProviderAdapterFactory extends EefAdapterFactory implements
if (eefRadioStyleItemProvider != null) {
eefRadioStyleItemProvider.dispose();
}
+ if (eefCustomWidgetStyleItemProvider != null) {
+ eefCustomWidgetStyleItemProvider.dispose();
+ }
+ if (eefTextConditionalStyleItemProvider != null) {
+ eefTextConditionalStyleItemProvider.dispose();
+ }
+ if (eefButtonConditionalStyleItemProvider != null) {
+ eefButtonConditionalStyleItemProvider.dispose();
+ }
+ if (eefLabelConditionalStyleItemProvider != null) {
+ eefLabelConditionalStyleItemProvider.dispose();
+ }
+ if (eefCheckboxConditionalStyleItemProvider != null) {
+ eefCheckboxConditionalStyleItemProvider.dispose();
+ }
+ if (eefSelectConditionalStyleItemProvider != null) {
+ eefSelectConditionalStyleItemProvider.dispose();
+ }
+ if (eefRadioConditionalStyleItemProvider != null) {
+ eefRadioConditionalStyleItemProvider.dispose();
+ }
+ if (eefCustomWidgetConditionalStyleItemProvider != null) {
+ eefCustomWidgetConditionalStyleItemProvider.dispose();
+ }
}
}
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java
index 36fe4bd9c..f098394a8 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java
@@ -12,6 +12,9 @@ package org.eclipse.eef.ide.ui.api.widgets;
import com.google.common.base.Objects;
+import java.util.List;
+
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
@@ -183,6 +186,22 @@ public abstract class AbstractEEFWidgetLifecycleManager extends AbstractEEFLifec
protected abstract EEFWidgetStyle getWidgetStyle();
/**
+ * Returns the style of the widget associated to a conditional style.
+ *
+ * @param conditionalStyle
+ * The conditional style
+ * @return The style of the widget associated to a conditional style
+ */
+ protected abstract EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle);
+
+ /**
+ * Returns the conditional style of the widget.
+ *
+ * @return The conditional style of the widget
+ */
+ protected abstract List<EEFConditionalStyle> getWidgetConditionalStyles();
+
+ /**
* Create the main control.
*
* @param parent
@@ -208,22 +227,16 @@ public abstract class AbstractEEFWidgetLifecycleManager extends AbstractEEFLifec
label.setText(Objects.firstNonNull(value, "")); //$NON-NLS-1$
// Set label style
EEFWidgetStyle style = getWidgetStyle();
+ List<EEFConditionalStyle> conditionalStyles = getWidgetConditionalStyles();
+ if (conditionalStyles != null && !conditionalStyles.isEmpty()) {
+ style = getConditionalStyle(conditionalStyles, style);
+ }
if (style != null) {
- // Set font
- setFont(style.getLabelFontNameExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION,
- style.getLabelFontSizeExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION,
- style.getLabelFontStyleExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_STYLE_EXPRESSION, label);
-
- // Set background color
- setBackgroundColor(style.getLabelBackgroundColorExpression(),
- EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_BACKGROUND_COLOR_EXPRESSION, label);
-
- // Set foreground color
- setForegroundColor(style.getLabelForegroundColorExpression(),
- EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FOREGROUND_COLOR_EXPRESSION, label);
+ setLabelFontStyle(style);
}
}
}
+
});
this.getController().onNewHelp(new IConsumer<String>() {
@@ -237,6 +250,46 @@ public abstract class AbstractEEFWidgetLifecycleManager extends AbstractEEFLifec
}
/**
+ * Set label font style.
+ *
+ * @param style
+ * Label style
+ */
+ private void setLabelFontStyle(EEFWidgetStyle style) {
+ // Set font
+ setFont(style.getLabelFontNameExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION,
+ style.getLabelFontSizeExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION,
+ style.getLabelFontStyleExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FONT_STYLE_EXPRESSION, label);
+
+ // Set background color
+ setBackgroundColor(style.getLabelBackgroundColorExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_BACKGROUND_COLOR_EXPRESSION, label);
+
+ // Set foreground color
+ setForegroundColor(style.getLabelForegroundColorExpression(), EefPackage.Literals.EEF_WIDGET_STYLE__LABEL_FOREGROUND_COLOR_EXPRESSION, label);
+ }
+
+ /**
+ * Get valid conditional style.
+ *
+ * @param conditionalStyles
+ * Conditional styles
+ * @param defaultStyle
+ * Default style
+ * @return Return the first valid conditional style else null
+ */
+ private EEFWidgetStyle getConditionalStyle(List<EEFConditionalStyle> conditionalStyles, EEFWidgetStyle defaultStyle) {
+ EEFWidgetStyle style = defaultStyle;
+ for (EEFConditionalStyle eefConditionalStyle : conditionalStyles) {
+ String preconditionExpression = eefConditionalStyle.getPreconditionExpression();
+ Boolean preconditionValid = new Eval(interpreter, variableManager).get(preconditionExpression, Boolean.class);
+ if (preconditionValid != null && preconditionValid.booleanValue()) {
+ style = this.getWidgetStyle(eefConditionalStyle);
+ }
+ }
+ return style;
+ }
+
+ /**
* {@inheritDoc}
*
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFLifecycleManager#aboutToBeHidden()
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFButtonLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFButtonLifecycleManager.java
index 7d0f1a6dd..77b432fde 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFButtonLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFButtonLifecycleManager.java
@@ -12,7 +12,12 @@ package org.eclipse.eef.ide.ui.internal.widgets;
import com.google.common.base.Objects;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
import org.eclipse.eef.common.ui.api.EEFWidgetFactory;
@@ -134,6 +139,31 @@ public class EEFButtonLifecycleManager extends AbstractEEFWidgetLifecycleManager
return this.description.getStyle();
}
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFButtonConditionalStyle) {
+ return ((EEFButtonConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
@Override
public void aboutToBeShown() {
super.aboutToBeShown();
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFCheckboxLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFCheckboxLifecycleManager.java
index 3c309a9fb..500f404f0 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFCheckboxLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFCheckboxLifecycleManager.java
@@ -10,7 +10,12 @@
*******************************************************************************/
package org.eclipse.eef.ide.ui.internal.widgets;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
import org.eclipse.eef.common.ui.api.EEFWidgetFactory;
@@ -139,6 +144,31 @@ public class EEFCheckboxLifecycleManager extends AbstractEEFWidgetLifecycleManag
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFCheckboxConditionalStyle) {
+ return ((EEFCheckboxConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.ILifecycleManager#aboutToBeShown()
*/
@Override
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java
index 31adcf19c..ee1f8b698 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFLabelLifecycleManager.java
@@ -12,6 +12,11 @@ package org.eclipse.eef.ide.ui.internal.widgets;
import com.google.common.base.Objects;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EEFWidgetDescription;
@@ -22,6 +27,7 @@ import org.eclipse.eef.core.api.controllers.EEFControllersFactory;
import org.eclipse.eef.core.api.controllers.IConsumer;
import org.eclipse.eef.core.api.controllers.IEEFLabelController;
import org.eclipse.eef.core.api.controllers.IEEFWidgetController;
+import org.eclipse.eef.core.api.utils.Eval;
import org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.sirius.common.interpreter.api.IInterpreter;
@@ -101,16 +107,37 @@ public class EEFLabelLifecycleManager extends AbstractEEFWidgetLifecycleManager
this.controller.onNewBody(new IConsumer<String>() {
@Override
public void apply(String value) {
- if (!body.isDisposed() && !(body.getText() != null && body.getText().equals(value))) {
- body.setText(Objects.firstNonNull(value, "")); //$NON-NLS-1$
+ if (!body.isDisposed()) {
+ if (!(body.getText() != null && body.getText().equals(value))) {
+ body.setText(Objects.firstNonNull(value, "")); //$NON-NLS-1$
+ }
// Set style
- setLabelStyle(description.getStyle(), body);
+ setStyle();
}
}
});
}
/**
+ * Set the style.
+ */
+ private void setStyle() {
+ EEFLabelStyle textStyle = description.getStyle();
+ List<EEFLabelConditionalStyle> conditionalStyles = description.getConditionalStyles();
+ if (conditionalStyles != null) {
+ for (EEFLabelConditionalStyle eefTextConditionalStyle : conditionalStyles) {
+ String preconditionExpression = eefTextConditionalStyle.getPreconditionExpression();
+ Boolean preconditionValid = new Eval(interpreter, variableManager).get(preconditionExpression, Boolean.class);
+ if (preconditionValid != null && preconditionValid.booleanValue()) {
+ textStyle = eefTextConditionalStyle.getStyle();
+ break;
+ }
+ }
+ }
+ setLabelStyle(textStyle, body);
+ }
+
+ /**
* Set the text style.
*
* @param style
@@ -177,6 +204,31 @@ public class EEFLabelLifecycleManager extends AbstractEEFWidgetLifecycleManager
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFLabelConditionalStyle) {
+ return ((EEFLabelConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getValidationControl()
*/
@Override
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFRadioLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFRadioLifecycleManager.java
index 9884f4659..fbb660de8 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFRadioLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFRadioLifecycleManager.java
@@ -10,10 +10,13 @@
*******************************************************************************/
package org.eclipse.eef.ide.ui.internal.widgets;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
@@ -154,6 +157,31 @@ public class EEFRadioLifecycleManager extends AbstractEEFWidgetLifecycleManager
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFRadioConditionalStyle) {
+ return ((EEFRadioConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getValidationControl()
*/
@Override
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFSelectLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFSelectLifecycleManager.java
index a7f7841ed..011638327 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFSelectLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFSelectLifecycleManager.java
@@ -10,10 +10,13 @@
*******************************************************************************/
package org.eclipse.eef.ide.ui.internal.widgets;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
@@ -157,6 +160,31 @@ public class EEFSelectLifecycleManager extends AbstractEEFWidgetLifecycleManager
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFSelectConditionalStyle) {
+ return ((EEFSelectConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getValidationControl()
*/
@Override
diff --git a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
index c5752b1b7..d82c7b772 100644
--- a/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
+++ b/plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/internal/widgets/EEFTextLifecycleManager.java
@@ -12,7 +12,13 @@ package org.eclipse.eef.ide.ui.internal.widgets;
import com.google.common.base.Objects;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
+import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
import org.eclipse.eef.common.ui.api.EEFWidgetFactory;
@@ -21,6 +27,7 @@ import org.eclipse.eef.core.api.controllers.EEFControllersFactory;
import org.eclipse.eef.core.api.controllers.IConsumer;
import org.eclipse.eef.core.api.controllers.IEEFTextController;
import org.eclipse.eef.core.api.controllers.IEEFWidgetController;
+import org.eclipse.eef.core.api.utils.Eval;
import org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.sirius.common.interpreter.api.IInterpreter;
@@ -147,6 +154,31 @@ public class EEFTextLifecycleManager extends AbstractEEFWidgetLifecycleManager {
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFTextConditionalStyle) {
+ return ((EEFTextConditionalStyle) conditionalStyle).getStyle();
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.ILifecycleManager#aboutToBeShown()
*/
@Override
@@ -166,21 +198,41 @@ public class EEFTextLifecycleManager extends AbstractEEFWidgetLifecycleManager {
this.controller.onNewValue(new IConsumer<String>() {
@Override
public void apply(String value) {
- // Set style
if (!text.isDisposed()) {
if (!(text.getText() != null && text.getText().equals(value))) {
text.setText(Objects.firstNonNull(value, "")); //$NON-NLS-1$
}
- setTextStyle(description.getStyle(), text);
+ // Set style
+ setStyle();
if (!text.isEnabled()) {
text.setEnabled(true);
}
}
}
+
});
}
/**
+ * Set the style.
+ */
+ private void setStyle() {
+ EEFTextStyle textStyle = description.getStyle();
+ List<EEFTextConditionalStyle> conditionalStyles = description.getConditionalStyles();
+ if (conditionalStyles != null) {
+ for (EEFTextConditionalStyle eefTextConditionalStyle : conditionalStyles) {
+ String preconditionExpression = eefTextConditionalStyle.getPreconditionExpression();
+ Boolean preconditionValid = new Eval(interpreter, variableManager).get(preconditionExpression, Boolean.class);
+ if (preconditionValid != null && preconditionValid.booleanValue()) {
+ textStyle = eefTextConditionalStyle.getStyle();
+ break;
+ }
+ }
+ }
+ setTextStyle(textStyle, text);
+ }
+
+ /**
* {@inheritDoc}
*
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getValidationControl()
diff --git a/plugins/org.eclipse.eef/model/eef.ecore b/plugins/org.eclipse.eef/model/eef.ecore
index 5af758932..4c2baaf54 100644
--- a/plugins/org.eclipse.eef/model/eef.ecore
+++ b/plugins/org.eclipse.eef/model/eef.ecore
@@ -277,6 +277,12 @@
<details key="documentation" value="Defines the text style"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFTextConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the text style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFLabelDescription" eSuperTypes="#//EEFWidgetDescription">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
@@ -293,6 +299,12 @@
<details key="documentation" value="Defines the label style"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFLabelConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the label style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFButtonDescription" eSuperTypes="#//EEFWidgetDescription">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
@@ -315,6 +327,12 @@
<details key="documentation" value="Defines the button style"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFButtonConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the button style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFCheckboxDescription" eSuperTypes="#//EEFWidgetDescription">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
@@ -336,6 +354,12 @@
<details key="documentation" value="Defines the checkbox style"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFCheckboxConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the checkbox style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFSelectDescription" eSuperTypes="#//EEFWidgetDescription">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
@@ -368,6 +392,12 @@
<details key="documentation" value="Defines the select style"/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFSelectConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the select style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFRadioDescription" eSuperTypes="#//EEFWidgetDescription">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
@@ -406,6 +436,12 @@
<details key="documentation" value="The number of columns to use to display the candidates."/>
</eAnnotations>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFRadioConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the radio style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFDynamicMappingFor">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="iterator" lowerBound="1"
@@ -447,6 +483,18 @@
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="customExpressions" upperBound="-1"
eType="#//EEFCustomExpression" containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFCustomWidgetStyle"
+ containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the custom widget style"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//EEFCustomWidgetConditionalStyle" containment="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Defines the select style associated to a precondition"/>
+ </eAnnotations>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEFCustomExpression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="identifier" lowerBound="1"
@@ -580,4 +628,62 @@
<details key="documentation" value="Represents a style that can be applied on radio widgets."/>
</eAnnotations>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFCustomWidgetStyle" eSuperTypes="#//EEFWidgetStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a style that can be applied on custom widgets."/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFConditionalStyle" abstract="true">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="preconditionExpression"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFTextConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on text widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFTextStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFButtonConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on text widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFButtonStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFLabelConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on label widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFLabelStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFCheckboxConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on checkbox widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFCheckboxStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFSelectConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on select widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFSelectStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFRadioConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on radio widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFRadioStyle"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EEFCustomWidgetConditionalStyle" eSuperTypes="#//EEFConditionalStyle">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Represents a conditional style that can be applied on custom widgets."/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//EEFCustomWidgetStyle"
+ containment="true"/>
+ </eClassifiers>
</ecore:EPackage>
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonConditionalStyle.java
new file mode 100644
index 000000000..abe884bd5
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Button Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on text widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFButtonConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFButtonConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFButtonConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFButtonStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFButtonConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFButtonStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFButtonConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFButtonStyle value);
+
+} // EEFButtonConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonDescription.java
index 9291a5878..25d40c27a 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFButtonDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Button Description</b></em>'. <!--
* end-user-doc -->
@@ -20,6 +22,7 @@ package org.eclipse.eef;
* <li>{@link org.eclipse.eef.EEFButtonDescription#getButtonLabelExpression <em>Button Label Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFButtonDescription#getPushExpression <em>Push Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFButtonDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFButtonDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -99,4 +102,16 @@ public interface EEFButtonDescription extends EEFWidgetDescription {
*/
void setStyle(EEFButtonStyle value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFButtonConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the button style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFButtonDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFButtonConditionalStyle> getConditionalStyles();
+
} // EEFButtonDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxConditionalStyle.java
new file mode 100644
index 000000000..4a7084323
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxConditionalStyle.java
@@ -0,0 +1,57 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Checkbox Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on checkbox widgets. <!-- end-model-doc
+ * -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFCheckboxConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFCheckboxConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFCheckboxConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFCheckboxStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFCheckboxConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFCheckboxStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFCheckboxConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFCheckboxStyle value);
+
+} // EEFCheckboxConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxDescription.java
index 40a283151..dfbc86a1c 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCheckboxDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Checkbox Description</b></em>'. <!--
* end-user-doc -->
@@ -20,6 +22,7 @@ package org.eclipse.eef;
* <li>{@link org.eclipse.eef.EEFCheckboxDescription#getValueExpression <em>Value Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFCheckboxDescription#getEditExpression <em>Edit Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFCheckboxDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFCheckboxDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -98,4 +101,16 @@ public interface EEFCheckboxDescription extends EEFWidgetDescription {
*/
void setStyle(EEFCheckboxStyle value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFCheckboxConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the checkbox style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFCheckboxDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFCheckboxConditionalStyle> getConditionalStyles();
+
} // EEFCheckboxDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFConditionalStyle.java
new file mode 100644
index 000000000..79f314ffb
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFConditionalStyle#getPreconditionExpression <em>Precondition Expression</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFConditionalStyle()
+ * @model abstract="true"
+ * @generated
+ */
+public interface EEFConditionalStyle extends EObject {
+ /**
+ * Returns the value of the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Precondition Expression</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Precondition Expression</em>' attribute.
+ * @see #setPreconditionExpression(String)
+ * @see org.eclipse.eef.EefPackage#getEEFConditionalStyle_PreconditionExpression()
+ * @model
+ * @generated
+ */
+ String getPreconditionExpression();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFConditionalStyle#getPreconditionExpression
+ * <em>Precondition Expression</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Precondition Expression</em>' attribute.
+ * @see #getPreconditionExpression()
+ * @generated
+ */
+ void setPreconditionExpression(String value);
+
+} // EEFConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetConditionalStyle.java
new file mode 100644
index 000000000..5ea51308f
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Custom Widget Conditional Style</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on custom widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFCustomWidgetConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFCustomWidgetConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFCustomWidgetConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFCustomWidgetStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFCustomWidgetConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFCustomWidgetStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFCustomWidgetConditionalStyle#getStyle <em>Style</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFCustomWidgetStyle value);
+
+} // EEFCustomWidgetConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetDescription.java
index 34a73d36c..b6af1e736 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetDescription.java
@@ -20,6 +20,8 @@ import org.eclipse.emf.common.util.EList;
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.eef.EEFCustomWidgetDescription#getCustomExpressions <em>Custom Expressions</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFCustomWidgetDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFCustomWidgetDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -44,4 +46,39 @@ public interface EEFCustomWidgetDescription extends EEFWidgetDescription {
*/
EList<EEFCustomExpression> getCustomExpressions();
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * --> <!-- begin-model-doc --> Defines the custom widget style <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFCustomStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFCustomWidgetDescription_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFCustomWidgetStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFCustomWidgetDescription#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFCustomWidgetStyle value);
+
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFCustomWidgetConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * <!-- begin-model-doc --> Defines the select style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFCustomWidgetDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFCustomWidgetConditionalStyle> getConditionalStyles();
+
} // EEFCustomWidgetDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetStyle.java
new file mode 100644
index 000000000..2f6348c3c
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFCustomWidgetStyle.java
@@ -0,0 +1,23 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Custom Widget Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a style that can be applied on custom widgets. <!-- end-model-doc -->
+ *
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFCustomWidgetStyle()
+ * @model
+ * @generated
+ */
+public interface EEFCustomWidgetStyle extends EEFWidgetStyle {
+} // EEFCustomWidgetStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelConditionalStyle.java
new file mode 100644
index 000000000..bbf9083bc
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Label Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on label widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFLabelConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFLabelConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFLabelConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFLabelStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFLabelConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFLabelStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFLabelConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFLabelStyle value);
+
+} // EEFLabelConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelDescription.java
index 5244c1e12..b4c527f93 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFLabelDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Label Description</b></em>'. <!--
* end-user-doc -->
@@ -19,6 +21,7 @@ package org.eclipse.eef;
* <ul>
* <li>{@link org.eclipse.eef.EEFLabelDescription#getBodyExpression <em>Body Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFLabelDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFLabelDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -73,4 +76,16 @@ public interface EEFLabelDescription extends EEFWidgetDescription {
*/
void setStyle(EEFLabelStyle value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFButtonConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the label style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFLabelDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFLabelConditionalStyle> getConditionalStyles();
+
} // EEFLabelDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioConditionalStyle.java
new file mode 100644
index 000000000..2b7ba1c21
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Radio Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on radio widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFRadioConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFRadioConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFRadioConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFRadioStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFRadioConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFRadioStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFRadioConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFRadioStyle value);
+
+} // EEFRadioConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioDescription.java
index 0cd957ce6..558e0f197 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFRadioDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Radio Description</b></em>'. <!--
* end-user-doc -->
@@ -23,6 +25,7 @@ package org.eclipse.eef;
* <li>{@link org.eclipse.eef.EEFRadioDescription#getCandidateDisplayExpression <em>Candidate Display Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFRadioDescription#getStyle <em>Style</em>}</li>
* <li>{@link org.eclipse.eef.EEFRadioDescription#getNumberOfColumns <em>Number Of Columns</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFRadioDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -171,4 +174,16 @@ public interface EEFRadioDescription extends EEFWidgetDescription {
*/
void setNumberOfColumns(int value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFRadioConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the radio style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFRadioDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFRadioConditionalStyle> getConditionalStyles();
+
} // EEFRadioDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectConditionalStyle.java
new file mode 100644
index 000000000..5bb800e5e
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Select Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on select widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFSelectConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFSelectConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFSelectConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFSelectStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFSelectConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFSelectStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFSelectConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFSelectStyle value);
+
+} // EEFSelectConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectDescription.java
index b49f7b8b3..640b1fcc5 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFSelectDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Select Description</b></em>'. <!--
* end-user-doc -->
@@ -23,6 +25,7 @@ package org.eclipse.eef;
* <li>{@link org.eclipse.eef.EEFSelectDescription#getCandidatesExpression <em>Candidates Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFSelectDescription#getCandidateDisplayExpression <em>Candidate Display Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFSelectDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFSelectDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -147,4 +150,16 @@ public interface EEFSelectDescription extends EEFWidgetDescription {
*/
void setStyle(EEFSelectStyle value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFSelectConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the select style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFSelectDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFSelectConditionalStyle> getConditionalStyles();
+
} // EEFSelectDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextConditionalStyle.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextConditionalStyle.java
new file mode 100644
index 000000000..aa6cbbd89
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextConditionalStyle.java
@@ -0,0 +1,56 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Text Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ *
+ * <!-- begin-model-doc --> Represents a conditional style that can be applied on text widgets. <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.eef.EEFTextConditionalStyle#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.eef.EefPackage#getEEFTextConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface EEFTextConditionalStyle extends EEFConditionalStyle {
+ /**
+ * Returns the value of the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Style</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Style</em>' containment reference.
+ * @see #setStyle(EEFTextStyle)
+ * @see org.eclipse.eef.EefPackage#getEEFTextConditionalStyle_Style()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EEFTextStyle getStyle();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.eef.EEFTextConditionalStyle#getStyle <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Style</em>' containment reference.
+ * @see #getStyle()
+ * @generated
+ */
+ void setStyle(EEFTextStyle value);
+
+} // EEFTextConditionalStyle
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextDescription.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextDescription.java
index 86e554d7a..a5458b66e 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextDescription.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EEFTextDescription.java
@@ -8,6 +8,8 @@
*/
package org.eclipse.eef;
+import org.eclipse.emf.common.util.EList;
+
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EEF Text Description</b></em>'. <!--
* end-user-doc -->
@@ -21,6 +23,7 @@ package org.eclipse.eef;
* <li>{@link org.eclipse.eef.EEFTextDescription#getEditExpression <em>Edit Expression</em>}</li>
* <li>{@link org.eclipse.eef.EEFTextDescription#getLineCount <em>Line Count</em>}</li>
* <li>{@link org.eclipse.eef.EEFTextDescription#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.EEFTextDescription#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -127,4 +130,16 @@ public interface EEFTextDescription extends EEFWidgetDescription {
*/
void setStyle(EEFTextStyle value);
+ /**
+ * Returns the value of the '<em><b>Conditional Styles</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.eef.EEFTextConditionalStyle}. <!-- begin-user-doc --> <!-- end-user-doc --> <!--
+ * begin-model-doc --> Defines the text style associated to a precondition <!-- end-model-doc -->
+ *
+ * @return the value of the '<em>Conditional Styles</em>' containment reference list.
+ * @see org.eclipse.eef.EefPackage#getEEFTextDescription_ConditionalStyles()
+ * @model containment="true" resolveProxies="true"
+ * @generated
+ */
+ EList<EEFTextConditionalStyle> getConditionalStyles();
+
} // EEFTextDescription
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefFactory.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefFactory.java
index 2736b6df6..b8179eb4c 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefFactory.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefFactory.java
@@ -223,6 +223,77 @@ public interface EefFactory extends EFactory {
EEFRadioStyle createEEFRadioStyle();
/**
+ * Returns a new object of class '<em>EEF Custom Widget Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>EEF Custom Widget Style</em>'.
+ * @generated
+ */
+ EEFCustomWidgetStyle createEEFCustomWidgetStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Text Conditional Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>EEF Text Conditional Style</em>'.
+ * @generated
+ */
+ EEFTextConditionalStyle createEEFTextConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Button Conditional Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>EEF Button Conditional Style</em>'.
+ * @generated
+ */
+ EEFButtonConditionalStyle createEEFButtonConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Label Conditional Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>EEF Label Conditional Style</em>'.
+ * @generated
+ */
+ EEFLabelConditionalStyle createEEFLabelConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Checkbox Conditional Style</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>EEF Checkbox Conditional Style</em>'.
+ * @generated
+ */
+ EEFCheckboxConditionalStyle createEEFCheckboxConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Select Conditional Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>EEF Select Conditional Style</em>'.
+ * @generated
+ */
+ EEFSelectConditionalStyle createEEFSelectConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Radio Conditional Style</em>'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return a new object of class '<em>EEF Radio Conditional Style</em>'.
+ * @generated
+ */
+ EEFRadioConditionalStyle createEEFRadioConditionalStyle();
+
+ /**
+ * Returns a new object of class '<em>EEF Custom Widget Conditional Style</em>'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return a new object of class '<em>EEF Custom Widget Conditional Style</em>'.
+ * @generated
+ */
+ EEFCustomWidgetConditionalStyle createEEFCustomWidgetConditionalStyle();
+
+ /**
* Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return the package supported by this factory.
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefPackage.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefPackage.java
index a4bcf4c22..88e837660 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefPackage.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/EefPackage.java
@@ -714,13 +714,22 @@ public interface EefPackage extends EPackage {
int EEF_TEXT_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
+
+ /**
* The number of structural features of the '<em>EEF Text Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_TEXT_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
+ int EEF_TEXT_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 5;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFLabelDescriptionImpl <em>EEF Label Description</em>}'
@@ -784,13 +793,22 @@ public interface EefPackage extends EPackage {
int EEF_LABEL_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 1;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
+
+ /**
* The number of structural features of the '<em>EEF Label Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_LABEL_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
+ int EEF_LABEL_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl <em>EEF Button Description</em>}
@@ -863,13 +881,22 @@ public interface EefPackage extends EPackage {
int EEF_BUTTON_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
+
+ /**
* The number of structural features of the '<em>EEF Button Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_BUTTON_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
+ int EEF_BUTTON_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl
@@ -942,13 +969,22 @@ public interface EefPackage extends EPackage {
int EEF_CHECKBOX_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
+
+ /**
* The number of structural features of the '<em>EEF Checkbox Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_CHECKBOX_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
+ int EEF_CHECKBOX_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFSelectDescriptionImpl <em>EEF Select Description</em>}
@@ -1039,13 +1075,22 @@ public interface EefPackage extends EPackage {
int EEF_SELECT_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 5;
+
+ /**
* The number of structural features of the '<em>EEF Select Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_SELECT_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 5;
+ int EEF_SELECT_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 6;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFRadioDescriptionImpl <em>EEF Radio Description</em>}'
@@ -1145,13 +1190,22 @@ public interface EefPackage extends EPackage {
int EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 5;
/**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 6;
+
+ /**
* The number of structural features of the '<em>EEF Radio Description</em>' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_RADIO_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 6;
+ int EEF_RADIO_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 7;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFDynamicMappingForImpl
@@ -1289,13 +1343,31 @@ public interface EefPackage extends EPackage {
int EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 0;
/**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
+
+ /**
* The number of structural features of the '<em>EEF Custom Widget Description</em>' class. <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
* @ordered
*/
- int EEF_CUSTOM_WIDGET_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 1;
+ int EEF_CUSTOM_WIDGET_DESCRIPTION_FEATURE_COUNT = EefPackage.EEF_WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
/**
* The meta object id for the '{@link org.eclipse.eef.impl.EEFCustomExpressionImpl <em>EEF Custom Expression</em>}'
@@ -1872,6 +1944,357 @@ public interface EefPackage extends EPackage {
int EEF_RADIO_STYLE_FEATURE_COUNT = EefPackage.EEF_WIDGET_STYLE_FEATURE_COUNT + 0;
/**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFCustomWidgetStyleImpl
+ * <em>EEF Custom Widget Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCustomWidgetStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCustomWidgetStyle()
+ * @generated
+ */
+ int EEF_CUSTOM_WIDGET_STYLE = 27;
+
+ /**
+ * The feature id for the '<em><b>Label Background Color Expression</b></em>' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE__LABEL_BACKGROUND_COLOR_EXPRESSION = EefPackage.EEF_WIDGET_STYLE__LABEL_BACKGROUND_COLOR_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Label Foreground Color Expression</b></em>' attribute. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE__LABEL_FOREGROUND_COLOR_EXPRESSION = EefPackage.EEF_WIDGET_STYLE__LABEL_FOREGROUND_COLOR_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Label Font Name Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION = EefPackage.EEF_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Label Font Size Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION = EefPackage.EEF_WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Label Font Style Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE__LABEL_FONT_STYLE_EXPRESSION = EefPackage.EEF_WIDGET_STYLE__LABEL_FONT_STYLE_EXPRESSION;
+
+ /**
+ * The number of structural features of the '<em>EEF Custom Widget Style</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_STYLE_FEATURE_COUNT = EefPackage.EEF_WIDGET_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFConditionalStyleImpl <em>EEF Conditional Style</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFConditionalStyle()
+ * @generated
+ */
+ int EEF_CONDITIONAL_STYLE = 28;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Conditional Style</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CONDITIONAL_STYLE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFTextConditionalStyleImpl
+ * <em>EEF Text Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFTextConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFTextConditionalStyle()
+ * @generated
+ */
+ int EEF_TEXT_CONDITIONAL_STYLE = 29;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_TEXT_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_TEXT_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Text Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_TEXT_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFButtonConditionalStyleImpl
+ * <em>EEF Button Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFButtonConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFButtonConditionalStyle()
+ * @generated
+ */
+ int EEF_BUTTON_CONDITIONAL_STYLE = 30;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_BUTTON_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_BUTTON_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Button Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_BUTTON_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFLabelConditionalStyleImpl
+ * <em>EEF Label Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFLabelConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFLabelConditionalStyle()
+ * @generated
+ */
+ int EEF_LABEL_CONDITIONAL_STYLE = 31;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_LABEL_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_LABEL_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Label Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_LABEL_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFCheckboxConditionalStyleImpl
+ * <em>EEF Checkbox Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCheckboxConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCheckboxConditionalStyle()
+ * @generated
+ */
+ int EEF_CHECKBOX_CONDITIONAL_STYLE = 32;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CHECKBOX_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Checkbox Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CHECKBOX_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFSelectConditionalStyleImpl
+ * <em>EEF Select Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFSelectConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFSelectConditionalStyle()
+ * @generated
+ */
+ int EEF_SELECT_CONDITIONAL_STYLE = 33;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_SELECT_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_SELECT_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Select Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_SELECT_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFRadioConditionalStyleImpl
+ * <em>EEF Radio Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFRadioConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFRadioConditionalStyle()
+ * @generated
+ */
+ int EEF_RADIO_CONDITIONAL_STYLE = 34;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_RADIO_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_RADIO_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Radio Conditional Style</em>' class. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_RADIO_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.eef.impl.EEFCustomWidgetConditionalStyleImpl
+ * <em>EEF Custom Widget Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCustomWidgetConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCustomWidgetConditionalStyle()
+ * @generated
+ */
+ int EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE = 35;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>EEF Custom Widget Conditional Style</em>' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT = EefPackage.EEF_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
* The meta object id for the '{@link org.eclipse.eef.EEF_VALIDATION_SEVERITY_DESCRIPTION
* <em>EEF VALIDATION SEVERITY DESCRIPTION</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -1879,7 +2302,7 @@ public interface EefPackage extends EPackage {
* @see org.eclipse.eef.impl.EefPackageImpl#getEEF_VALIDATION_SEVERITY_DESCRIPTION()
* @generated
*/
- int EEF_VALIDATION_SEVERITY_DESCRIPTION = 27;
+ int EEF_VALIDATION_SEVERITY_DESCRIPTION = 36;
/**
* Returns the meta object for class '{@link org.eclipse.eef.EEFViewDescription <em>EEF View Description</em>}'.
@@ -2456,6 +2879,18 @@ public interface EefPackage extends EPackage {
EReference getEEFTextDescription_Style();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFTextDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFTextDescription#getConditionalStyles()
+ * @see #getEEFTextDescription()
+ * @generated
+ */
+ EReference getEEFTextDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFLabelDescription <em>EEF Label Description</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2488,6 +2923,18 @@ public interface EefPackage extends EPackage {
EReference getEEFLabelDescription_Style();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFLabelDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFLabelDescription#getConditionalStyles()
+ * @see #getEEFLabelDescription()
+ * @generated
+ */
+ EReference getEEFLabelDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFButtonDescription <em>EEF Button Description</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2531,6 +2978,18 @@ public interface EefPackage extends EPackage {
EReference getEEFButtonDescription_Style();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFButtonDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFButtonDescription#getConditionalStyles()
+ * @see #getEEFButtonDescription()
+ * @generated
+ */
+ EReference getEEFButtonDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFCheckboxDescription
* <em>EEF Checkbox Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2574,6 +3033,18 @@ public interface EefPackage extends EPackage {
EReference getEEFCheckboxDescription_Style();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFCheckboxDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFCheckboxDescription#getConditionalStyles()
+ * @see #getEEFCheckboxDescription()
+ * @generated
+ */
+ EReference getEEFCheckboxDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFSelectDescription <em>EEF Select Description</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2640,6 +3111,18 @@ public interface EefPackage extends EPackage {
EReference getEEFSelectDescription_Style();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFSelectDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFSelectDescription#getConditionalStyles()
+ * @see #getEEFSelectDescription()
+ * @generated
+ */
+ EReference getEEFSelectDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFRadioDescription <em>EEF Radio Description</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2717,6 +3200,18 @@ public interface EefPackage extends EPackage {
EAttribute getEEFRadioDescription_NumberOfColumns();
/**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFRadioDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFRadioDescription#getConditionalStyles()
+ * @see #getEEFRadioDescription()
+ * @generated
+ */
+ EReference getEEFRadioDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFDynamicMappingFor <em>EEF Dynamic Mapping For</em>}
* '. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2814,6 +3309,30 @@ public interface EefPackage extends EPackage {
EReference getEEFCustomWidgetDescription_CustomExpressions();
/**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.eef.EEFCustomWidgetDescription#getStyle <em>Style</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFCustomWidgetDescription#getStyle()
+ * @see #getEEFCustomWidgetDescription()
+ * @generated
+ */
+ EReference getEEFCustomWidgetDescription_Style();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.eef.EEFCustomWidgetDescription#getConditionalStyles <em>Conditional Styles</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Conditional Styles</em>'.
+ * @see org.eclipse.eef.EEFCustomWidgetDescription#getConditionalStyles()
+ * @see #getEEFCustomWidgetDescription()
+ * @generated
+ */
+ EReference getEEFCustomWidgetDescription_ConditionalStyles();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.eef.EEFCustomExpression <em>EEF Custom Expression</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3083,6 +3602,186 @@ public interface EefPackage extends EPackage {
EClass getEEFRadioStyle();
/**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFCustomWidgetStyle <em>EEF Custom Widget Style</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Custom Widget Style</em>'.
+ * @see org.eclipse.eef.EEFCustomWidgetStyle
+ * @generated
+ */
+ EClass getEEFCustomWidgetStyle();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFConditionalStyle <em>EEF Conditional Style</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFConditionalStyle
+ * @generated
+ */
+ EClass getEEFConditionalStyle();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.eef.EEFConditionalStyle#getPreconditionExpression
+ * <em>Precondition Expression</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Precondition Expression</em>'.
+ * @see org.eclipse.eef.EEFConditionalStyle#getPreconditionExpression()
+ * @see #getEEFConditionalStyle()
+ * @generated
+ */
+ EAttribute getEEFConditionalStyle_PreconditionExpression();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFTextConditionalStyle
+ * <em>EEF Text Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Text Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFTextConditionalStyle
+ * @generated
+ */
+ EClass getEEFTextConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.eef.EEFTextConditionalStyle#getStyle
+ * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFTextConditionalStyle#getStyle()
+ * @see #getEEFTextConditionalStyle()
+ * @generated
+ */
+ EReference getEEFTextConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFButtonConditionalStyle
+ * <em>EEF Button Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Button Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFButtonConditionalStyle
+ * @generated
+ */
+ EClass getEEFButtonConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.eef.EEFButtonConditionalStyle#getStyle
+ * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFButtonConditionalStyle#getStyle()
+ * @see #getEEFButtonConditionalStyle()
+ * @generated
+ */
+ EReference getEEFButtonConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFLabelConditionalStyle
+ * <em>EEF Label Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Label Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFLabelConditionalStyle
+ * @generated
+ */
+ EClass getEEFLabelConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.eef.EEFLabelConditionalStyle#getStyle
+ * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFLabelConditionalStyle#getStyle()
+ * @see #getEEFLabelConditionalStyle()
+ * @generated
+ */
+ EReference getEEFLabelConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFCheckboxConditionalStyle
+ * <em>EEF Checkbox Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Checkbox Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFCheckboxConditionalStyle
+ * @generated
+ */
+ EClass getEEFCheckboxConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.eef.EEFCheckboxConditionalStyle#getStyle <em>Style</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFCheckboxConditionalStyle#getStyle()
+ * @see #getEEFCheckboxConditionalStyle()
+ * @generated
+ */
+ EReference getEEFCheckboxConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFSelectConditionalStyle
+ * <em>EEF Select Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Select Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFSelectConditionalStyle
+ * @generated
+ */
+ EClass getEEFSelectConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.eef.EEFSelectConditionalStyle#getStyle
+ * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFSelectConditionalStyle#getStyle()
+ * @see #getEEFSelectConditionalStyle()
+ * @generated
+ */
+ EReference getEEFSelectConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFRadioConditionalStyle
+ * <em>EEF Radio Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Radio Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFRadioConditionalStyle
+ * @generated
+ */
+ EClass getEEFRadioConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.eef.EEFRadioConditionalStyle#getStyle
+ * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFRadioConditionalStyle#getStyle()
+ * @see #getEEFRadioConditionalStyle()
+ * @generated
+ */
+ EReference getEEFRadioConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.eef.EEFCustomWidgetConditionalStyle
+ * <em>EEF Custom Widget Conditional Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>EEF Custom Widget Conditional Style</em>'.
+ * @see org.eclipse.eef.EEFCustomWidgetConditionalStyle
+ * @generated
+ */
+ EClass getEEFCustomWidgetConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.eef.EEFCustomWidgetConditionalStyle#getStyle <em>Style</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Style</em>'.
+ * @see org.eclipse.eef.EEFCustomWidgetConditionalStyle#getStyle()
+ * @see #getEEFCustomWidgetConditionalStyle()
+ * @generated
+ */
+ EReference getEEFCustomWidgetConditionalStyle_Style();
+
+ /**
* Returns the meta object for enum '{@link org.eclipse.eef.EEF_VALIDATION_SEVERITY_DESCRIPTION
* <em>EEF VALIDATION SEVERITY DESCRIPTION</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3553,6 +4252,14 @@ public interface EefPackage extends EPackage {
EReference EEF_TEXT_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFTextDescription_Style();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFTextDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFLabelDescriptionImpl
* <em>EEF Label Description</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3579,6 +4286,14 @@ public interface EefPackage extends EPackage {
EReference EEF_LABEL_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFLabelDescription_Style();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFLabelDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl
* <em>EEF Button Description</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3613,6 +4328,14 @@ public interface EefPackage extends EPackage {
EReference EEF_BUTTON_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFButtonDescription_Style();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFButtonDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl
* <em>EEF Checkbox Description</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3647,6 +4370,14 @@ public interface EefPackage extends EPackage {
EReference EEF_CHECKBOX_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFCheckboxDescription_Style();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFCheckboxDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFSelectDescriptionImpl
* <em>EEF Select Description</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3697,6 +4428,14 @@ public interface EefPackage extends EPackage {
EReference EEF_SELECT_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFSelectDescription_Style();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFSelectDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFRadioDescriptionImpl
* <em>EEF Radio Description</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3755,6 +4494,14 @@ public interface EefPackage extends EPackage {
EAttribute EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS = EefPackage.eINSTANCE.getEEFRadioDescription_NumberOfColumns();
/**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFRadioDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFDynamicMappingForImpl
* <em>EEF Dynamic Mapping For</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -3833,6 +4580,22 @@ public interface EefPackage extends EPackage {
EReference EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS = EefPackage.eINSTANCE.getEEFCustomWidgetDescription_CustomExpressions();
/**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE = EefPackage.eINSTANCE.getEEFCustomWidgetDescription_Style();
+
+ /**
+ * The meta object literal for the '<em><b>Conditional Styles</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES = EefPackage.eINSTANCE.getEEFCustomWidgetDescription_ConditionalStyles();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.impl.EEFCustomExpressionImpl
* <em>EEF Custom Expression</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -4049,6 +4812,160 @@ public interface EefPackage extends EPackage {
EClass EEF_RADIO_STYLE = EefPackage.eINSTANCE.getEEFRadioStyle();
/**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFCustomWidgetStyleImpl
+ * <em>EEF Custom Widget Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCustomWidgetStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCustomWidgetStyle()
+ * @generated
+ */
+ EClass EEF_CUSTOM_WIDGET_STYLE = EefPackage.eINSTANCE.getEEFCustomWidgetStyle();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFConditionalStyleImpl
+ * <em>EEF Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFConditionalStyle()
+ * @generated
+ */
+ EClass EEF_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Precondition Expression</b></em>' attribute feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = EefPackage.eINSTANCE.getEEFConditionalStyle_PreconditionExpression();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFTextConditionalStyleImpl
+ * <em>EEF Text Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFTextConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFTextConditionalStyle()
+ * @generated
+ */
+ EClass EEF_TEXT_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFTextConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_TEXT_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFTextConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFButtonConditionalStyleImpl
+ * <em>EEF Button Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFButtonConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFButtonConditionalStyle()
+ * @generated
+ */
+ EClass EEF_BUTTON_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFButtonConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_BUTTON_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFButtonConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFLabelConditionalStyleImpl
+ * <em>EEF Label Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFLabelConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFLabelConditionalStyle()
+ * @generated
+ */
+ EClass EEF_LABEL_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFLabelConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_LABEL_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFLabelConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFCheckboxConditionalStyleImpl
+ * <em>EEF Checkbox Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCheckboxConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCheckboxConditionalStyle()
+ * @generated
+ */
+ EClass EEF_CHECKBOX_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFCheckboxConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFCheckboxConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFSelectConditionalStyleImpl
+ * <em>EEF Select Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFSelectConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFSelectConditionalStyle()
+ * @generated
+ */
+ EClass EEF_SELECT_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFSelectConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_SELECT_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFSelectConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFRadioConditionalStyleImpl
+ * <em>EEF Radio Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFRadioConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFRadioConditionalStyle()
+ * @generated
+ */
+ EClass EEF_RADIO_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFRadioConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_RADIO_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFRadioConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.eef.impl.EEFCustomWidgetConditionalStyleImpl
+ * <em>EEF Custom Widget Conditional Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.eef.impl.EEFCustomWidgetConditionalStyleImpl
+ * @see org.eclipse.eef.impl.EefPackageImpl#getEEFCustomWidgetConditionalStyle()
+ * @generated
+ */
+ EClass EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE = EefPackage.eINSTANCE.getEEFCustomWidgetConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment reference feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE = EefPackage.eINSTANCE.getEEFCustomWidgetConditionalStyle_Style();
+
+ /**
* The meta object literal for the '{@link org.eclipse.eef.EEF_VALIDATION_SEVERITY_DESCRIPTION
* <em>EEF VALIDATION SEVERITY DESCRIPTION</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
*
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonConditionalStyleImpl.java
new file mode 100644
index 000000000..954490497
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFButtonConditionalStyle;
+import org.eclipse.eef.EEFButtonStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Button Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFButtonConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFButtonConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFButtonConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFButtonStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFButtonConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_BUTTON_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFButtonStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFButtonStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFButtonStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFButtonStyle newStyle, NotificationChain msgs) {
+ EEFButtonStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFButtonStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFButtonStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFButtonStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFButtonConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonDescriptionImpl.java
index f27af126d..bc54d5227 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFButtonDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
import org.eclipse.eef.EEFButtonStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Button Description</b></em>'. <!--
@@ -26,6 +32,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl#getButtonLabelExpression <em>Button Label Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl#getPushExpression <em>Push Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFButtonDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -83,6 +90,16 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
protected EEFButtonStyle style;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFButtonConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -240,10 +257,26 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
* @generated
*/
@Override
+ public EList<EEFButtonConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFButtonConditionalStyle>(EEFButtonConditionalStyle.class, this,
+ EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_BUTTON_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -265,6 +298,8 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
return getStyle();
}
return basicGetStyle();
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -274,6 +309,7 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -286,6 +322,10 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
case EefPackage.EEF_BUTTON_DESCRIPTION__STYLE:
setStyle((EEFButtonStyle) newValue);
return;
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFButtonConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -307,6 +347,9 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
case EefPackage.EEF_BUTTON_DESCRIPTION__STYLE:
setStyle((EEFButtonStyle) null);
return;
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -327,6 +370,8 @@ public class EEFButtonDescriptionImpl extends EEFWidgetDescriptionImpl implement
: !EEFButtonDescriptionImpl.PUSH_EXPRESSION_EDEFAULT.equals(pushExpression);
case EefPackage.EEF_BUTTON_DESCRIPTION__STYLE:
return style != null;
+ case EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxConditionalStyleImpl.java
new file mode 100644
index 000000000..e9b9c9428
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
+import org.eclipse.eef.EEFCheckboxStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Checkbox Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFCheckboxConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFCheckboxConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFCheckboxConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFCheckboxStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCheckboxConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_CHECKBOX_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFCheckboxStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFCheckboxStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE,
+ null, msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCheckboxStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFCheckboxStyle newStyle, NotificationChain msgs) {
+ EEFCheckboxStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE,
+ oldStyle, newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFCheckboxStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFCheckboxStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFCheckboxStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFCheckboxConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxDescriptionImpl.java
index 73edc2399..6db3163b9 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCheckboxDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
import org.eclipse.eef.EEFCheckboxStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Checkbox Description</b></em>'. <!--
@@ -26,6 +32,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl#getValueExpression <em>Value Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl#getEditExpression <em>Edit Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFCheckboxDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -83,6 +90,16 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
protected EEFCheckboxStyle style;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFCheckboxConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -241,10 +258,26 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
* @generated
*/
@Override
+ public EList<EEFCheckboxConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFCheckboxConditionalStyle>(EEFCheckboxConditionalStyle.class, this,
+ EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -266,6 +299,8 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
return getStyle();
}
return basicGetStyle();
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -275,6 +310,7 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -287,6 +323,10 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
case EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE:
setStyle((EEFCheckboxStyle) newValue);
return;
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFCheckboxConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -308,6 +348,9 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
case EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE:
setStyle((EEFCheckboxStyle) null);
return;
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -328,6 +371,8 @@ public class EEFCheckboxDescriptionImpl extends EEFWidgetDescriptionImpl impleme
: !EEFCheckboxDescriptionImpl.EDIT_EXPRESSION_EDEFAULT.equals(editExpression);
case EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE:
return style != null;
+ case EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFConditionalStyleImpl.java
new file mode 100644
index 000000000..3df2262ef
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFConditionalStyleImpl.java
@@ -0,0 +1,172 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFConditionalStyleImpl#getPreconditionExpression <em>Precondition Expression</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public abstract class EEFConditionalStyleImpl extends MinimalEObjectImpl.Container implements EEFConditionalStyle {
+ /**
+ * The default value of the '{@link #getPreconditionExpression() <em>Precondition Expression</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPreconditionExpression()
+ * @generated
+ * @ordered
+ */
+ protected static final String PRECONDITION_EXPRESSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPreconditionExpression() <em>Precondition Expression</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPreconditionExpression()
+ * @generated
+ * @ordered
+ */
+ protected String preconditionExpression = EEFConditionalStyleImpl.PRECONDITION_EXPRESSION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getPreconditionExpression() {
+ return preconditionExpression;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setPreconditionExpression(String newPreconditionExpression) {
+ String oldPreconditionExpression = preconditionExpression;
+ preconditionExpression = newPreconditionExpression;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION,
+ oldPreconditionExpression, preconditionExpression));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION:
+ return getPreconditionExpression();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION:
+ setPreconditionExpression((String) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION:
+ setPreconditionExpression(EEFConditionalStyleImpl.PRECONDITION_EXPRESSION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION:
+ return EEFConditionalStyleImpl.PRECONDITION_EXPRESSION_EDEFAULT == null ? preconditionExpression != null
+ : !EEFConditionalStyleImpl.PRECONDITION_EXPRESSION_EDEFAULT.equals(preconditionExpression);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (preconditionExpression: "); //$NON-NLS-1$
+ result.append(preconditionExpression);
+ result.append(')');
+ return result.toString();
+ }
+
+} // EEFConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetConditionalStyleImpl.java
new file mode 100644
index 000000000..9777b04c6
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
+import org.eclipse.eef.EEFCustomWidgetStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Custom Widget Conditional Style</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFCustomWidgetConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFCustomWidgetConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFCustomWidgetConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFCustomWidgetStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCustomWidgetConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFCustomWidgetStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFCustomWidgetStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE,
+ null, msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCustomWidgetStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFCustomWidgetStyle newStyle, NotificationChain msgs) {
+ EEFCustomWidgetStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE,
+ oldStyle, newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFCustomWidgetStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFCustomWidgetStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFCustomWidgetStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFCustomWidgetConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetDescriptionImpl.java
index dafcacd98..4c4b4c692 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetDescriptionImpl.java
@@ -11,12 +11,16 @@ package org.eclipse.eef.impl;
import java.util.Collection;
import org.eclipse.eef.EEFCustomExpression;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
+import org.eclipse.eef.EEFCustomWidgetStyle;
import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
@@ -27,6 +31,8 @@ import org.eclipse.emf.ecore.util.InternalEList;
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.eef.impl.EEFCustomWidgetDescriptionImpl#getCustomExpressions <em>Custom Expressions</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFCustomWidgetDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFCustomWidgetDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -44,6 +50,26 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
protected EList<EEFCustomExpression> customExpressions;
/**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFCustomWidgetStyle style;
+
+ /**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFCustomWidgetConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -82,10 +108,112 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
* @generated
*/
@Override
+ public EEFCustomWidgetStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFCustomWidgetStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFCustomWidgetStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFCustomWidgetStyle newStyle, NotificationChain msgs) {
+ EEFCustomWidgetStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFCustomWidgetStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EList<EEFCustomWidgetConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFCustomWidgetConditionalStyle>(EEFCustomWidgetConditionalStyle.class, this,
+ EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS:
return ((InternalEList<?>) getCustomExpressions()).basicRemove(otherEnd, msgs);
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ return basicSetStyle(null, msgs);
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -100,6 +228,13 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
switch (featureID) {
case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS:
return getCustomExpressions();
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -117,6 +252,13 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
getCustomExpressions().clear();
getCustomExpressions().addAll((Collection<? extends EEFCustomExpression>) newValue);
return;
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ setStyle((EEFCustomWidgetStyle) newValue);
+ return;
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFCustomWidgetConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -132,6 +274,12 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS:
getCustomExpressions().clear();
return;
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ setStyle((EEFCustomWidgetStyle) null);
+ return;
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -146,6 +294,10 @@ public class EEFCustomWidgetDescriptionImpl extends EEFWidgetDescriptionImpl imp
switch (featureID) {
case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS:
return customExpressions != null && !customExpressions.isEmpty();
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE:
+ return style != null;
+ case EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetStyleImpl.java
new file mode 100644
index 000000000..71b7647bb
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFCustomWidgetStyleImpl.java
@@ -0,0 +1,43 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFCustomWidgetStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Custom Widget Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFCustomWidgetStyleImpl extends EEFWidgetStyleImpl implements EEFCustomWidgetStyle {
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFCustomWidgetStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_CUSTOM_WIDGET_STYLE;
+ }
+
+} // EEFCustomWidgetStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelConditionalStyleImpl.java
new file mode 100644
index 000000000..a54e51daf
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFLabelConditionalStyle;
+import org.eclipse.eef.EEFLabelStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Label Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFLabelConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFLabelConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFLabelConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFLabelStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFLabelConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_LABEL_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFLabelStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFLabelStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFLabelStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFLabelStyle newStyle, NotificationChain msgs) {
+ EEFLabelStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFLabelStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFLabelStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFLabelStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFLabelConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelDescriptionImpl.java
index 29b861429..607ebad71 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFLabelDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Label Description</b></em>'. <!--
@@ -25,6 +31,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <ul>
* <li>{@link org.eclipse.eef.impl.EEFLabelDescriptionImpl#getBodyExpression <em>Body Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFLabelDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFLabelDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -62,6 +69,16 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
protected EEFLabelStyle style;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFLabelConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -194,10 +211,26 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
* @generated
*/
@Override
+ public EList<EEFLabelConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFLabelConditionalStyle>(EEFLabelConditionalStyle.class, this,
+ EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_LABEL_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -217,6 +250,8 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
return getStyle();
}
return basicGetStyle();
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -226,6 +261,7 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -235,6 +271,10 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_LABEL_DESCRIPTION__STYLE:
setStyle((EEFLabelStyle) newValue);
return;
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFLabelConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -253,6 +293,9 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_LABEL_DESCRIPTION__STYLE:
setStyle((EEFLabelStyle) null);
return;
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -270,6 +313,8 @@ public class EEFLabelDescriptionImpl extends EEFWidgetDescriptionImpl implements
: !EEFLabelDescriptionImpl.BODY_EXPRESSION_EDEFAULT.equals(bodyExpression);
case EefPackage.EEF_LABEL_DESCRIPTION__STYLE:
return style != null;
+ case EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioConditionalStyleImpl.java
new file mode 100644
index 000000000..c0ab569ff
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFRadioConditionalStyle;
+import org.eclipse.eef.EEFRadioStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Radio Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFRadioConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFRadioConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFRadioConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFRadioStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFRadioConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_RADIO_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFRadioStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFRadioStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFRadioStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFRadioStyle newStyle, NotificationChain msgs) {
+ EEFRadioStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFRadioStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFRadioStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFRadioStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFRadioConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioDescriptionImpl.java
index da5bad82c..901cefe54 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFRadioDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFRadioStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Radio Description</b></em>'. <!--
@@ -30,6 +36,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFRadioDescriptionImpl#getStyle <em>Style</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFRadioDescriptionImpl#getNumberOfColumns <em>Number Of Columns</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFRadioDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -147,6 +154,16 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
protected int numberOfColumns = EEFRadioDescriptionImpl.NUMBER_OF_COLUMNS_EDEFAULT;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFRadioConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -379,10 +396,26 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
* @generated
*/
@Override
+ public EList<EEFRadioConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFRadioConditionalStyle>(EEFRadioConditionalStyle.class, this,
+ EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_RADIO_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -410,6 +443,8 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
return basicGetStyle();
case EefPackage.EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS:
return getNumberOfColumns();
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -419,6 +454,7 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -440,6 +476,10 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS:
setNumberOfColumns((Integer) newValue);
return;
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFRadioConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -470,6 +510,9 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS:
setNumberOfColumns(EEFRadioDescriptionImpl.NUMBER_OF_COLUMNS_EDEFAULT);
return;
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -484,20 +527,22 @@ public class EEFRadioDescriptionImpl extends EEFWidgetDescriptionImpl implements
switch (featureID) {
case EefPackage.EEF_RADIO_DESCRIPTION__VALUE_EXPRESSION:
return EEFRadioDescriptionImpl.VALUE_EXPRESSION_EDEFAULT == null ? valueExpression != null
- : !EEFRadioDescriptionImpl.VALUE_EXPRESSION_EDEFAULT.equals(valueExpression);
+ : !EEFRadioDescriptionImpl.VALUE_EXPRESSION_EDEFAULT.equals(valueExpression);
case EefPackage.EEF_RADIO_DESCRIPTION__EDIT_EXPRESSION:
return EEFRadioDescriptionImpl.EDIT_EXPRESSION_EDEFAULT == null ? editExpression != null
- : !EEFRadioDescriptionImpl.EDIT_EXPRESSION_EDEFAULT.equals(editExpression);
+ : !EEFRadioDescriptionImpl.EDIT_EXPRESSION_EDEFAULT.equals(editExpression);
case EefPackage.EEF_RADIO_DESCRIPTION__CANDIDATES_EXPRESSION:
return EEFRadioDescriptionImpl.CANDIDATES_EXPRESSION_EDEFAULT == null ? candidatesExpression != null
- : !EEFRadioDescriptionImpl.CANDIDATES_EXPRESSION_EDEFAULT.equals(candidatesExpression);
+ : !EEFRadioDescriptionImpl.CANDIDATES_EXPRESSION_EDEFAULT.equals(candidatesExpression);
case EefPackage.EEF_RADIO_DESCRIPTION__CANDIDATE_DISPLAY_EXPRESSION:
return EEFRadioDescriptionImpl.CANDIDATE_DISPLAY_EXPRESSION_EDEFAULT == null ? candidateDisplayExpression != null
- : !EEFRadioDescriptionImpl.CANDIDATE_DISPLAY_EXPRESSION_EDEFAULT.equals(candidateDisplayExpression);
+ : !EEFRadioDescriptionImpl.CANDIDATE_DISPLAY_EXPRESSION_EDEFAULT.equals(candidateDisplayExpression);
case EefPackage.EEF_RADIO_DESCRIPTION__STYLE:
return style != null;
case EefPackage.EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS:
return numberOfColumns != EEFRadioDescriptionImpl.NUMBER_OF_COLUMNS_EDEFAULT;
+ case EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectConditionalStyleImpl.java
new file mode 100644
index 000000000..f0840ea1d
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFSelectConditionalStyle;
+import org.eclipse.eef.EEFSelectStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Select Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFSelectConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFSelectConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFSelectConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFSelectStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFSelectConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_SELECT_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFSelectStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFSelectStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFSelectStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFSelectStyle newStyle, NotificationChain msgs) {
+ EEFSelectStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFSelectStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFSelectStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFSelectStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFSelectConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectDescriptionImpl.java
index 4176799e0..fbb931fdc 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFSelectDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFSelectStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Select Description</b></em>'. <!--
@@ -29,6 +35,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.eef.impl.EEFSelectDescriptionImpl#getCandidateDisplayExpression <em>Candidate Display
* Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFSelectDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFSelectDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -126,6 +133,16 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
protected EEFSelectStyle style;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFSelectConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -333,10 +350,26 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
* @generated
*/
@Override
+ public EList<EEFSelectConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFSelectConditionalStyle>(EEFSelectConditionalStyle.class, this,
+ EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_SELECT_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -362,6 +395,8 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
return getStyle();
}
return basicGetStyle();
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -371,6 +406,7 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -389,6 +425,10 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
case EefPackage.EEF_SELECT_DESCRIPTION__STYLE:
setStyle((EEFSelectStyle) newValue);
return;
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFSelectConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -416,6 +456,9 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
case EefPackage.EEF_SELECT_DESCRIPTION__STYLE:
setStyle((EEFSelectStyle) null);
return;
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -442,6 +485,8 @@ public class EEFSelectDescriptionImpl extends EEFWidgetDescriptionImpl implement
: !EEFSelectDescriptionImpl.CANDIDATE_DISPLAY_EXPRESSION_EDEFAULT.equals(candidateDisplayExpression);
case EefPackage.EEF_SELECT_DESCRIPTION__STYLE:
return style != null;
+ case EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextConditionalStyleImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextConditionalStyleImpl.java
new file mode 100644
index 000000000..8da72cbc7
--- /dev/null
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextConditionalStyleImpl.java
@@ -0,0 +1,221 @@
+/**
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.htm
+ * Contributors: Obeo - initial API and implementation
+ */
+package org.eclipse.eef.impl;
+
+import org.eclipse.eef.EEFTextConditionalStyle;
+import org.eclipse.eef.EEFTextStyle;
+import org.eclipse.eef.EefPackage;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Text Conditional Style</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.eef.impl.EEFTextConditionalStyleImpl#getStyle <em>Style</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EEFTextConditionalStyleImpl extends EEFConditionalStyleImpl implements EEFTextConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected EEFTextStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected EEFTextConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EefPackage.Literals.EEF_TEXT_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFTextStyle getStyle() {
+ if (style != null && style.eIsProxy()) {
+ InternalEObject oldStyle = (InternalEObject) style;
+ style = (EEFTextStyle) eResolveProxy(oldStyle);
+ if (style != oldStyle) {
+ InternalEObject newStyle = (InternalEObject) style;
+ NotificationChain msgs = oldStyle.eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, null, null);
+ if (newStyle.eInternalContainer() == null) {
+ msgs = newStyle.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, null,
+ msgs);
+ }
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, oldStyle, style));
+ }
+ }
+ }
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEFTextStyle basicGetStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(EEFTextStyle newStyle, NotificationChain msgs) {
+ EEFTextStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, oldStyle,
+ newStyle);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setStyle(EEFTextStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE
+ - EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ return basicSetStyle(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ if (resolve) {
+ return getStyle();
+ }
+ return basicGetStyle();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFTextStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ setStyle((EEFTextStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // EEFTextConditionalStyleImpl
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextDescriptionImpl.java
index 01c3a5ab7..2b1b56e92 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextDescriptionImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFTextDescriptionImpl.java
@@ -8,14 +8,20 @@
*/
package org.eclipse.eef.impl;
+import java.util.Collection;
+
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EefPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Text Description</b></em>'. <!--
@@ -27,6 +33,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
* <li>{@link org.eclipse.eef.impl.EEFTextDescriptionImpl#getEditExpression <em>Edit Expression</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFTextDescriptionImpl#getLineCount <em>Line Count</em>}</li>
* <li>{@link org.eclipse.eef.impl.EEFTextDescriptionImpl#getStyle <em>Style</em>}</li>
+ * <li>{@link org.eclipse.eef.impl.EEFTextDescriptionImpl#getConditionalStyles <em>Conditional Styles</em>}</li>
* </ul>
* </p>
*
@@ -104,6 +111,16 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
protected EEFTextStyle style;
/**
+ * The cached value of the '{@link #getConditionalStyles() <em>Conditional Styles</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getConditionalStyles()
+ * @generated
+ * @ordered
+ */
+ protected EList<EEFTextConditionalStyle> conditionalStyles;
+
+ /**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
@@ -283,10 +300,26 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
* @generated
*/
@Override
+ public EList<EEFTextConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList.Resolving<EEFTextConditionalStyle>(EEFTextConditionalStyle.class, this,
+ EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES);
+ }
+ return conditionalStyles;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case EefPackage.EEF_TEXT_DESCRIPTION__STYLE:
return basicSetStyle(null, msgs);
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
+ return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
@@ -310,6 +343,8 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
return getStyle();
}
return basicGetStyle();
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
+ return getConditionalStyles();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -319,6 +354,7 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
*
* @generated
*/
+ @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
@@ -334,6 +370,10 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_TEXT_DESCRIPTION__STYLE:
setStyle((EEFTextStyle) newValue);
return;
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends EEFTextConditionalStyle>) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -358,6 +398,9 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
case EefPackage.EEF_TEXT_DESCRIPTION__STYLE:
setStyle((EEFTextStyle) null);
return;
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ return;
}
super.eUnset(featureID);
}
@@ -380,6 +423,8 @@ public class EEFTextDescriptionImpl extends EEFWidgetDescriptionImpl implements
return lineCount != EEFTextDescriptionImpl.LINE_COUNT_EDEFAULT;
case EefPackage.EEF_TEXT_DESCRIPTION__STYLE:
return style != null;
+ case EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES:
+ return conditionalStyles != null && !conditionalStyles.isEmpty();
}
return super.eIsSet(featureID);
}
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefFactoryImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefFactoryImpl.java
index 428d335c5..255c48227 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefFactoryImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefFactoryImpl.java
@@ -8,26 +8,34 @@
*/
package org.eclipse.eef.impl;
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
import org.eclipse.eef.EEFButtonStyle;
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
import org.eclipse.eef.EEFCheckboxStyle;
import org.eclipse.eef.EEFContainerDescription;
import org.eclipse.eef.EEFCustomExpression;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
+import org.eclipse.eef.EEFCustomWidgetStyle;
import org.eclipse.eef.EEFDynamicMappingFor;
import org.eclipse.eef.EEFDynamicMappingIf;
import org.eclipse.eef.EEFGroupDescription;
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EEFPageDescription;
import org.eclipse.eef.EEFPropertyValidationRuleDescription;
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFRadioStyle;
import org.eclipse.eef.EEFRuleAuditDescription;
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFSelectStyle;
import org.eclipse.eef.EEFSemanticValidationRuleDescription;
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFValidationFixDescription;
@@ -130,6 +138,22 @@ public class EefFactoryImpl extends EFactoryImpl implements EefFactory {
return createEEFSelectStyle();
case EefPackage.EEF_RADIO_STYLE:
return createEEFRadioStyle();
+ case EefPackage.EEF_CUSTOM_WIDGET_STYLE:
+ return createEEFCustomWidgetStyle();
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE:
+ return createEEFTextConditionalStyle();
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE:
+ return createEEFButtonConditionalStyle();
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE:
+ return createEEFLabelConditionalStyle();
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE:
+ return createEEFCheckboxConditionalStyle();
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE:
+ return createEEFSelectConditionalStyle();
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE:
+ return createEEFRadioConditionalStyle();
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE:
+ return createEEFCustomWidgetConditionalStyle();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -434,6 +458,94 @@ public class EefFactoryImpl extends EFactoryImpl implements EefFactory {
*
* @generated
*/
+ @Override
+ public EEFCustomWidgetStyle createEEFCustomWidgetStyle() {
+ EEFCustomWidgetStyleImpl eefCustomWidgetStyle = new EEFCustomWidgetStyleImpl();
+ return eefCustomWidgetStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFTextConditionalStyle createEEFTextConditionalStyle() {
+ EEFTextConditionalStyleImpl eefTextConditionalStyle = new EEFTextConditionalStyleImpl();
+ return eefTextConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFButtonConditionalStyle createEEFButtonConditionalStyle() {
+ EEFButtonConditionalStyleImpl eefButtonConditionalStyle = new EEFButtonConditionalStyleImpl();
+ return eefButtonConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFLabelConditionalStyle createEEFLabelConditionalStyle() {
+ EEFLabelConditionalStyleImpl eefLabelConditionalStyle = new EEFLabelConditionalStyleImpl();
+ return eefLabelConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFCheckboxConditionalStyle createEEFCheckboxConditionalStyle() {
+ EEFCheckboxConditionalStyleImpl eefCheckboxConditionalStyle = new EEFCheckboxConditionalStyleImpl();
+ return eefCheckboxConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFSelectConditionalStyle createEEFSelectConditionalStyle() {
+ EEFSelectConditionalStyleImpl eefSelectConditionalStyle = new EEFSelectConditionalStyleImpl();
+ return eefSelectConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFRadioConditionalStyle createEEFRadioConditionalStyle() {
+ EEFRadioConditionalStyleImpl eefRadioConditionalStyle = new EEFRadioConditionalStyleImpl();
+ return eefRadioConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EEFCustomWidgetConditionalStyle createEEFCustomWidgetConditionalStyle() {
+ EEFCustomWidgetConditionalStyleImpl eefCustomWidgetConditionalStyle = new EEFCustomWidgetConditionalStyleImpl();
+ return eefCustomWidgetConditionalStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public EEF_VALIDATION_SEVERITY_DESCRIPTION createEEF_VALIDATION_SEVERITY_DESCRIPTIONFromString(EDataType eDataType, String initialValue) {
EEF_VALIDATION_SEVERITY_DESCRIPTION result = EEF_VALIDATION_SEVERITY_DESCRIPTION.get(initialValue);
if (result == null) {
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefPackageImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefPackageImpl.java
index 25bc7126e..ef152d4af 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefPackageImpl.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EefPackageImpl.java
@@ -8,26 +8,35 @@
*/
package org.eclipse.eef.impl;
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
import org.eclipse.eef.EEFButtonStyle;
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
import org.eclipse.eef.EEFCheckboxStyle;
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFContainerDescription;
import org.eclipse.eef.EEFCustomExpression;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
+import org.eclipse.eef.EEFCustomWidgetStyle;
import org.eclipse.eef.EEFDynamicMappingFor;
import org.eclipse.eef.EEFDynamicMappingIf;
import org.eclipse.eef.EEFGroupDescription;
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EEFPageDescription;
import org.eclipse.eef.EEFPropertyValidationRuleDescription;
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFRadioStyle;
import org.eclipse.eef.EEFRuleAuditDescription;
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFSelectStyle;
import org.eclipse.eef.EEFSemanticValidationRuleDescription;
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFValidationFixDescription;
@@ -245,6 +254,69 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
*
* @generated
*/
+ private EClass eefCustomWidgetStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefTextConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefButtonConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefLabelConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefCheckboxConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefSelectConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefRadioConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass eefCustomWidgetConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EEnum eeF_VALIDATION_SEVERITY_DESCRIPTIONEEnum = null;
/**
@@ -838,6 +910,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFTextDescription_ConditionalStyles() {
+ return (EReference) eefTextDescriptionEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFLabelDescription() {
return eefLabelDescriptionEClass;
}
@@ -868,6 +950,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFLabelDescription_ConditionalStyles() {
+ return (EReference) eefLabelDescriptionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFButtonDescription() {
return eefButtonDescriptionEClass;
}
@@ -908,6 +1000,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFButtonDescription_ConditionalStyles() {
+ return (EReference) eefButtonDescriptionEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFCheckboxDescription() {
return eefCheckboxDescriptionEClass;
}
@@ -948,6 +1050,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFCheckboxDescription_ConditionalStyles() {
+ return (EReference) eefCheckboxDescriptionEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFSelectDescription() {
return eefSelectDescriptionEClass;
}
@@ -1008,6 +1120,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFSelectDescription_ConditionalStyles() {
+ return (EReference) eefSelectDescriptionEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFRadioDescription() {
return eefRadioDescriptionEClass;
}
@@ -1078,6 +1200,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFRadioDescription_ConditionalStyles() {
+ return (EReference) eefRadioDescriptionEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFDynamicMappingFor() {
return eefDynamicMappingForEClass;
}
@@ -1168,6 +1300,26 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EReference getEEFCustomWidgetDescription_Style() {
+ return (EReference) eefCustomWidgetDescriptionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFCustomWidgetDescription_ConditionalStyles() {
+ return (EReference) eefCustomWidgetDescriptionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getEEFCustomExpression() {
return eefCustomExpressionEClass;
}
@@ -1418,6 +1570,176 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
* @generated
*/
@Override
+ public EClass getEEFCustomWidgetStyle() {
+ return eefCustomWidgetStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFConditionalStyle() {
+ return eefConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getEEFConditionalStyle_PreconditionExpression() {
+ return (EAttribute) eefConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFTextConditionalStyle() {
+ return eefTextConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFTextConditionalStyle_Style() {
+ return (EReference) eefTextConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFButtonConditionalStyle() {
+ return eefButtonConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFButtonConditionalStyle_Style() {
+ return (EReference) eefButtonConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFLabelConditionalStyle() {
+ return eefLabelConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFLabelConditionalStyle_Style() {
+ return (EReference) eefLabelConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFCheckboxConditionalStyle() {
+ return eefCheckboxConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFCheckboxConditionalStyle_Style() {
+ return (EReference) eefCheckboxConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFSelectConditionalStyle() {
+ return eefSelectConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFSelectConditionalStyle_Style() {
+ return (EReference) eefSelectConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFRadioConditionalStyle() {
+ return eefRadioConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFRadioConditionalStyle_Style() {
+ return (EReference) eefRadioConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EClass getEEFCustomWidgetConditionalStyle() {
+ return eefCustomWidgetConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getEEFCustomWidgetConditionalStyle_Style() {
+ return (EReference) eefCustomWidgetConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EEnum getEEF_VALIDATION_SEVERITY_DESCRIPTION() {
return eeF_VALIDATION_SEVERITY_DESCRIPTIONEEnum;
}
@@ -1514,20 +1836,24 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
createEAttribute(eefTextDescriptionEClass, EefPackage.EEF_TEXT_DESCRIPTION__EDIT_EXPRESSION);
createEAttribute(eefTextDescriptionEClass, EefPackage.EEF_TEXT_DESCRIPTION__LINE_COUNT);
createEReference(eefTextDescriptionEClass, EefPackage.EEF_TEXT_DESCRIPTION__STYLE);
+ createEReference(eefTextDescriptionEClass, EefPackage.EEF_TEXT_DESCRIPTION__CONDITIONAL_STYLES);
eefLabelDescriptionEClass = createEClass(EefPackage.EEF_LABEL_DESCRIPTION);
createEAttribute(eefLabelDescriptionEClass, EefPackage.EEF_LABEL_DESCRIPTION__BODY_EXPRESSION);
createEReference(eefLabelDescriptionEClass, EefPackage.EEF_LABEL_DESCRIPTION__STYLE);
+ createEReference(eefLabelDescriptionEClass, EefPackage.EEF_LABEL_DESCRIPTION__CONDITIONAL_STYLES);
eefButtonDescriptionEClass = createEClass(EefPackage.EEF_BUTTON_DESCRIPTION);
createEAttribute(eefButtonDescriptionEClass, EefPackage.EEF_BUTTON_DESCRIPTION__BUTTON_LABEL_EXPRESSION);
createEAttribute(eefButtonDescriptionEClass, EefPackage.EEF_BUTTON_DESCRIPTION__PUSH_EXPRESSION);
createEReference(eefButtonDescriptionEClass, EefPackage.EEF_BUTTON_DESCRIPTION__STYLE);
+ createEReference(eefButtonDescriptionEClass, EefPackage.EEF_BUTTON_DESCRIPTION__CONDITIONAL_STYLES);
eefCheckboxDescriptionEClass = createEClass(EefPackage.EEF_CHECKBOX_DESCRIPTION);
createEAttribute(eefCheckboxDescriptionEClass, EefPackage.EEF_CHECKBOX_DESCRIPTION__VALUE_EXPRESSION);
createEAttribute(eefCheckboxDescriptionEClass, EefPackage.EEF_CHECKBOX_DESCRIPTION__EDIT_EXPRESSION);
createEReference(eefCheckboxDescriptionEClass, EefPackage.EEF_CHECKBOX_DESCRIPTION__STYLE);
+ createEReference(eefCheckboxDescriptionEClass, EefPackage.EEF_CHECKBOX_DESCRIPTION__CONDITIONAL_STYLES);
eefSelectDescriptionEClass = createEClass(EefPackage.EEF_SELECT_DESCRIPTION);
createEAttribute(eefSelectDescriptionEClass, EefPackage.EEF_SELECT_DESCRIPTION__VALUE_EXPRESSION);
@@ -1535,6 +1861,7 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
createEAttribute(eefSelectDescriptionEClass, EefPackage.EEF_SELECT_DESCRIPTION__CANDIDATES_EXPRESSION);
createEAttribute(eefSelectDescriptionEClass, EefPackage.EEF_SELECT_DESCRIPTION__CANDIDATE_DISPLAY_EXPRESSION);
createEReference(eefSelectDescriptionEClass, EefPackage.EEF_SELECT_DESCRIPTION__STYLE);
+ createEReference(eefSelectDescriptionEClass, EefPackage.EEF_SELECT_DESCRIPTION__CONDITIONAL_STYLES);
eefRadioDescriptionEClass = createEClass(EefPackage.EEF_RADIO_DESCRIPTION);
createEAttribute(eefRadioDescriptionEClass, EefPackage.EEF_RADIO_DESCRIPTION__VALUE_EXPRESSION);
@@ -1543,6 +1870,7 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
createEAttribute(eefRadioDescriptionEClass, EefPackage.EEF_RADIO_DESCRIPTION__CANDIDATE_DISPLAY_EXPRESSION);
createEReference(eefRadioDescriptionEClass, EefPackage.EEF_RADIO_DESCRIPTION__STYLE);
createEAttribute(eefRadioDescriptionEClass, EefPackage.EEF_RADIO_DESCRIPTION__NUMBER_OF_COLUMNS);
+ createEReference(eefRadioDescriptionEClass, EefPackage.EEF_RADIO_DESCRIPTION__CONDITIONAL_STYLES);
eefDynamicMappingForEClass = createEClass(EefPackage.EEF_DYNAMIC_MAPPING_FOR);
createEAttribute(eefDynamicMappingForEClass, EefPackage.EEF_DYNAMIC_MAPPING_FOR__ITERATOR);
@@ -1555,6 +1883,8 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
eefCustomWidgetDescriptionEClass = createEClass(EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION);
createEReference(eefCustomWidgetDescriptionEClass, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CUSTOM_EXPRESSIONS);
+ createEReference(eefCustomWidgetDescriptionEClass, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__STYLE);
+ createEReference(eefCustomWidgetDescriptionEClass, EefPackage.EEF_CUSTOM_WIDGET_DESCRIPTION__CONDITIONAL_STYLES);
eefCustomExpressionEClass = createEClass(EefPackage.EEF_CUSTOM_EXPRESSION);
createEAttribute(eefCustomExpressionEClass, EefPackage.EEF_CUSTOM_EXPRESSION__IDENTIFIER);
@@ -1589,6 +1919,32 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
eefRadioStyleEClass = createEClass(EefPackage.EEF_RADIO_STYLE);
+ eefCustomWidgetStyleEClass = createEClass(EefPackage.EEF_CUSTOM_WIDGET_STYLE);
+
+ eefConditionalStyleEClass = createEClass(EefPackage.EEF_CONDITIONAL_STYLE);
+ createEAttribute(eefConditionalStyleEClass, EefPackage.EEF_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION);
+
+ eefTextConditionalStyleEClass = createEClass(EefPackage.EEF_TEXT_CONDITIONAL_STYLE);
+ createEReference(eefTextConditionalStyleEClass, EefPackage.EEF_TEXT_CONDITIONAL_STYLE__STYLE);
+
+ eefButtonConditionalStyleEClass = createEClass(EefPackage.EEF_BUTTON_CONDITIONAL_STYLE);
+ createEReference(eefButtonConditionalStyleEClass, EefPackage.EEF_BUTTON_CONDITIONAL_STYLE__STYLE);
+
+ eefLabelConditionalStyleEClass = createEClass(EefPackage.EEF_LABEL_CONDITIONAL_STYLE);
+ createEReference(eefLabelConditionalStyleEClass, EefPackage.EEF_LABEL_CONDITIONAL_STYLE__STYLE);
+
+ eefCheckboxConditionalStyleEClass = createEClass(EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE);
+ createEReference(eefCheckboxConditionalStyleEClass, EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE__STYLE);
+
+ eefSelectConditionalStyleEClass = createEClass(EefPackage.EEF_SELECT_CONDITIONAL_STYLE);
+ createEReference(eefSelectConditionalStyleEClass, EefPackage.EEF_SELECT_CONDITIONAL_STYLE__STYLE);
+
+ eefRadioConditionalStyleEClass = createEClass(EefPackage.EEF_RADIO_CONDITIONAL_STYLE);
+ createEReference(eefRadioConditionalStyleEClass, EefPackage.EEF_RADIO_CONDITIONAL_STYLE__STYLE);
+
+ eefCustomWidgetConditionalStyleEClass = createEClass(EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE);
+ createEReference(eefCustomWidgetConditionalStyleEClass, EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE__STYLE);
+
// Create enums
eeF_VALIDATION_SEVERITY_DESCRIPTIONEEnum = createEEnum(EefPackage.EEF_VALIDATION_SEVERITY_DESCRIPTION);
}
@@ -1640,6 +1996,14 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
eefCheckboxStyleEClass.getESuperTypes().add(this.getEEFWidgetStyle());
eefSelectStyleEClass.getESuperTypes().add(this.getEEFWidgetStyle());
eefRadioStyleEClass.getESuperTypes().add(this.getEEFWidgetStyle());
+ eefCustomWidgetStyleEClass.getESuperTypes().add(this.getEEFWidgetStyle());
+ eefTextConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefButtonConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefLabelConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefCheckboxConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefSelectConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefRadioConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
+ eefCustomWidgetConditionalStyleEClass.getESuperTypes().add(this.getEEFConditionalStyle());
// Initialize classes and features; add operations and parameters
initEClass(eefViewDescriptionEClass, EEFViewDescription.class,
@@ -1857,6 +2221,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFTextStyle(),
null,
"style", null, 0, 1, EEFTextDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFTextDescription_ConditionalStyles(),
+ this.getEEFTextConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFTextDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefLabelDescriptionEClass, EEFLabelDescription.class,
"EEFLabelDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1869,6 +2238,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFLabelStyle(),
null,
"style", null, 0, 1, EEFLabelDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFLabelDescription_ConditionalStyles(),
+ this.getEEFLabelConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFLabelDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefButtonDescriptionEClass, EEFButtonDescription.class,
"EEFButtonDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1885,6 +2259,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFButtonStyle(),
null,
"style", null, 0, 1, EEFButtonDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFButtonDescription_ConditionalStyles(),
+ this.getEEFButtonConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFButtonDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefCheckboxDescriptionEClass, EEFCheckboxDescription.class,
"EEFCheckboxDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1901,6 +2280,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFCheckboxStyle(),
null,
"style", null, 0, 1, EEFCheckboxDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFCheckboxDescription_ConditionalStyles(),
+ this.getEEFCheckboxConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFCheckboxDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefSelectDescriptionEClass, EEFSelectDescription.class,
"EEFSelectDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1925,6 +2309,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFSelectStyle(),
null,
"style", null, 0, 1, EEFSelectDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFSelectDescription_ConditionalStyles(),
+ this.getEEFSelectConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFSelectDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefRadioDescriptionEClass, EEFRadioDescription.class,
"EEFRadioDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1953,6 +2342,11 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
getEEFRadioDescription_NumberOfColumns(),
theEcorePackage.getEInt(),
"numberOfColumns", "-1", 0, 1, EEFRadioDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$ //$NON-NLS-2$
+ initEReference(
+ getEEFRadioDescription_ConditionalStyles(),
+ this.getEEFRadioConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFRadioDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefDynamicMappingForEClass, EEFDynamicMappingFor.class,
"EEFDynamicMappingFor", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -1989,6 +2383,16 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
this.getEEFCustomExpression(),
null,
"customExpressions", null, 0, -1, EEFCustomWidgetDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFCustomWidgetDescription_Style(),
+ this.getEEFCustomWidgetStyle(),
+ null,
+ "style", null, 0, 1, EEFCustomWidgetDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+ initEReference(
+ getEEFCustomWidgetDescription_ConditionalStyles(),
+ this.getEEFCustomWidgetConditionalStyle(),
+ null,
+ "conditionalStyles", null, 0, -1, EEFCustomWidgetDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
initEClass(eefCustomExpressionEClass, EEFCustomExpression.class,
"EEFCustomExpression", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
@@ -2082,6 +2486,72 @@ public class EefPackageImpl extends EPackageImpl implements EefPackage {
initEClass(eefRadioStyleEClass, EEFRadioStyle.class,
"EEFRadioStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEClass(eefCustomWidgetStyleEClass, EEFCustomWidgetStyle.class,
+ "EEFCustomWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+
+ initEClass(eefConditionalStyleEClass, EEFConditionalStyle.class,
+ "EEFConditionalStyle", EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(
+ getEEFConditionalStyle_PreconditionExpression(),
+ ecorePackage.getEString(),
+ "preconditionExpression", null, 0, 1, EEFConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefTextConditionalStyleEClass, EEFTextConditionalStyle.class,
+ "EEFTextConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFTextConditionalStyle_Style(),
+ this.getEEFTextStyle(),
+ null,
+ "style", null, 0, 1, EEFTextConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefButtonConditionalStyleEClass, EEFButtonConditionalStyle.class,
+ "EEFButtonConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFButtonConditionalStyle_Style(),
+ this.getEEFButtonStyle(),
+ null,
+ "style", null, 0, 1, EEFButtonConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefLabelConditionalStyleEClass, EEFLabelConditionalStyle.class,
+ "EEFLabelConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFLabelConditionalStyle_Style(),
+ this.getEEFLabelStyle(),
+ null,
+ "style", null, 0, 1, EEFLabelConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefCheckboxConditionalStyleEClass, EEFCheckboxConditionalStyle.class,
+ "EEFCheckboxConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFCheckboxConditionalStyle_Style(),
+ this.getEEFCheckboxStyle(),
+ null,
+ "style", null, 0, 1, EEFCheckboxConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefSelectConditionalStyleEClass, EEFSelectConditionalStyle.class,
+ "EEFSelectConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFSelectConditionalStyle_Style(),
+ this.getEEFSelectStyle(),
+ null,
+ "style", null, 0, 1, EEFSelectConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefRadioConditionalStyleEClass, EEFRadioConditionalStyle.class,
+ "EEFRadioConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFRadioConditionalStyle_Style(),
+ this.getEEFRadioStyle(),
+ null,
+ "style", null, 0, 1, EEFRadioConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(eefCustomWidgetConditionalStyleEClass, EEFCustomWidgetConditionalStyle.class,
+ "EEFCustomWidgetConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(
+ getEEFCustomWidgetConditionalStyle_Style(),
+ this.getEEFCustomWidgetStyle(),
+ null,
+ "style", null, 0, 1, EEFCustomWidgetConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); //$NON-NLS-1$
+
// Initialize enums and add enum literals
initEEnum(eeF_VALIDATION_SEVERITY_DESCRIPTIONEEnum, org.eclipse.eef.EEF_VALIDATION_SEVERITY_DESCRIPTION.class,
"EEF_VALIDATION_SEVERITY_DESCRIPTION"); //$NON-NLS-1$
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefAdapterFactory.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefAdapterFactory.java
index 2b05a68fe..bdd97daf1 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefAdapterFactory.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefAdapterFactory.java
@@ -8,26 +8,35 @@
*/
package org.eclipse.eef.util;
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
import org.eclipse.eef.EEFButtonStyle;
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
import org.eclipse.eef.EEFCheckboxStyle;
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFContainerDescription;
import org.eclipse.eef.EEFCustomExpression;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
+import org.eclipse.eef.EEFCustomWidgetStyle;
import org.eclipse.eef.EEFDynamicMappingFor;
import org.eclipse.eef.EEFDynamicMappingIf;
import org.eclipse.eef.EEFGroupDescription;
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EEFPageDescription;
import org.eclipse.eef.EEFPropertyValidationRuleDescription;
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFRadioStyle;
import org.eclipse.eef.EEFRuleAuditDescription;
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFSelectStyle;
import org.eclipse.eef.EEFSemanticValidationRuleDescription;
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFValidationFixDescription;
@@ -228,6 +237,51 @@ public class EefAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseEEFCustomWidgetStyle(EEFCustomWidgetStyle object) {
+ return createEEFCustomWidgetStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFConditionalStyle(EEFConditionalStyle object) {
+ return createEEFConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFTextConditionalStyle(EEFTextConditionalStyle object) {
+ return createEEFTextConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFButtonConditionalStyle(EEFButtonConditionalStyle object) {
+ return createEEFButtonConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFLabelConditionalStyle(EEFLabelConditionalStyle object) {
+ return createEEFLabelConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFCheckboxConditionalStyle(EEFCheckboxConditionalStyle object) {
+ return createEEFCheckboxConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFSelectConditionalStyle(EEFSelectConditionalStyle object) {
+ return createEEFSelectConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFRadioConditionalStyle(EEFRadioConditionalStyle object) {
+ return createEEFRadioConditionalStyleAdapter();
+ }
+
+ @Override
+ public Adapter caseEEFCustomWidgetConditionalStyle(EEFCustomWidgetConditionalStyle object) {
+ return createEEFCustomWidgetConditionalStyleAdapter();
+ }
+
+ @Override
public Adapter defaultCase(EObject object) {
return createEObjectAdapter();
}
@@ -619,6 +673,132 @@ public class EefAdapterFactory extends AdapterFactoryImpl {
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFCustomWidgetStyle
+ * <em>EEF Custom Widget Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFCustomWidgetStyle
+ * @generated
+ */
+ public Adapter createEEFCustomWidgetStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFConditionalStyle
+ * <em>EEF Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFTextConditionalStyle
+ * <em>EEF Text Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFTextConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFTextConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFButtonConditionalStyle
+ * <em>EEF Button Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFButtonConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFButtonConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFLabelConditionalStyle
+ * <em>EEF Label Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFLabelConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFLabelConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFCheckboxConditionalStyle
+ * <em>EEF Checkbox Conditional Style</em>}'. <!-- begin-user-doc --> 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.
+ * <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFCheckboxConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFCheckboxConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFSelectConditionalStyle
+ * <em>EEF Select Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFSelectConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFSelectConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFRadioConditionalStyle
+ * <em>EEF Radio Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFRadioConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFRadioConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.eef.EEFCustomWidgetConditionalStyle
+ * <em>EEF Custom Widget Conditional Style</em>}'. <!-- begin-user-doc --> 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. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.eef.EEFCustomWidgetConditionalStyle
+ * @generated
+ */
+ public Adapter createEEFCustomWidgetConditionalStyleAdapter() {
+ return null;
+ }
+
+ /**
* Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null.
* <!-- end-user-doc -->
*
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefSwitch.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefSwitch.java
index 15fea4a05..22f12d0b9 100644
--- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefSwitch.java
+++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/util/EefSwitch.java
@@ -8,26 +8,35 @@
*/
package org.eclipse.eef.util;
+import org.eclipse.eef.EEFButtonConditionalStyle;
import org.eclipse.eef.EEFButtonDescription;
import org.eclipse.eef.EEFButtonStyle;
+import org.eclipse.eef.EEFCheckboxConditionalStyle;
import org.eclipse.eef.EEFCheckboxDescription;
import org.eclipse.eef.EEFCheckboxStyle;
+import org.eclipse.eef.EEFConditionalStyle;
import org.eclipse.eef.EEFContainerDescription;
import org.eclipse.eef.EEFCustomExpression;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
+import org.eclipse.eef.EEFCustomWidgetStyle;
import org.eclipse.eef.EEFDynamicMappingFor;
import org.eclipse.eef.EEFDynamicMappingIf;
import org.eclipse.eef.EEFGroupDescription;
+import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
import org.eclipse.eef.EEFPageDescription;
import org.eclipse.eef.EEFPropertyValidationRuleDescription;
+import org.eclipse.eef.EEFRadioConditionalStyle;
import org.eclipse.eef.EEFRadioDescription;
import org.eclipse.eef.EEFRadioStyle;
import org.eclipse.eef.EEFRuleAuditDescription;
+import org.eclipse.eef.EEFSelectConditionalStyle;
import org.eclipse.eef.EEFSelectDescription;
import org.eclipse.eef.EEFSelectStyle;
import org.eclipse.eef.EEFSemanticValidationRuleDescription;
+import org.eclipse.eef.EEFTextConditionalStyle;
import org.eclipse.eef.EEFTextDescription;
import org.eclipse.eef.EEFTextStyle;
import org.eclipse.eef.EEFValidationFixDescription;
@@ -351,6 +360,102 @@ public class EefSwitch<T> extends Switch<T> {
}
return result;
}
+ case EefPackage.EEF_CUSTOM_WIDGET_STYLE: {
+ EEFCustomWidgetStyle eefCustomWidgetStyle = (EEFCustomWidgetStyle) theEObject;
+ T result = caseEEFCustomWidgetStyle(eefCustomWidgetStyle);
+ if (result == null) {
+ result = caseEEFWidgetStyle(eefCustomWidgetStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_CONDITIONAL_STYLE: {
+ EEFConditionalStyle eefConditionalStyle = (EEFConditionalStyle) theEObject;
+ T result = caseEEFConditionalStyle(eefConditionalStyle);
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_TEXT_CONDITIONAL_STYLE: {
+ EEFTextConditionalStyle eefTextConditionalStyle = (EEFTextConditionalStyle) theEObject;
+ T result = caseEEFTextConditionalStyle(eefTextConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefTextConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_BUTTON_CONDITIONAL_STYLE: {
+ EEFButtonConditionalStyle eefButtonConditionalStyle = (EEFButtonConditionalStyle) theEObject;
+ T result = caseEEFButtonConditionalStyle(eefButtonConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefButtonConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_LABEL_CONDITIONAL_STYLE: {
+ EEFLabelConditionalStyle eefLabelConditionalStyle = (EEFLabelConditionalStyle) theEObject;
+ T result = caseEEFLabelConditionalStyle(eefLabelConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefLabelConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_CHECKBOX_CONDITIONAL_STYLE: {
+ EEFCheckboxConditionalStyle eefCheckboxConditionalStyle = (EEFCheckboxConditionalStyle) theEObject;
+ T result = caseEEFCheckboxConditionalStyle(eefCheckboxConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefCheckboxConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_SELECT_CONDITIONAL_STYLE: {
+ EEFSelectConditionalStyle eefSelectConditionalStyle = (EEFSelectConditionalStyle) theEObject;
+ T result = caseEEFSelectConditionalStyle(eefSelectConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefSelectConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_RADIO_CONDITIONAL_STYLE: {
+ EEFRadioConditionalStyle eefRadioConditionalStyle = (EEFRadioConditionalStyle) theEObject;
+ T result = caseEEFRadioConditionalStyle(eefRadioConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefRadioConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case EefPackage.EEF_CUSTOM_WIDGET_CONDITIONAL_STYLE: {
+ EEFCustomWidgetConditionalStyle eefCustomWidgetConditionalStyle = (EEFCustomWidgetConditionalStyle) theEObject;
+ T result = caseEEFCustomWidgetConditionalStyle(eefCustomWidgetConditionalStyle);
+ if (result == null) {
+ result = caseEEFConditionalStyle(eefCustomWidgetConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
default:
return defaultCase(theEObject);
}
@@ -764,6 +869,141 @@ public class EefSwitch<T> extends Switch<T> {
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Custom Widget Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Custom Widget Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFCustomWidgetStyle(EEFCustomWidgetStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFConditionalStyle(EEFConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Text Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Text Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFTextConditionalStyle(EEFTextConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Button Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Button Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFButtonConditionalStyle(EEFButtonConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Label Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Label Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFLabelConditionalStyle(EEFLabelConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Checkbox Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Checkbox Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFCheckboxConditionalStyle(EEFCheckboxConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Select Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Select Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFSelectConditionalStyle(EEFSelectConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Radio Conditional Style</em>'. <!--
+ * begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!--
+ * end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Radio Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFRadioConditionalStyle(EEFRadioConditionalStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EEF Custom Widget Conditional Style</em>'.
+ * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EEF Custom Widget Conditional Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEEFCustomWidgetConditionalStyle(EEFCustomWidgetConditionalStyle object) {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate the switch, but this is the last case
* anyway. <!-- end-user-doc -->
diff --git a/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java b/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
index 717d70791..b5e6041e5 100644
--- a/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
+++ b/samples/org.eclipse.eef.sample.custom.widget.colorpicker/src/org/eclipse/eef/sample/custom/widget/colorpicker/ColorPickerLifecycleManager.java
@@ -10,6 +10,11 @@
*******************************************************************************/
package org.eclipse.eef.sample.custom.widget.colorpicker;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.eef.EEFConditionalStyle;
+import org.eclipse.eef.EEFCustomWidgetConditionalStyle;
import org.eclipse.eef.EEFCustomWidgetDescription;
import org.eclipse.eef.EEFWidgetDescription;
import org.eclipse.eef.EEFWidgetStyle;
@@ -122,12 +127,37 @@ public class ColorPickerLifecycleManager extends AbstractEEFWidgetLifecycleManag
*/
@Override
protected EEFWidgetStyle getWidgetStyle() {
+ return this.description.getStyle();
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetStyle(org.eclipse.eef.EEFConditionalStyle)
+ */
+ @Override
+ protected EEFWidgetStyle getWidgetStyle(EEFConditionalStyle conditionalStyle) {
+ if (conditionalStyle instanceof EEFCustomWidgetConditionalStyle) {
+ return ((EEFCustomWidgetConditionalStyle) conditionalStyle).getStyle();
+ }
return null;
}
/**
* {@inheritDoc}
*
+ * @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#getWidgetConditionalStyles()
+ */
+ @Override
+ protected List<EEFConditionalStyle> getWidgetConditionalStyles() {
+ List<EEFConditionalStyle> widgetConditionalStyles = new ArrayList<EEFConditionalStyle>();
+ widgetConditionalStyles.addAll(this.description.getConditionalStyles());
+ return widgetConditionalStyles;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
* @see org.eclipse.eef.ide.ui.api.widgets.AbstractEEFWidgetLifecycleManager#aboutToBeShown()
*/
@Override

Back to the top