diff options
Diffstat (limited to 'plugins/org.eclipse.eef/src-gen/org')
38 files changed, 4785 insertions, 12 deletions
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 --> |