diff options
| author | Stéphane Bégaudeau | 2016-09-01 14:58:03 +0000 |
|---|---|---|
| committer | Pierre-Charles David | 2016-09-14 15:41:32 +0000 |
| commit | d67a8cad446eb3e6dcb210ec387a34ce715abfcf (patch) | |
| tree | ad031ca0706d60ecea25ee577f056e2e71ff2216 | |
| parent | 75605cbc17cb132c6daa8b516f1787cb29f9a896 (diff) | |
| download | org.eclipse.sirius-d67a8cad446eb3e6dcb210ec387a34ce715abfcf.tar.gz org.eclipse.sirius-d67a8cad446eb3e6dcb210ec387a34ce715abfcf.tar.xz org.eclipse.sirius-d67a8cad446eb3e6dcb210ec387a34ce715abfcf.zip | |
[500665] Introduce a list widget
Bug: 500665
Change-Id: I8edf7eb358be618753c2bf2f64a62fa636e13cfc
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
36 files changed, 3040 insertions, 100 deletions
diff --git a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.html b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.html index db6c8b386d..088a13ba27 100644 --- a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.html +++ b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.html @@ -147,9 +147,16 @@ <code>displayExpression</code>, if blank the result of the value expression will be used after a call to the method <code>java.lang.Object#toString()</code>. </li> + <li><span class="label label-success">Added</span> A new widget named List with the same behavior as the multiple reference widget.</li> <li><span class="label label-info">Modified</span> The rules concerning the layout of compartments have been changed/completed. You can have a look at the <a href="specifier/diagrams/Diagrams.html#compartments_layout">dedicated chapter</a> in the specifier documentation for more details. </li> + <li><span class="label label-info">Modified</span> The properties + <code>fontSize</code> and + <code>labelFontSize</code> have been renamed into + <code>fontSizeExpression</code> and + <code>labelFontSizeExpression</code> since both of them were already treated as expression. + </li> <li><span class="label label-info">Modified</span> The property <code>Domain Class Expression</code> in <code>DynamicMappingFor</code> elements (in properties views definitions) has been renamed into @@ -159,12 +166,6 @@ <code>org.eclipse.sirius.diagram.ui.layoutDataManager</code> is deprecated. It is replaced by the new extension point <code>org.eclipse.sirius.diagram.ui.formatDataManager</code>. The deprecated extension point will be removed in the next 5.0 Sirius major release. Several classes associated with this deprecated extension point are also deprecated (see Developer-Visible Changes for details). </li> - <li><span class="label label-info">Modified</span> The properties - <code>fontSize</code> and - <code>labelFontSize</code> have been renamed into - <code>fontSizeExpression</code> and - <code>labelFontSizeExpression</code> since both of them were already treated as expression. - </li> </ul> <h3 id="DeveloperVisibleChanges">Developer-Visible Changes</h3> <ul> diff --git a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile index 1f05ef01ea..7231050457 100644 --- a/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile +++ b/plugins/org.eclipse.sirius.doc/doc/Release_Notes.textile @@ -23,6 +23,7 @@ h3. Specifier-Visible Changes * <span class="label label-success">Added</span> In the definition of the Properties view, hyperlink and label widgets can now have widget actions * <span class="label label-success">Added</span> Hyperlink and label widgets now have a @displayExpression@, if blank the result of the value expression will be used after a call to the method @java.lang.Object#toString()@. +* <span class="label label-success">Added</span> A new widget named List with the same behavior as the multiple reference widget. * <span class="label label-info">Modified</span> The rules concerning the layout of compartments have been changed/completed. You can have a look at the "dedicated chapter":specifier/diagrams/Diagrams.html#compartments_layout in the specifier documentation for more details. * <span class="label label-info">Modified</span> The properties @fontSize@ and @labelFontSize@ have been renamed into @fontSizeExpression@ and @labelFontSizeExpression@ since both of them were already treated as expression. * <span class="label label-info">Modified</span> The property @Domain Class Expression@ in @DynamicMappingFor@ elements (in properties views definitions) has been renamed into @Iterable Expression@. diff --git a/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.html b/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.html index 854427f075..5c390e7bfd 100644 --- a/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.html +++ b/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.html @@ -785,7 +785,7 @@ <em>Multiple</em> flags is checked, </li> <li>buttons when - <a href="#actions"> + <a href="#reference_actions"> <em>Action Widgets</em> </a> are defined. </li> @@ -847,7 +847,7 @@ <em>Begin</em> can use the <code>selection</code> variable which represents the values selected by the user. It could be at least one element or a list of elements in case of multiple flags is checked. </p> - <h5 id="actions">Actions</h5> + <h5 id="reference_actions">Actions</h5> <p>A reference can contain <em>actions</em> which represent <strong>buttons</strong> associated to the reference field, as shown in the illustration above. @@ -856,7 +856,7 @@ <em>Label Expression</em> which is used to compute the label displayed on the button and should return a string. If the expression is not specified, the default value is equal to <code>...</code>. </p> - <h5 id="action_pushed_button">Action pushed button</h5> + <h5 id="reference_action_pushed_button">Action pushed button</h5> <p>To define the behavior of the button when is pushed, you simply specify the behavior associated to the edition inside the <em>Begin</em> element using all the standard <a href="/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html">model operations</a>. @@ -871,6 +871,71 @@ <a href="#conditional_styles">conditional styles</a> and <a href="#widgets_styles">widgets styles</a> section to find details on what is specific to widgets. </p> + <h4 id="list">List</h4> + <p>A + <em>List Description</em> is used to represent a + <strong>table with buttons</strong> in a + <a href="#groups">group</a> or in a + <a href="#containers">container</a>. + </p> + <p>Depending on the parameters configuration the list widget will be represented thanks to a table and multiple buttons when + <a href="#list_actions"> + <em>Action Widgets</em> + </a> are defined. + </p> + <p>The definition of a list follows the general rules described + <a href="#widgets">above</a> to determine the semantic elements for which a list should be created. It is evaluated in the context of the semantic target element. + </p> + <p>For lists, you must define:</p> + <ul> + <li>the + <em>Value Expression</em> which is used to compute the element to display and should return an object. + </li> + <li>the + <em>Display Expression</em> which is used to compute the text displayed in the text field and should return a string. It is evaluated in the context of the semantic target element and has access to the variable + <code>value</code> which corresponds to the element to display. + </li> + <li>the " + <em>actions</em>"#actions are used to associate some buttons to the text field. + </li> + </ul> + <h5 id="list_click_on_value">Click on value</h5> + <p>If the + <em>On Click Expression</em> is set then this expression defines the behavior executed when the user clicks or double-clicks on an element in the table. A variable named + <code>onClickEventKind</code> will be available to determine if the expression has been triggered by a single click or double click. In case of a single click, the variable will have the value “SINGLE_CLICK” and “DOUBLE_CLICK” in case of a double click. + </p> + <p>To define the behavior, you simply specify the behavior associated to the edition inside the + <em>Begin</em> element using all the standard + <a href="/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html">model operations</a>. + </p> + <p>The expressions defined under the + <em>Begin</em> can use the + <code>selection</code> variable which represents the values selected by the user. This variable will contain the list of the values selected. + </p> + <h5 id="list_actions">Actions</h5> + <p>A list can contain + <em>actions</em> which represent + <strong>buttons</strong> associated to the list field. + </p> + <p>For actions, you must define the + <em>Label Expression</em> which is used to compute the label displayed on the button and should return a string. If the expression is not specified, the default value is equal to + <code>...</code>. + </p> + <h5 id="list_action_pushed_button">Action pushed button</h5> + <p>To define the behavior of the button when is pushed, you simply specify the behavior associated to the edition inside the + <em>Begin</em> element using all the standard + <a href="/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html">model operations</a>. + </p> + <p>The expressions defined under the + <em>Begin</em> can use the + <code>selection</code> variable which represents the values selected by the user in the list field. + </p> + <h5 id="list_styles">List styles</h5> + <p>See the + <a href="#styling">styles</a> section for a general presentation of how styles are defined, including + <a href="#conditional_styles">conditional styles</a> and + <a href="#widgets_styles">widgets styles</a> section to find details on what is specific to widgets. + </p> <h4 id="custom">Custom</h4> <p>A <em>Custom Description</em> is used when none of the predefined styles correspond to your need. Custom style are implemented in Java and use the diff --git a/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.textile b/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.textile index e42880454e..d8a880e4fc 100644 --- a/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.textile +++ b/plugins/org.eclipse.sirius.doc/doc/specifier/properties/Properties_View_Description.textile @@ -322,7 +322,7 @@ Depending on the parameters configuration the reference widget can be represente * a label, * an hyperlink when the "_On Click Expression_"#reference_click_on_value is set, * a table when the _Multiple_ flags is checked, -* buttons when "_Action Widgets_":#actions are defined. +* buttons when "_Action Widgets_":#reference_actions are defined. !images/widget-references.png(Examples of reference widgets)! @@ -348,13 +348,13 @@ To define the behavior, you simply specify the behavior associated to the editio The expressions defined under the _Begin_ can use the @selection@ variable which represents the values selected by the user. It could be at least one element or a list of elements in case of multiple flags is checked. -h5(#actions). Actions +h5(#reference_actions). Actions A reference can contain _actions_ which represent *buttons* associated to the reference field, as shown in the illustration above. For actions, you must define the _Label Expression_ which is used to compute the label displayed on the button and should return a string. If the expression is not specified, the default value is equal to @...@. -h5(#action_pushed_button). Action pushed button +h5(#reference_action_pushed_button). Action pushed button To define the behavior of the button when is pushed, you simply specify the behavior associated to the edition inside the _Begin_ element using all the standard "model operations":/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html. @@ -364,6 +364,43 @@ h5(#reference_styles). Reference styles See the "styles":#styling section for a general presentation of how styles are defined, including "conditional styles":#conditional_styles and "widgets styles":#widgets_styles section to find details on what is specific to widgets. +h4(#list). List + +A _List Description_ is used to represent a *table with buttons* in a "group":#groups or in a "container":#containers. + +Depending on the parameters configuration the list widget will be represented thanks to a table and multiple buttons when "_Action Widgets_":#list_actions are defined. + +The definition of a list follows the general rules described "above":#widgets to determine the semantic elements for which a list should be created. It is evaluated in the context of the semantic target element. + +For lists, you must define: +* the _Value Expression_ which is used to compute the element to display and should return an object. +* the _Display Expression_ which is used to compute the text displayed in the text field and should return a string. It is evaluated in the context of the semantic target element and has access to the variable @value@ which corresponds to the element to display. +* the "_actions_"#actions are used to associate some buttons to the text field. + +h5(#list_click_on_value). Click on value + +If the _On Click Expression_ is set then this expression defines the behavior executed when the user clicks or double-clicks on an element in the table. A variable named @onClickEventKind@ will be available to determine if the expression has been triggered by a single click or double click. In case of a single click, the variable will have the value "SINGLE_CLICK" and "DOUBLE_CLICK" in case of a double click. + +To define the behavior, you simply specify the behavior associated to the edition inside the _Begin_ element using all the standard "model operations":/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html. + +The expressions defined under the _Begin_ can use the @selection@ variable which represents the values selected by the user. This variable will contain the list of the values selected. + +h5(#list_actions). Actions + +A list can contain _actions_ which represent *buttons* associated to the list field. + +For actions, you must define the _Label Expression_ which is used to compute the label displayed on the button and should return a string. If the expression is not specified, the default value is equal to @...@. + +h5(#list_action_pushed_button). Action pushed button + +To define the behavior of the button when is pushed, you simply specify the behavior associated to the edition inside the _Begin_ element using all the standard "model operations":/help/topic/org.eclipse.sirius.doc/doc/specifier/general/Model_Operations.html. + +The expressions defined under the _Begin_ can use the @selection@ variable which represents the values selected by the user in the list field. + +h5(#list_styles). List styles + +See the "styles":#styling section for a general presentation of how styles are defined, including "conditional styles":#conditional_styles and "widgets styles":#widgets_styles section to find details on what is specific to widgets. + h4(#custom). Custom A _Custom Description_ is used when none of the predefined styles correspond to your need. Custom style are implemented in Java and use the @org.eclipse.eef.ide.ui.eefLifecycleManagerProvider@ extension point. diff --git a/plugins/org.eclipse.sirius.editor.properties/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.editor.properties/META-INF/MANIFEST.MF index 4324623202..22e9f45ff6 100644 --- a/plugins/org.eclipse.sirius.editor.properties/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.sirius.editor.properties/META-INF/MANIFEST.MF @@ -18,60 +18,62 @@ Require-Bundle: com.google.guava;bundle-version="[11.0.2,16.0)", org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.300", org.eclipse.ui.workbench.texteditor;bundle-version="3.8.0", org.eclipse.sirius.ext.swt;bundle-version="4.0.0" -Export-Package: org.eclipse.sirius.editor.properties.tools.internal.menu;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.buttondescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.checkboxdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.controldescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.customexpression;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.customoperation;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.dynamicmappingfor;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.dynamicmappingif;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.filllayoutdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.gridlayoutdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.groupdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.groupstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.labeldescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.labelwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.pagedescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.propertyvalidationrule;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.radiodescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.referencedescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.selectdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.textareadescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.textdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.textwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.viewextensiondescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.widgetaction;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.widgetconditionalstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.widgetdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.filters.properties.widgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.buttondescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.checkboxdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.controldescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.customexpression;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.customoperation;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.dynamicmappingfor;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.dynamicmappingif;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.filllayoutdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.gridlayoutdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.groupdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.groupstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.labeldescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.labelwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.pagedescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.propertyvalidationrule;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.radiodescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.referencedescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.selectdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.textareadescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.textdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.textwidgetstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.viewextensiondescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.widgetaction;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.widgetconditionalstyle;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.widgetdescription;x-internal:=true;version="4.1.0", - org.eclipse.sirius.properties.editor.properties.sections.properties.widgetstyle;x-internal:=true;version="4.1.0" +Export-Package: org.eclipse.sirius.editor.properties.tools.internal.menu;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.buttondescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.checkboxdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.controldescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.customexpression;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.customoperation;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.dynamicmappingfor;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.dynamicmappingif;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.filllayoutdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.gridlayoutdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.groupdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.groupstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.labeldescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.labelwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.listdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.pagedescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.propertyvalidationrule;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.radiodescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.referencedescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.selectdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.textareadescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.textdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.textwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.viewextensiondescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.widgetaction;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.widgetconditionalstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.widgetdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.filters.properties.widgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.buttondescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.checkboxdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.controldescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.customexpression;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.customoperation;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.dynamicmappingfor;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.dynamicmappingif;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.filllayoutdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.gridlayoutdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.groupdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.groupstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.labeldescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.labelwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.listdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.pagedescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.propertyvalidationrule;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.radiodescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.referencedescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.selectdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.textareadescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.textdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.textwidgetstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.viewextensiondescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.widgetaction;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.widgetconditionalstyle;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.widgetdescription;version="4.1.0";x-internal:=true, + org.eclipse.sirius.properties.editor.properties.sections.properties.widgetstyle;version="4.1.0";x-internal:=true diff --git a/plugins/org.eclipse.sirius.editor.properties/help/contexts.xml b/plugins/org.eclipse.sirius.editor.properties/help/contexts.xml index 360adb3863..2e8bd21fd0 100644 --- a/plugins/org.eclipse.sirius.editor.properties/help/contexts.xml +++ b/plugins/org.eclipse.sirius.editor.properties/help/contexts.xml @@ -249,6 +249,18 @@ </description> </context> + <context id="ListDescription"> + <description> + Represents a list in the user interface. + + + + <!-- Start of user code ListDescription description --> + + <!-- End of user code ListDescription description --> + + </description> + </context> <context id="OperationDescription"> <description> @@ -403,6 +415,17 @@ </description> </context> + <context id="ListWidgetStyle"> + <description> + + + + <!-- Start of user code ListWidgetStyle description --> + + <!-- End of user code ListWidgetStyle description --> + + </description> + </context> <context id="HyperlinkWidgetStyle"> <description> @@ -524,6 +547,17 @@ </description> </context> + <context id="ListWidgetConditionalStyle"> + <description> + + + + <!-- Start of user code ListWidgetConditionalStyle description --> + + <!-- End of user code ListWidgetConditionalStyle description --> + + </description> + </context> <context id="WidgetAction"> <description> diff --git a/plugins/org.eclipse.sirius.editor.properties/plugin.xml b/plugins/org.eclipse.sirius.editor.properties/plugin.xml index 7b1a9d8bac..61e97bfc30 100644 --- a/plugins/org.eclipse.sirius.editor.properties/plugin.xml +++ b/plugins/org.eclipse.sirius.editor.properties/plugin.xml @@ -271,6 +271,21 @@ <input type="org.eclipse.sirius.properties.CustomExpression"/> </propertySection> <propertySection + class="org.eclipse.sirius.properties.editor.properties.sections.properties.listdescription.ListDescriptionDisplayExpressionPropertySection" + id="properties.section.listDescription.DisplayExpression" + filter="org.eclipse.sirius.properties.editor.properties.filters.properties.listdescription.ListDescriptionDisplayExpressionFilter" + afterSection="properties.section.listDescription.ValueExpression" + tab="viewpoint.tab.general"> + <input type="org.eclipse.sirius.properties.ListDescription"/> + </propertySection> + <propertySection + class="org.eclipse.sirius.properties.editor.properties.sections.properties.listdescription.ListDescriptionValueExpressionPropertySection" + id="properties.section.listDescription.ValueExpression" + filter="org.eclipse.sirius.properties.editor.properties.filters.properties.listdescription.ListDescriptionValueExpressionFilter" + tab="viewpoint.tab.general"> + <input type="org.eclipse.sirius.properties.ListDescription"/> + </propertySection> + <propertySection class="org.eclipse.sirius.properties.editor.properties.sections.properties.referencedescription.ReferenceDescriptionDisplayExpressionPropertySection" id="properties.section.referenceDescription.DisplayExpression" filter="org.eclipse.sirius.properties.editor.properties.filters.properties.referencedescription.ReferenceDescriptionDisplayExpressionFilter" diff --git a/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionDisplayExpressionFilter.java b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionDisplayExpressionFilter.java new file mode 100644 index 0000000000..7b73562b92 --- /dev/null +++ b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionDisplayExpressionFilter.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2016 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.html + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.properties.editor.properties.filters.properties.listdescription; + +// Start of user code specific imports + +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.sirius.editor.properties.filters.common.ViewpointPropertyFilter; +import org.eclipse.sirius.properties.PropertiesPackage; + +// End of user code specific imports + +/** + * A filter for the displayExpression property section. + */ +public class ListDescriptionDisplayExpressionFilter extends ViewpointPropertyFilter { + + /** + * {@inheritDoc} + */ + @Override + protected EStructuralFeature getFeature() { + return PropertiesPackage.eINSTANCE.getListDescription_DisplayExpression(); + } + + /** + * {@inheritDoc} + */ + @Override + protected boolean isRightInputType(Object arg0) { + return arg0 instanceof org.eclipse.sirius.properties.ListDescription; + } + + // Start of user code user methods + + // End of user code user methods + +} diff --git a/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionValueExpressionFilter.java b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionValueExpressionFilter.java new file mode 100644 index 0000000000..f30ab044a9 --- /dev/null +++ b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/listdescription/ListDescriptionValueExpressionFilter.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2016 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.html + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.properties.editor.properties.filters.properties.listdescription; + +// Start of user code specific imports + +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.sirius.editor.properties.filters.common.ViewpointPropertyFilter; +import org.eclipse.sirius.properties.PropertiesPackage; + +// End of user code specific imports + +/** + * A filter for the valueExpression property section. + */ +public class ListDescriptionValueExpressionFilter extends ViewpointPropertyFilter { + + /** + * {@inheritDoc} + */ + @Override + protected EStructuralFeature getFeature() { + return PropertiesPackage.eINSTANCE.getListDescription_ValueExpression(); + } + + /** + * {@inheritDoc} + */ + @Override + protected boolean isRightInputType(Object arg0) { + return arg0 instanceof org.eclipse.sirius.properties.ListDescription; + } + + // Start of user code user methods + + // End of user code user methods + +} diff --git a/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionDisplayExpressionPropertySection.java b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionDisplayExpressionPropertySection.java new file mode 100644 index 0000000000..ad51d14d85 --- /dev/null +++ b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionDisplayExpressionPropertySection.java @@ -0,0 +1,120 @@ +/******************************************************************************* + * Copyright (c) 2016 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.html + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.properties.editor.properties.sections.properties.listdescription; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.sirius.editor.editorPlugin.SiriusEditor; +import org.eclipse.sirius.editor.properties.sections.common.AbstractTextWithButtonPropertySection; +import org.eclipse.sirius.editor.tools.api.assist.TypeContentProposalProvider; +import org.eclipse.sirius.editor.tools.internal.presentation.TextWithContentProposalDialog; +import org.eclipse.sirius.properties.PropertiesPackage; +import org.eclipse.sirius.ui.tools.api.assist.ContentProposalClient; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; + +// End of user code imports + +/** + * A section for the displayExpression property of a ListDescription object. + */ +public class ListDescriptionDisplayExpressionPropertySection extends AbstractTextWithButtonPropertySection implements ContentProposalClient { + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getDefaultLabelText() + */ + @Override + protected String getDefaultLabelText() { + return "DisplayExpression"; //$NON-NLS-1$ + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getLabelText() + */ + @Override + protected String getLabelText() { + String labelText; + labelText = super.getLabelText() + ":"; //$NON-NLS-1$ + // Start of user code get label text + + // End of user code get label text + return labelText; + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getFeature() + */ + @Override + public EAttribute getFeature() { + return PropertiesPackage.eINSTANCE.getListDescription_DisplayExpression(); + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getFeatureValue(String) + */ + @Override + protected Object getFeatureValue(String newText) { + return newText; + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#isEqual(String) + */ + @Override + protected boolean isEqual(String newText) { + return getFeatureAsText().equals(newText); + } + + /** + * {@inheritDoc} + */ + @Override + public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { + super.createControls(parent, tabbedPropertySheetPage); + /* + * We set the color as it's a InterpretedExpression + */ + text.setBackground(SiriusEditor.getColorRegistry().get("yellow")); + + TypeContentProposalProvider.bindPluginsCompletionProcessors(this, text); + + // Start of user code create controls + + // End of user code create controls + + } + + @Override + protected SelectionListener createButtonListener() { + return new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + TextWithContentProposalDialog dialog = new TextWithContentProposalDialog(composite.getShell(), ListDescriptionDisplayExpressionPropertySection.this, text.getText()); + dialog.open(); + text.setText(dialog.getResult()); + handleTextModified(); + } + }; + } + + /** + * {@inheritDoc} + */ + @Override + protected String getPropertyDescription() { + return ""; + } + + // Start of user code user operations + + // End of user code user operations +} diff --git a/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionValueExpressionPropertySection.java b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionValueExpressionPropertySection.java new file mode 100644 index 0000000000..3d5955db43 --- /dev/null +++ b/plugins/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/listdescription/ListDescriptionValueExpressionPropertySection.java @@ -0,0 +1,120 @@ +/******************************************************************************* + * Copyright (c) 2016 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.html + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.properties.editor.properties.sections.properties.listdescription; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.sirius.editor.editorPlugin.SiriusEditor; +import org.eclipse.sirius.editor.properties.sections.common.AbstractTextWithButtonPropertySection; +import org.eclipse.sirius.editor.tools.api.assist.TypeContentProposalProvider; +import org.eclipse.sirius.editor.tools.internal.presentation.TextWithContentProposalDialog; +import org.eclipse.sirius.properties.PropertiesPackage; +import org.eclipse.sirius.ui.tools.api.assist.ContentProposalClient; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; + +// End of user code imports + +/** + * A section for the valueExpression property of a ListDescription object. + */ +public class ListDescriptionValueExpressionPropertySection extends AbstractTextWithButtonPropertySection implements ContentProposalClient { + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getDefaultLabelText() + */ + @Override + protected String getDefaultLabelText() { + return "ValueExpression"; //$NON-NLS-1$ + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getLabelText() + */ + @Override + protected String getLabelText() { + String labelText; + labelText = super.getLabelText() + ":"; //$NON-NLS-1$ + // Start of user code get label text + + // End of user code get label text + return labelText; + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getFeature() + */ + @Override + public EAttribute getFeature() { + return PropertiesPackage.eINSTANCE.getListDescription_ValueExpression(); + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getFeatureValue(String) + */ + @Override + protected Object getFeatureValue(String newText) { + return newText; + } + + /** + * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#isEqual(String) + */ + @Override + protected boolean isEqual(String newText) { + return getFeatureAsText().equals(newText); + } + + /** + * {@inheritDoc} + */ + @Override + public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { + super.createControls(parent, tabbedPropertySheetPage); + /* + * We set the color as it's a InterpretedExpression + */ + text.setBackground(SiriusEditor.getColorRegistry().get("yellow")); + + TypeContentProposalProvider.bindPluginsCompletionProcessors(this, text); + + // Start of user code create controls + + // End of user code create controls + + } + + @Override + protected SelectionListener createButtonListener() { + return new SelectionAdapter() { + @Override + public void widgetSelected(SelectionEvent e) { + TextWithContentProposalDialog dialog = new TextWithContentProposalDialog(composite.getShell(), ListDescriptionValueExpressionPropertySection.this, text.getText()); + dialog.open(); + text.setText(dialog.getResult()); + handleTextModified(); + } + }; + } + + /** + * {@inheritDoc} + */ + @Override + protected String getPropertyDescription() { + return ""; + } + + // Start of user code user operations + + // End of user code user operations +} diff --git a/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListDescription.gif b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListDescription.gif Binary files differnew file mode 100644 index 0000000000..ec0cba1aad --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListDescription.gif diff --git a/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetConditionalStyle.gif b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetConditionalStyle.gif Binary files differnew file mode 100644 index 0000000000..e7e23a6913 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetConditionalStyle.gif diff --git a/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetStyle.gif b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetStyle.gif Binary files differnew file mode 100644 index 0000000000..e9a6bd966a --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/icons/full/obj16/ListWidgetStyle.gif diff --git a/plugins/org.eclipse.sirius.properties.edit/plugin.properties b/plugins/org.eclipse.sirius.properties.edit/plugin.properties index c8ac6305ea..7fb338e744 100644 --- a/plugins/org.eclipse.sirius.properties.edit/plugin.properties +++ b/plugins/org.eclipse.sirius.properties.edit/plugin.properties @@ -210,3 +210,13 @@ _UI_GroupDescription_conditionalStyles_feature = Conditional Styles _UI_LabelDescription_valueExpression_feature = Value Expression _UI_LabelDescription_displayExpression_feature = Display Expression _UI_LabelDescription_actions_feature = Actions +_UI_ListDescription_type = List +_UI_ListWidgetStyle_type = List Widget Style +_UI_ListWidgetConditionalStyle_type = List Widget Conditional Style +_UI_ListDescription_valueExpression_feature = Value Expression +_UI_ListDescription_displayExpression_feature = Display Expression +_UI_ListDescription_onClickOperation_feature = On Click Operation +_UI_ListDescription_actions_feature = Actions +_UI_ListDescription_style_feature = Style +_UI_ListDescription_conditionalStyles_feature = Conditional Styles +_UI_ListWidgetConditionalStyle_style_feature = Style diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java index 67d7e58db5..145c8a2b04 100644 --- a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java @@ -169,6 +169,8 @@ public class ContainerDescriptionItemProvider extends ControlDescriptionItemProv newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createReferenceDescription())); + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createListDescription())); + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createCustomDescription())); newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createHyperlinkDescription())); diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java index 118b5edd1c..396e190b2f 100644 --- a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java @@ -188,6 +188,8 @@ public class DynamicMappingIfItemProvider extends ItemProviderAdapter newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.DYNAMIC_MAPPING_IF__WIDGET, PropertiesFactory.eINSTANCE.createReferenceDescription())); + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.DYNAMIC_MAPPING_IF__WIDGET, PropertiesFactory.eINSTANCE.createListDescription())); + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.DYNAMIC_MAPPING_IF__WIDGET, PropertiesFactory.eINSTANCE.createCustomDescription())); newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.DYNAMIC_MAPPING_IF__WIDGET, PropertiesFactory.eINSTANCE.createHyperlinkDescription())); diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListDescriptionItemProvider.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListDescriptionItemProvider.java new file mode 100644 index 0000000000..2af283f120 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListDescriptionItemProvider.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.PropertiesFactory; +import org.eclipse.sirius.properties.PropertiesPackage; +import org.eclipse.sirius.viewpoint.description.tool.ToolFactory; + +/** + * This is the item provider adapter for a + * {@link org.eclipse.sirius.properties.ListDescription} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class ListDescriptionItemProvider extends WidgetDescriptionItemProvider { + /** + * This constructs an instance from a factory and a notifier. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ListDescriptionItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addValueExpressionPropertyDescriptor(object); + addDisplayExpressionPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Value Expression feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addValueExpressionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ListDescription_valueExpression_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ListDescription_valueExpression_feature", "_UI_ListDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + PropertiesPackage.Literals.LIST_DESCRIPTION__VALUE_EXPRESSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Display Expression feature. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected void addDisplayExpressionPropertyDescriptor(Object object) { + itemPropertyDescriptors.add( + createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ListDescription_displayExpression_feature"), //$NON-NLS-1$ + getString("_UI_PropertyDescriptor_description", "_UI_ListDescription_displayExpression_feature", "_UI_ListDescription_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + PropertiesPackage.Literals.LIST_DESCRIPTION__DISPLAY_EXPRESSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This specifies how to implement {@link #getChildren} and is used to + * deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, + * {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in + * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(PropertiesPackage.Literals.LIST_DESCRIPTION__ON_CLICK_OPERATION); + childrenFeatures.add(PropertiesPackage.Literals.LIST_DESCRIPTION__ACTIONS); + childrenFeatures.add(PropertiesPackage.Literals.LIST_DESCRIPTION__STYLE); + childrenFeatures.add(PropertiesPackage.Literals.LIST_DESCRIPTION__CONDITIONAL_STYLES); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper + // feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ListDescription.gif. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListDescription")); //$NON-NLS-1$ + } + + /** + * This returns the label text for the adapted class. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ListDescription) object).getIdentifier(); + return label == null || label.length() == 0 ? getString("_UI_ListDescription_type") : //$NON-NLS-1$ + getString("_UI_ListDescription_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to + * update any cached children and by creating a viewer notification, which + * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ListDescription.class)) { + case PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION: + case PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing the children that can be created under this object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.LIST_DESCRIPTION__ON_CLICK_OPERATION, ToolFactory.eINSTANCE.createInitialOperation())); + + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.LIST_DESCRIPTION__ACTIONS, PropertiesFactory.eINSTANCE.createWidgetAction())); + + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.LIST_DESCRIPTION__STYLE, PropertiesFactory.eINSTANCE.createListWidgetStyle())); + + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.LIST_DESCRIPTION__CONDITIONAL_STYLES, PropertiesFactory.eINSTANCE.createListWidgetConditionalStyle())); + } + +} diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetConditionalStyleItemProvider.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetConditionalStyleItemProvider.java new file mode 100644 index 0000000000..738118c863 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetConditionalStyleItemProvider.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.emf.edit.provider.ViewerNotification; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.PropertiesFactory; +import org.eclipse.sirius.properties.PropertiesPackage; + +/** + * This is the item provider adapter for a + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class ListWidgetConditionalStyleItemProvider extends WidgetConditionalStyleItemProvider { + /** + * This constructs an instance from a factory and a notifier. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ListWidgetConditionalStyleItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This specifies how to implement {@link #getChildren} and is used to + * deduce an appropriate feature for an + * {@link org.eclipse.emf.edit.command.AddCommand}, + * {@link org.eclipse.emf.edit.command.RemoveCommand} or + * {@link org.eclipse.emf.edit.command.MoveCommand} in + * {@link #createCommand}. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(PropertiesPackage.Literals.LIST_WIDGET_CONDITIONAL_STYLE__STYLE); + } + return childrenFeatures; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EStructuralFeature getChildFeature(Object object, Object child) { + // Check the type of the specified child object and return the proper + // feature to use for + // adding (see {@link AddCommand}) it as a child. + + return super.getChildFeature(object, child); + } + + /** + * This returns ListWidgetConditionalStyle.gif. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListWidgetConditionalStyle")); //$NON-NLS-1$ + } + + /** + * This returns the label text for the adapted class. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ListWidgetConditionalStyle) object).getPreconditionExpression(); + return label == null || label.length() == 0 ? getString("_UI_ListWidgetConditionalStyle_type") : //$NON-NLS-1$ + getString("_UI_ListWidgetConditionalStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to + * update any cached children and by creating a viewer notification, which + * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ListWidgetConditionalStyle.class)) { + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); + return; + } + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing the children that can be created under this object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.LIST_WIDGET_CONDITIONAL_STYLE__STYLE, PropertiesFactory.eINSTANCE.createListWidgetStyle())); + } + +} diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetStyleItemProvider.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetStyleItemProvider.java new file mode 100644 index 0000000000..8f5fbeb5ca --- /dev/null +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ListWidgetStyleItemProvider.java @@ -0,0 +1,105 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.provider; + +import java.util.Collection; +import java.util.List; + +import org.eclipse.emf.common.notify.AdapterFactory; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; +import org.eclipse.sirius.properties.ListWidgetStyle; + +/** + * This is the item provider adapter for a + * {@link org.eclipse.sirius.properties.ListWidgetStyle} object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ +public class ListWidgetStyleItemProvider extends WidgetStyleItemProvider { + /** + * This constructs an instance from a factory and a notifier. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public ListWidgetStyleItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns ListWidgetStyle.gif. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListWidgetStyle")); //$NON-NLS-1$ + } + + /** + * This returns the label text for the adapted class. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ListWidgetStyle) object).getLabelFontNameExpression(); + return label == null || label.length() == 0 ? getString("_UI_ListWidgetStyle_type") : //$NON-NLS-1$ + getString("_UI_ListWidgetStyle_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ + } + + /** + * This handles model notifications by calling {@link #updateChildren} to + * update any cached children and by creating a viewer notification, which + * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + super.notifyChanged(notification); + } + + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s + * describing the children that can be created under this object. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java index fc75d830a8..84a94035c4 100644 --- a/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java +++ b/plugins/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java @@ -584,6 +584,31 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto /** * This keeps track of the one adapter used for all + * {@link org.eclipse.sirius.properties.ListDescription} instances. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListDescriptionItemProvider listDescriptionItemProvider; + + /** + * This creates an adapter for a + * {@link org.eclipse.sirius.properties.ListDescription}. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Adapter createListDescriptionAdapter() { + if (listDescriptionItemProvider == null) { + listDescriptionItemProvider = new ListDescriptionItemProvider(this); + } + + return listDescriptionItemProvider; + } + + /** + * This keeps track of the one adapter used for all * {@link org.eclipse.sirius.properties.OperationDescription} instances. * <!-- begin-user-doc --> <!-- end-user-doc --> * @@ -934,6 +959,31 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto /** * This keeps track of the one adapter used for all + * {@link org.eclipse.sirius.properties.ListWidgetStyle} instances. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListWidgetStyleItemProvider listWidgetStyleItemProvider; + + /** + * This creates an adapter for a + * {@link org.eclipse.sirius.properties.ListWidgetStyle}. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Adapter createListWidgetStyleAdapter() { + if (listWidgetStyleItemProvider == null) { + listWidgetStyleItemProvider = new ListWidgetStyleItemProvider(this); + } + + return listWidgetStyleItemProvider; + } + + /** + * This keeps track of the one adapter used for all * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle} instances. * <!-- begin-user-doc --> <!-- end-user-doc --> * @@ -1184,6 +1234,31 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto /** * This keeps track of the one adapter used for all + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle} + * instances. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListWidgetConditionalStyleItemProvider listWidgetConditionalStyleItemProvider; + + /** + * This creates an adapter for a + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle}. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public Adapter createListWidgetConditionalStyleAdapter() { + if (listWidgetConditionalStyleItemProvider == null) { + listWidgetConditionalStyleItemProvider = new ListWidgetConditionalStyleItemProvider(this); + } + + return listWidgetConditionalStyleItemProvider; + } + + /** + * This keeps track of the one adapter used for all * {@link org.eclipse.sirius.properties.WidgetAction} instances. <!-- * begin-user-doc --> <!-- end-user-doc --> * @@ -1447,6 +1522,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto if (referenceDescriptionItemProvider != null) { referenceDescriptionItemProvider.dispose(); } + if (listDescriptionItemProvider != null) { + listDescriptionItemProvider.dispose(); + } if (operationDescriptionItemProvider != null) { operationDescriptionItemProvider.dispose(); } @@ -1489,6 +1567,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto if (referenceWidgetStyleItemProvider != null) { referenceWidgetStyleItemProvider.dispose(); } + if (listWidgetStyleItemProvider != null) { + listWidgetStyleItemProvider.dispose(); + } if (hyperlinkWidgetStyleItemProvider != null) { hyperlinkWidgetStyleItemProvider.dispose(); } @@ -1519,6 +1600,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto if (referenceWidgetConditionalStyleItemProvider != null) { referenceWidgetConditionalStyleItemProvider.dispose(); } + if (listWidgetConditionalStyleItemProvider != null) { + listWidgetConditionalStyleItemProvider.dispose(); + } if (widgetActionItemProvider != null) { widgetActionItemProvider.dispose(); } diff --git a/plugins/org.eclipse.sirius.properties/model/properties.ecore b/plugins/org.eclipse.sirius.properties/model/properties.ecore index 627f173565..cd3a0bd36d 100644 --- a/plugins/org.eclipse.sirius.properties/model/properties.ecore +++ b/plugins/org.eclipse.sirius.properties/model/properties.ecore @@ -245,6 +245,33 @@ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1" eType="#//ReferenceWidgetConditionalStyle" containment="true"/> </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ListDescription" eSuperTypes="#//WidgetDescription"> + <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> + <details key="documentation" value="Represents a list in the user interface."/> + </eAnnotations> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"> + <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> + <details key="documentation" value="The initial value."/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"> + <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> + <details key="documentation" value="Represents how to display the value."/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EReference" name="onClickOperation" eType="ecore:EClass ../../org.eclipse.sirius/model/viewpoint.ecore#//description/tool/InitialOperation" + containment="true"> + <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> + <details key="documentation" value="Defines the expected behavior when the user clicks on the hyperlink."/> + </eAnnotations> + </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1" + eType="#//WidgetAction" containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//ListWidgetStyle" + containment="true"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1" + eType="#//ListWidgetConditionalStyle" containment="true"/> + </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="OperationDescription"> <eStructuralFeatures xsi:type="ecore:EReference" name="initialOperation" lowerBound="1" eType="ecore:EClass ../../org.eclipse.sirius/model/viewpoint.ecore#//description/tool/InitialOperation" @@ -317,6 +344,7 @@ <eClassifiers xsi:type="ecore:EClass" name="SelectWidgetStyle" eSuperTypes="#//WidgetStyle"/> <eClassifiers xsi:type="ecore:EClass" name="CustomWidgetStyle" eSuperTypes="#//WidgetStyle"/> <eClassifiers xsi:type="ecore:EClass" name="ReferenceWidgetStyle" eSuperTypes="#//WidgetStyle"/> + <eClassifiers xsi:type="ecore:EClass" name="ListWidgetStyle" eSuperTypes="#//WidgetStyle"/> <eClassifiers xsi:type="ecore:EClass" name="HyperlinkWidgetStyle" eSuperTypes="#//WidgetStyle"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontNameExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontSizeExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/> @@ -379,6 +407,10 @@ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//ReferenceWidgetStyle" containment="true"/> </eClassifiers> + <eClassifiers xsi:type="ecore:EClass" name="ListWidgetConditionalStyle" eSuperTypes="#//WidgetConditionalStyle"> + <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//ListWidgetStyle" + containment="true"/> + </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="WidgetAction"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="labelExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/> <eStructuralFeatures xsi:type="ecore:EReference" name="initialOperation" lowerBound="1" diff --git a/plugins/org.eclipse.sirius.properties/model/properties.genmodel b/plugins/org.eclipse.sirius.properties/model/properties.genmodel index 2841581626..69008cfab8 100644 --- a/plugins/org.eclipse.sirius.properties/model/properties.genmodel +++ b/plugins/org.eclipse.sirius.properties/model/properties.genmodel @@ -146,6 +146,14 @@ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ReferenceDescription/style"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ReferenceDescription/conditionalStyles"/> </genClasses> + <genClasses ecoreClass="properties.ecore#//ListDescription"> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//ListDescription/valueExpression"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//ListDescription/displayExpression"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ListDescription/onClickOperation"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ListDescription/actions"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ListDescription/style"/> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ListDescription/conditionalStyles"/> + </genClasses> <genClasses ecoreClass="properties.ecore#//OperationDescription"> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//OperationDescription/initialOperation"/> </genClasses> @@ -198,6 +206,7 @@ <genClasses ecoreClass="properties.ecore#//SelectWidgetStyle"/> <genClasses ecoreClass="properties.ecore#//CustomWidgetStyle"/> <genClasses ecoreClass="properties.ecore#//ReferenceWidgetStyle"/> + <genClasses ecoreClass="properties.ecore#//ListWidgetStyle"/> <genClasses ecoreClass="properties.ecore#//HyperlinkWidgetStyle"> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkWidgetStyle/fontNameExpression"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkWidgetStyle/fontSizeExpression"/> @@ -240,6 +249,9 @@ <genClasses ecoreClass="properties.ecore#//ReferenceWidgetConditionalStyle"> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ReferenceWidgetConditionalStyle/style"/> </genClasses> + <genClasses ecoreClass="properties.ecore#//ListWidgetConditionalStyle"> + <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//ListWidgetConditionalStyle/style"/> + </genClasses> <genClasses ecoreClass="properties.ecore#//WidgetAction"> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//WidgetAction/labelExpression"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//WidgetAction/initialOperation"/> diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListDescription.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListDescription.java new file mode 100644 index 0000000000..348b08a272 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListDescription.java @@ -0,0 +1,197 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.sirius.viewpoint.description.tool.InitialOperation; + +/** + * <!-- begin-user-doc --> A representation of the model object ' + * <em><b>List Description</b></em>'. <!-- end-user-doc --> + * + * <!-- begin-model-doc --> Represents a list in the user interface. <!-- + * end-model-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getValueExpression + * <em>Value Expression</em>}</li> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getDisplayExpression + * <em>Display Expression</em>}</li> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getOnClickOperation + * <em>On Click Operation</em>}</li> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getActions + * <em>Actions</em>}</li> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getStyle + * <em>Style</em>}</li> + * <li>{@link org.eclipse.sirius.properties.ListDescription#getConditionalStyles + * <em>Conditional Styles</em>}</li> + * </ul> + * + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription() + * @model + * @generated + */ +public interface ListDescription extends WidgetDescription { + /** + * Returns the value of the '<em><b>Value Expression</b></em>' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> + * The initial value. <!-- end-model-doc --> + * + * @return the value of the '<em>Value Expression</em>' attribute. + * @see #setValueExpression(String) + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_ValueExpression() + * @model dataType= + * "org.eclipse.sirius.viewpoint.description.InterpretedExpression" + * @generated + */ + String getValueExpression(); + + /** + * Sets the value of the ' + * {@link org.eclipse.sirius.properties.ListDescription#getValueExpression + * <em>Value Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @param value + * the new value of the '<em>Value Expression</em>' attribute. + * @see #getValueExpression() + * @generated + */ + void setValueExpression(String value); + + /** + * Returns the value of the '<em><b>Display Expression</b></em>' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> <!-- begin-model-doc --> + * Represents how to display the value. <!-- end-model-doc --> + * + * @return the value of the '<em>Display Expression</em>' attribute. + * @see #setDisplayExpression(String) + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_DisplayExpression() + * @model dataType= + * "org.eclipse.sirius.viewpoint.description.InterpretedExpression" + * @generated + */ + String getDisplayExpression(); + + /** + * Sets the value of the ' + * {@link org.eclipse.sirius.properties.ListDescription#getDisplayExpression + * <em>Display Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @param value + * the new value of the '<em>Display Expression</em>' attribute. + * @see #getDisplayExpression() + * @generated + */ + void setDisplayExpression(String value); + + /** + * Returns the value of the '<em><b>On Click Operation</b></em>' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> <!-- + * begin-model-doc --> Defines the expected behavior when the user clicks on + * the hyperlink. <!-- end-model-doc --> + * + * @return the value of the '<em>On Click Operation</em>' containment + * reference. + * @see #setOnClickOperation(InitialOperation) + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_OnClickOperation() + * @model containment="true" + * @generated + */ + InitialOperation getOnClickOperation(); + + /** + * Sets the value of the ' + * {@link org.eclipse.sirius.properties.ListDescription#getOnClickOperation + * <em>On Click Operation</em>}' containment reference. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @param value + * the new value of the '<em>On Click Operation</em>' containment + * reference. + * @see #getOnClickOperation() + * @generated + */ + void setOnClickOperation(InitialOperation value); + + /** + * Returns the value of the '<em><b>Actions</b></em>' containment reference + * list. The list contents are of type + * {@link org.eclipse.sirius.properties.WidgetAction}. <!-- begin-user-doc + * --> + * <p> + * If the meaning of the '<em>Actions</em>' containment reference list isn't + * clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Actions</em>' containment reference list. + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_Actions() + * @model containment="true" + * @generated + */ + EList<WidgetAction> getActions(); + + /** + * 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(ListWidgetStyle) + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_Style() + * @model containment="true" + * @generated + */ + ListWidgetStyle getStyle(); + + /** + * Sets the value of the ' + * {@link org.eclipse.sirius.properties.ListDescription#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(ListWidgetStyle value); + + /** + * Returns the value of the '<em><b>Conditional Styles</b></em>' containment + * reference list. The list contents are of type + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle}. <!-- + * begin-user-doc --> + * <p> + * If the meaning of the '<em>Conditional Styles</em>' containment reference + * list isn't clear, there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @return the value of the '<em>Conditional Styles</em>' containment + * reference list. + * @see org.eclipse.sirius.properties.PropertiesPackage#getListDescription_ConditionalStyles() + * @model containment="true" + * @generated + */ + EList<ListWidgetConditionalStyle> getConditionalStyles(); + +} // ListDescription diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetConditionalStyle.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetConditionalStyle.java new file mode 100644 index 0000000000..2b1515bbe9 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetConditionalStyle.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties; + +/** + * <!-- begin-user-doc --> A representation of the model object ' + * <em><b>List Widget Conditional Style</b></em>'. <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.eclipse.sirius.properties.ListWidgetConditionalStyle#getStyle + * <em>Style</em>}</li> + * </ul> + * + * @see org.eclipse.sirius.properties.PropertiesPackage#getListWidgetConditionalStyle() + * @model + * @generated + */ +public interface ListWidgetConditionalStyle extends WidgetConditionalStyle { + /** + * 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(ListWidgetStyle) + * @see org.eclipse.sirius.properties.PropertiesPackage#getListWidgetConditionalStyle_Style() + * @model containment="true" + * @generated + */ + ListWidgetStyle getStyle(); + + /** + * Sets the value of the ' + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle#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(ListWidgetStyle value); + +} // ListWidgetConditionalStyle diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetStyle.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetStyle.java new file mode 100644 index 0000000000..ef1bea5d0e --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/ListWidgetStyle.java @@ -0,0 +1,24 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties; + +/** + * <!-- begin-user-doc --> A representation of the model object ' + * <em><b>List Widget Style</b></em>'. <!-- end-user-doc --> + * + * + * @see org.eclipse.sirius.properties.PropertiesPackage#getListWidgetStyle() + * @model + * @generated + */ +public interface ListWidgetStyle extends WidgetStyle { +} // ListWidgetStyle diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java index f0f3fab395..ad3e917ec7 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java @@ -202,6 +202,15 @@ public interface PropertiesFactory extends EFactory { ReferenceDescription createReferenceDescription(); /** + * Returns a new object of class '<em>List Description</em>'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>List Description</em>'. + * @generated + */ + ListDescription createListDescription(); + + /** * Returns a new object of class '<em>Operation Description</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * @@ -328,6 +337,15 @@ public interface PropertiesFactory extends EFactory { ReferenceWidgetStyle createReferenceWidgetStyle(); /** + * Returns a new object of class '<em>List Widget Style</em>'. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>List Widget Style</em>'. + * @generated + */ + ListWidgetStyle createListWidgetStyle(); + + /** * Returns a new object of class '<em>Hyperlink Widget Style</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * @@ -421,6 +439,15 @@ public interface PropertiesFactory extends EFactory { ReferenceWidgetConditionalStyle createReferenceWidgetConditionalStyle(); /** + * Returns a new object of class '<em>List Widget Conditional Style</em>'. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return a new object of class '<em>List Widget Conditional Style</em>'. + * @generated + */ + ListWidgetConditionalStyle createListWidgetConditionalStyle(); + + /** * Returns a new object of class '<em>Widget Action</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java index bc0793f878..4af4cfcac2 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java @@ -1623,6 +1623,117 @@ public interface PropertiesPackage extends EPackage { /** * The meta object id for the ' + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl + * <em>List Description</em>}' class. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListDescriptionImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListDescription() + * @generated + */ + int LIST_DESCRIPTION = 22; + + /** + * The feature id for the '<em><b>Identifier</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__IDENTIFIER = PropertiesPackage.WIDGET_DESCRIPTION__IDENTIFIER; + + /** + * The feature id for the '<em><b>Label Expression</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__LABEL_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION__LABEL_EXPRESSION; + + /** + * The feature id for the '<em><b>Help Expression</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__HELP_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION__HELP_EXPRESSION; + + /** + * The feature id for the '<em><b>Is Enabled Expression</b></em>' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__IS_ENABLED_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION__IS_ENABLED_EXPRESSION; + + /** + * The feature id for the '<em><b>Value Expression</b></em>' attribute. <!-- + * begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__VALUE_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Display Expression</b></em>' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__DISPLAY_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>On Click Operation</b></em>' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__ON_CLICK_OPERATION = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Actions</b></em>' containment reference + * list. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__ACTIONS = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Style</b></em>' containment reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION__STYLE = PropertiesPackage.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 LIST_DESCRIPTION__CONDITIONAL_STYLES = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>List Description</em>' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_DESCRIPTION_FEATURE_COUNT = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 6; + + /** + * The meta object id for the ' * {@link org.eclipse.sirius.properties.impl.OperationDescriptionImpl * <em>Operation Description</em>}' class. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -1631,7 +1742,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getOperationDescription() * @generated */ - int OPERATION_DESCRIPTION = 22; + int OPERATION_DESCRIPTION = 23; /** * The feature id for the '<em><b>Initial Operation</b></em>' containment @@ -1661,7 +1772,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomDescription() * @generated */ - int CUSTOM_DESCRIPTION = 23; + int CUSTOM_DESCRIPTION = 24; /** * The feature id for the '<em><b>Identifier</b></em>' attribute. <!-- @@ -1754,7 +1865,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomExpression() * @generated */ - int CUSTOM_EXPRESSION = 24; + int CUSTOM_EXPRESSION = 25; /** * The feature id for the '<em><b>Identifier</b></em>' attribute. <!-- @@ -1793,7 +1904,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomOperation() * @generated */ - int CUSTOM_OPERATION = 25; + int CUSTOM_OPERATION = 26; /** * The feature id for the '<em><b>Identifier</b></em>' attribute. <!-- @@ -1832,7 +1943,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkDescription() * @generated */ - int HYPERLINK_DESCRIPTION = 26; + int HYPERLINK_DESCRIPTION = 27; /** * The feature id for the '<em><b>Identifier</b></em>' attribute. <!-- @@ -1943,7 +2054,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetStyle() * @generated */ - int WIDGET_STYLE = 27; + int WIDGET_STYLE = 28; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2009,7 +2120,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getTextWidgetStyle() * @generated */ - int TEXT_WIDGET_STYLE = 28; + int TEXT_WIDGET_STYLE = 29; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2120,7 +2231,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getLabelWidgetStyle() * @generated */ - int LABEL_WIDGET_STYLE = 29; + int LABEL_WIDGET_STYLE = 30; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2231,7 +2342,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCheckboxWidgetStyle() * @generated */ - int CHECKBOX_WIDGET_STYLE = 30; + int CHECKBOX_WIDGET_STYLE = 31; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2297,7 +2408,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getRadioWidgetStyle() * @generated */ - int RADIO_WIDGET_STYLE = 31; + int RADIO_WIDGET_STYLE = 32; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2363,7 +2474,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getButtonWidgetStyle() * @generated */ - int BUTTON_WIDGET_STYLE = 32; + int BUTTON_WIDGET_STYLE = 33; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2429,7 +2540,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getSelectWidgetStyle() * @generated */ - int SELECT_WIDGET_STYLE = 33; + int SELECT_WIDGET_STYLE = 34; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2495,7 +2606,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomWidgetStyle() * @generated */ - int CUSTOM_WIDGET_STYLE = 34; + int CUSTOM_WIDGET_STYLE = 35; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2561,7 +2672,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetConditionalStyle() * @generated */ - int WIDGET_CONDITIONAL_STYLE = 38; + int WIDGET_CONDITIONAL_STYLE = 40; /** * The meta object id for the ' @@ -2573,7 +2684,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getTextWidgetConditionalStyle() * @generated */ - int TEXT_WIDGET_CONDITIONAL_STYLE = 39; + int TEXT_WIDGET_CONDITIONAL_STYLE = 41; /** * The meta object id for the ' @@ -2585,7 +2696,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getLabelWidgetConditionalStyle() * @generated */ - int LABEL_WIDGET_CONDITIONAL_STYLE = 40; + int LABEL_WIDGET_CONDITIONAL_STYLE = 42; /** * The meta object id for the ' @@ -2597,7 +2708,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCheckboxWidgetConditionalStyle() * @generated */ - int CHECKBOX_WIDGET_CONDITIONAL_STYLE = 41; + int CHECKBOX_WIDGET_CONDITIONAL_STYLE = 43; /** * The meta object id for the ' @@ -2609,7 +2720,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getRadioWidgetConditionalStyle() * @generated */ - int RADIO_WIDGET_CONDITIONAL_STYLE = 42; + int RADIO_WIDGET_CONDITIONAL_STYLE = 44; /** * The meta object id for the ' @@ -2621,7 +2732,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getButtonWidgetConditionalStyle() * @generated */ - int BUTTON_WIDGET_CONDITIONAL_STYLE = 43; + int BUTTON_WIDGET_CONDITIONAL_STYLE = 45; /** * The meta object id for the ' @@ -2633,7 +2744,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getSelectWidgetConditionalStyle() * @generated */ - int SELECT_WIDGET_CONDITIONAL_STYLE = 44; + int SELECT_WIDGET_CONDITIONAL_STYLE = 46; /** * The meta object id for the ' @@ -2645,7 +2756,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomWidgetConditionalStyle() * @generated */ - int CUSTOM_WIDGET_CONDITIONAL_STYLE = 45; + int CUSTOM_WIDGET_CONDITIONAL_STYLE = 47; /** * The meta object id for the ' @@ -2657,7 +2768,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getReferenceWidgetConditionalStyle() * @generated */ - int REFERENCE_WIDGET_CONDITIONAL_STYLE = 46; + int REFERENCE_WIDGET_CONDITIONAL_STYLE = 48; /** * The meta object id for the ' @@ -2669,7 +2780,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetAction() * @generated */ - int WIDGET_ACTION = 47; + int WIDGET_ACTION = 50; /** * The meta object id for the ' @@ -2681,7 +2792,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getReferenceWidgetStyle() * @generated */ - int REFERENCE_WIDGET_STYLE = 35; + int REFERENCE_WIDGET_STYLE = 36; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2739,6 +2850,72 @@ public interface PropertiesPackage extends EPackage { /** * The meta object id for the ' + * {@link org.eclipse.sirius.properties.impl.ListWidgetStyleImpl + * <em>List Widget Style</em>}' class. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListWidgetStyleImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListWidgetStyle() + * @generated + */ + int LIST_WIDGET_STYLE = 37; + + /** + * The feature id for the '<em><b>Label Font Name Expression</b></em>' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION = PropertiesPackage.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 LIST_WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION = PropertiesPackage.WIDGET_STYLE__LABEL_FONT_SIZE_EXPRESSION; + + /** + * The feature id for the '<em><b>Label Background Color</b></em>' + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_STYLE__LABEL_BACKGROUND_COLOR = PropertiesPackage.WIDGET_STYLE__LABEL_BACKGROUND_COLOR; + + /** + * The feature id for the '<em><b>Label Foreground Color</b></em>' + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_STYLE__LABEL_FOREGROUND_COLOR = PropertiesPackage.WIDGET_STYLE__LABEL_FOREGROUND_COLOR; + + /** + * The feature id for the '<em><b>Label Font Format</b></em>' attribute + * list. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_STYLE__LABEL_FONT_FORMAT = PropertiesPackage.WIDGET_STYLE__LABEL_FONT_FORMAT; + + /** + * The number of structural features of the '<em>List Widget Style</em>' + * class. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_STYLE_FEATURE_COUNT = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 0; + + /** + * The meta object id for the ' * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl * <em>Hyperlink Widget Style</em>}' class. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -2747,7 +2924,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetStyle() * @generated */ - int HYPERLINK_WIDGET_STYLE = 36; + int HYPERLINK_WIDGET_STYLE = 38; /** * The feature id for the '<em><b>Label Font Name Expression</b></em>' @@ -2849,7 +3026,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getGroupStyle() * @generated */ - int GROUP_STYLE = 37; + int GROUP_STYLE = 39; /** * The feature id for the '<em><b>Background Color</b></em>' reference. <!-- @@ -3167,6 +3344,46 @@ public interface PropertiesPackage extends EPackage { int REFERENCE_WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT = PropertiesPackage.WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT + 1; /** + * The meta object id for the ' + * {@link org.eclipse.sirius.properties.impl.ListWidgetConditionalStyleImpl + * <em>List Widget Conditional Style</em>}' class. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListWidgetConditionalStyleImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListWidgetConditionalStyle() + * @generated + */ + int LIST_WIDGET_CONDITIONAL_STYLE = 49; + + /** + * The feature id for the '<em><b>Precondition Expression</b></em>' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION = PropertiesPackage.WIDGET_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 LIST_WIDGET_CONDITIONAL_STYLE__STYLE = PropertiesPackage.WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the ' + * <em>List Widget Conditional Style</em>' class. <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + * @ordered + */ + int LIST_WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT = PropertiesPackage.WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT + 1; + + /** * The feature id for the '<em><b>Label Expression</b></em>' attribute. <!-- * begin-user-doc --> <!-- end-user-doc --> * @@ -3203,7 +3420,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetConditionalStyle() * @generated */ - int HYPERLINK_WIDGET_CONDITIONAL_STYLE = 48; + int HYPERLINK_WIDGET_CONDITIONAL_STYLE = 51; /** * The feature id for the '<em><b>Precondition Expression</b></em>' @@ -3243,7 +3460,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getGroupConditionalStyle() * @generated */ - int GROUP_CONDITIONAL_STYLE = 49; + int GROUP_CONDITIONAL_STYLE = 52; /** * The feature id for the '<em><b>Precondition Expression</b></em>' @@ -3283,7 +3500,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getFILL_LAYOUT_ORIENTATION() * @generated */ - int FILL_LAYOUT_ORIENTATION = 50; + int FILL_LAYOUT_ORIENTATION = 53; /** * The meta object id for the ' @@ -3294,7 +3511,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getToggleStyle() * @generated */ - int TOGGLE_STYLE = 51; + int TOGGLE_STYLE = 54; /** * The meta object id for the ' @@ -3306,7 +3523,7 @@ public interface PropertiesPackage extends EPackage { * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getTitleBarStyle() * @generated */ - int TITLE_BAR_STYLE = 52; + int TITLE_BAR_STYLE = 55; /** * Returns the meta object for class ' @@ -4569,6 +4786,97 @@ public interface PropertiesPackage extends EPackage { /** * Returns the meta object for class ' + * {@link org.eclipse.sirius.properties.ListDescription + * <em>List Description</em>}'. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @return the meta object for class '<em>List Description</em>'. + * @see org.eclipse.sirius.properties.ListDescription + * @generated + */ + EClass getListDescription(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.sirius.properties.ListDescription#getValueExpression + * <em>Value Expression</em>}'. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @return the meta object for the attribute '<em>Value Expression</em>'. + * @see org.eclipse.sirius.properties.ListDescription#getValueExpression() + * @see #getListDescription() + * @generated + */ + EAttribute getListDescription_ValueExpression(); + + /** + * Returns the meta object for the attribute ' + * {@link org.eclipse.sirius.properties.ListDescription#getDisplayExpression + * <em>Display Expression</em>}'. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @return the meta object for the attribute '<em>Display Expression</em>'. + * @see org.eclipse.sirius.properties.ListDescription#getDisplayExpression() + * @see #getListDescription() + * @generated + */ + EAttribute getListDescription_DisplayExpression(); + + /** + * Returns the meta object for the containment reference ' + * {@link org.eclipse.sirius.properties.ListDescription#getOnClickOperation + * <em>On Click Operation</em>}'. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @return the meta object for the containment reference ' + * <em>On Click Operation</em>'. + * @see org.eclipse.sirius.properties.ListDescription#getOnClickOperation() + * @see #getListDescription() + * @generated + */ + EReference getListDescription_OnClickOperation(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.sirius.properties.ListDescription#getActions + * <em>Actions</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the containment reference list ' + * <em>Actions</em>'. + * @see org.eclipse.sirius.properties.ListDescription#getActions() + * @see #getListDescription() + * @generated + */ + EReference getListDescription_Actions(); + + /** + * Returns the meta object for the containment reference ' + * {@link org.eclipse.sirius.properties.ListDescription#getStyle + * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Style</em>'. + * @see org.eclipse.sirius.properties.ListDescription#getStyle() + * @see #getListDescription() + * @generated + */ + EReference getListDescription_Style(); + + /** + * Returns the meta object for the containment reference list ' + * {@link org.eclipse.sirius.properties.ListDescription#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.sirius.properties.ListDescription#getConditionalStyles() + * @see #getListDescription() + * @generated + */ + EReference getListDescription_ConditionalStyles(); + + /** + * Returns the meta object for class ' * {@link org.eclipse.sirius.properties.OperationDescription * <em>Operation Description</em>}'. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -5350,6 +5658,31 @@ public interface PropertiesPackage extends EPackage { /** * Returns the meta object for class ' + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle + * <em>List Widget Conditional Style</em>}'. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @return the meta object for class '<em>List Widget Conditional Style</em> + * '. + * @see org.eclipse.sirius.properties.ListWidgetConditionalStyle + * @generated + */ + EClass getListWidgetConditionalStyle(); + + /** + * Returns the meta object for the containment reference ' + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle#getStyle + * <em>Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @return the meta object for the containment reference '<em>Style</em>'. + * @see org.eclipse.sirius.properties.ListWidgetConditionalStyle#getStyle() + * @see #getListWidgetConditionalStyle() + * @generated + */ + EReference getListWidgetConditionalStyle_Style(); + + /** + * Returns the meta object for class ' * {@link org.eclipse.sirius.properties.WidgetAction <em>Widget Action</em>} * '. <!-- begin-user-doc --> <!-- end-user-doc --> * @@ -5449,6 +5782,18 @@ public interface PropertiesPackage extends EPackage { /** * Returns the meta object for class ' + * {@link org.eclipse.sirius.properties.ListWidgetStyle + * <em>List Widget Style</em>}'. <!-- begin-user-doc --> <!-- end-user-doc + * --> + * + * @return the meta object for class '<em>List Widget Style</em>'. + * @see org.eclipse.sirius.properties.ListWidgetStyle + * @generated + */ + EClass getListWidgetStyle(); + + /** + * Returns the meta object for class ' * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle * <em>Hyperlink Widget Style</em>}'. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -6577,6 +6922,68 @@ public interface PropertiesPackage extends EPackage { /** * The meta object literal for the ' + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl + * <em>List Description</em>}' class. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListDescriptionImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListDescription() + * @generated + */ + EClass LIST_DESCRIPTION = PropertiesPackage.eINSTANCE.getListDescription(); + + /** + * The meta object literal for the '<em><b>Value Expression</b></em>' + * attribute feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EAttribute LIST_DESCRIPTION__VALUE_EXPRESSION = PropertiesPackage.eINSTANCE.getListDescription_ValueExpression(); + + /** + * The meta object literal for the '<em><b>Display Expression</b></em>' + * attribute feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EAttribute LIST_DESCRIPTION__DISPLAY_EXPRESSION = PropertiesPackage.eINSTANCE.getListDescription_DisplayExpression(); + + /** + * The meta object literal for the '<em><b>On Click Operation</b></em>' + * containment reference feature. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @generated + */ + EReference LIST_DESCRIPTION__ON_CLICK_OPERATION = PropertiesPackage.eINSTANCE.getListDescription_OnClickOperation(); + + /** + * The meta object literal for the '<em><b>Actions</b></em>' containment + * reference list feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference LIST_DESCRIPTION__ACTIONS = PropertiesPackage.eINSTANCE.getListDescription_Actions(); + + /** + * The meta object literal for the '<em><b>Style</b></em>' containment + * reference feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference LIST_DESCRIPTION__STYLE = PropertiesPackage.eINSTANCE.getListDescription_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 LIST_DESCRIPTION__CONDITIONAL_STYLES = PropertiesPackage.eINSTANCE.getListDescription_ConditionalStyles(); + + /** + * The meta object literal for the ' * {@link org.eclipse.sirius.properties.impl.OperationDescriptionImpl * <em>Operation Description</em>}' class. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -7165,6 +7572,26 @@ public interface PropertiesPackage extends EPackage { /** * The meta object literal for the ' + * {@link org.eclipse.sirius.properties.impl.ListWidgetConditionalStyleImpl + * <em>List Widget Conditional Style</em>}' class. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListWidgetConditionalStyleImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListWidgetConditionalStyle() + * @generated + */ + EClass LIST_WIDGET_CONDITIONAL_STYLE = PropertiesPackage.eINSTANCE.getListWidgetConditionalStyle(); + + /** + * The meta object literal for the '<em><b>Style</b></em>' containment + * reference feature. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + EReference LIST_WIDGET_CONDITIONAL_STYLE__STYLE = PropertiesPackage.eINSTANCE.getListWidgetConditionalStyle_Style(); + + /** + * The meta object literal for the ' * {@link org.eclipse.sirius.properties.impl.WidgetActionImpl * <em>Widget Action</em>}' class. <!-- begin-user-doc --> <!-- * end-user-doc --> @@ -7246,6 +7673,18 @@ public interface PropertiesPackage extends EPackage { /** * The meta object literal for the ' + * {@link org.eclipse.sirius.properties.impl.ListWidgetStyleImpl + * <em>List Widget Style</em>}' class. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see org.eclipse.sirius.properties.impl.ListWidgetStyleImpl + * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getListWidgetStyle() + * @generated + */ + EClass LIST_WIDGET_STYLE = PropertiesPackage.eINSTANCE.getListWidgetStyle(); + + /** + * The meta object literal for the ' * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl * <em>Hyperlink Widget Style</em>}' class. <!-- begin-user-doc --> <!-- * end-user-doc --> diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListDescriptionImpl.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListDescriptionImpl.java new file mode 100644 index 0000000000..8598e0b03e --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListDescriptionImpl.java @@ -0,0 +1,495 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.impl; + +import java.util.Collection; + +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; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; +import org.eclipse.sirius.properties.PropertiesPackage; +import org.eclipse.sirius.properties.WidgetAction; +import org.eclipse.sirius.viewpoint.description.tool.InitialOperation; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>List Description</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li> + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getValueExpression + * <em>Value Expression</em>}</li> + * <li> + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getDisplayExpression + * <em>Display Expression</em>}</li> + * <li> + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getOnClickOperation + * <em>On Click Operation</em>}</li> + * <li>{@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getActions + * <em>Actions</em>}</li> + * <li>{@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getStyle + * <em>Style</em>}</li> + * <li> + * {@link org.eclipse.sirius.properties.impl.ListDescriptionImpl#getConditionalStyles + * <em>Conditional Styles</em>}</li> + * </ul> + * + * @generated + */ +public class ListDescriptionImpl extends WidgetDescriptionImpl implements ListDescription { + /** + * The default value of the '{@link #getValueExpression() + * <em>Value Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getValueExpression() + * @generated + * @ordered + */ + protected static final String VALUE_EXPRESSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValueExpression() + * <em>Value Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getValueExpression() + * @generated + * @ordered + */ + protected String valueExpression = ListDescriptionImpl.VALUE_EXPRESSION_EDEFAULT; + + /** + * The default value of the '{@link #getDisplayExpression() + * <em>Display Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getDisplayExpression() + * @generated + * @ordered + */ + protected static final String DISPLAY_EXPRESSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplayExpression() + * <em>Display Expression</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * + * @see #getDisplayExpression() + * @generated + * @ordered + */ + protected String displayExpression = ListDescriptionImpl.DISPLAY_EXPRESSION_EDEFAULT; + + /** + * The cached value of the '{@link #getOnClickOperation() + * <em>On Click Operation</em>}' containment reference. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * + * @see #getOnClickOperation() + * @generated + * @ordered + */ + protected InitialOperation onClickOperation; + + /** + * The cached value of the '{@link #getActions() <em>Actions</em>}' + * containment reference list. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #getActions() + * @generated + * @ordered + */ + protected EList<WidgetAction> actions; + + /** + * The cached value of the '{@link #getStyle() <em>Style</em>}' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #getStyle() + * @generated + * @ordered + */ + protected ListWidgetStyle 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<ListWidgetConditionalStyle> conditionalStyles; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListDescriptionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.LIST_DESCRIPTION; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getValueExpression() { + return valueExpression; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setValueExpression(String newValueExpression) { + String oldValueExpression = valueExpression; + valueExpression = newValueExpression; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION, oldValueExpression, valueExpression)); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public String getDisplayExpression() { + return displayExpression; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setDisplayExpression(String newDisplayExpression) { + String oldDisplayExpression = displayExpression; + displayExpression = newDisplayExpression; + if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION, oldDisplayExpression, displayExpression)); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public InitialOperation getOnClickOperation() { + return onClickOperation; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetOnClickOperation(InitialOperation newOnClickOperation, NotificationChain msgs) { + InitialOperation oldOnClickOperation = onClickOperation; + onClickOperation = newOnClickOperation; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION, oldOnClickOperation, newOnClickOperation); + if (msgs == null) { + msgs = notification; + } else { + msgs.add(notification); + } + } + return msgs; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void setOnClickOperation(InitialOperation newOnClickOperation) { + if (newOnClickOperation != onClickOperation) { + NotificationChain msgs = null; + if (onClickOperation != null) { + msgs = ((InternalEObject) onClickOperation).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION, null, msgs); + } + if (newOnClickOperation != null) { + msgs = ((InternalEObject) newOnClickOperation).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION, null, msgs); + } + msgs = basicSetOnClickOperation(newOnClickOperation, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION, newOnClickOperation, newOnClickOperation)); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<WidgetAction> getActions() { + if (actions == null) { + actions = new EObjectContainmentEList<WidgetAction>(WidgetAction.class, this, PropertiesPackage.LIST_DESCRIPTION__ACTIONS); + } + return actions; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public ListWidgetStyle getStyle() { + return style; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetStyle(ListWidgetStyle newStyle, NotificationChain msgs) { + ListWidgetStyle oldStyle = style; + style = newStyle; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_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(ListWidgetStyle newStyle) { + if (newStyle != style) { + NotificationChain msgs = null; + if (style != null) { + msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_DESCRIPTION__STYLE, null, msgs); + } + if (newStyle != null) { + msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_DESCRIPTION__STYLE, null, msgs); + } + msgs = basicSetStyle(newStyle, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_DESCRIPTION__STYLE, newStyle, newStyle)); + } + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EList<ListWidgetConditionalStyle> getConditionalStyles() { + if (conditionalStyles == null) { + conditionalStyles = new EObjectContainmentEList<ListWidgetConditionalStyle>(ListWidgetConditionalStyle.class, this, PropertiesPackage.LIST_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 PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + return basicSetOnClickOperation(null, msgs); + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + return ((InternalEList<?>) getActions()).basicRemove(otherEnd, msgs); + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + return basicSetStyle(null, msgs); + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + return ((InternalEList<?>) getConditionalStyles()).basicRemove(otherEnd, 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 PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION: + return getValueExpression(); + case PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION: + return getDisplayExpression(); + case PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + return getOnClickOperation(); + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + return getActions(); + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + return getStyle(); + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + return getConditionalStyles(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION: + setValueExpression((String) newValue); + return; + case PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION: + setDisplayExpression((String) newValue); + return; + case PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + setOnClickOperation((InitialOperation) newValue); + return; + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + getActions().clear(); + getActions().addAll((Collection<? extends WidgetAction>) newValue); + return; + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + setStyle((ListWidgetStyle) newValue); + return; + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + getConditionalStyles().clear(); + getConditionalStyles().addAll((Collection<? extends ListWidgetConditionalStyle>) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION: + setValueExpression(ListDescriptionImpl.VALUE_EXPRESSION_EDEFAULT); + return; + case PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION: + setDisplayExpression(ListDescriptionImpl.DISPLAY_EXPRESSION_EDEFAULT); + return; + case PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + setOnClickOperation((InitialOperation) null); + return; + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + getActions().clear(); + return; + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + setStyle((ListWidgetStyle) null); + return; + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + getConditionalStyles().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION: + return ListDescriptionImpl.VALUE_EXPRESSION_EDEFAULT == null ? valueExpression != null : !ListDescriptionImpl.VALUE_EXPRESSION_EDEFAULT.equals(valueExpression); + case PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION: + return ListDescriptionImpl.DISPLAY_EXPRESSION_EDEFAULT == null ? displayExpression != null : !ListDescriptionImpl.DISPLAY_EXPRESSION_EDEFAULT.equals(displayExpression); + case PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION: + return onClickOperation != null; + case PropertiesPackage.LIST_DESCRIPTION__ACTIONS: + return actions != null && !actions.isEmpty(); + case PropertiesPackage.LIST_DESCRIPTION__STYLE: + return style != null; + case PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES: + return conditionalStyles != null && !conditionalStyles.isEmpty(); + } + 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(" (valueExpression: "); //$NON-NLS-1$ + result.append(valueExpression); + result.append(", displayExpression: "); //$NON-NLS-1$ + result.append(displayExpression); + result.append(')'); + return result.toString(); + } + +} // ListDescriptionImpl diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetConditionalStyleImpl.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetConditionalStyleImpl.java new file mode 100644 index 0000000000..2c6894601c --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetConditionalStyleImpl.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.impl; + +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; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; +import org.eclipse.sirius.properties.PropertiesPackage; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>List Widget Conditional Style</b></em>'. <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li> + * {@link org.eclipse.sirius.properties.impl.ListWidgetConditionalStyleImpl#getStyle + * <em>Style</em>}</li> + * </ul> + * + * @generated + */ +public class ListWidgetConditionalStyleImpl extends WidgetConditionalStyleImpl implements ListWidgetConditionalStyle { + /** + * The cached value of the '{@link #getStyle() <em>Style</em>}' containment + * reference. <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @see #getStyle() + * @generated + * @ordered + */ + protected ListWidgetStyle style; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListWidgetConditionalStyleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.LIST_WIDGET_CONDITIONAL_STYLE; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public ListWidgetStyle getStyle() { + return style; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + public NotificationChain basicSetStyle(ListWidgetStyle newStyle, NotificationChain msgs) { + ListWidgetStyle oldStyle = style; + style = newStyle; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_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(ListWidgetStyle newStyle) { + if (newStyle != style) { + NotificationChain msgs = null; + if (style != null) { + msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE, null, msgs); + } + if (newStyle != null) { + msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE, null, msgs); + } + msgs = basicSetStyle(newStyle, msgs); + if (msgs != null) { + msgs.dispatch(); + } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.LIST_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 PropertiesPackage.LIST_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 PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE: + return getStyle(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE: + setStyle((ListWidgetStyle) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE: + setStyle((ListWidgetStyle) null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE: + return style != null; + } + return super.eIsSet(featureID); + } + +} // ListWidgetConditionalStyleImpl diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetStyleImpl.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetStyleImpl.java new file mode 100644 index 0000000000..4756575a15 --- /dev/null +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/ListWidgetStyleImpl.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016 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.html + * + * Contributors: + * Obeo - initial API and implementation + * + */ +package org.eclipse.sirius.properties.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.sirius.properties.ListWidgetStyle; +import org.eclipse.sirius.properties.PropertiesPackage; + +/** + * <!-- begin-user-doc --> An implementation of the model object ' + * <em><b>List Widget Style</b></em>'. <!-- end-user-doc --> + * + * @generated + */ +public class ListWidgetStyleImpl extends WidgetStyleImpl implements ListWidgetStyle { + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ListWidgetStyleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return PropertiesPackage.Literals.LIST_WIDGET_STYLE; + } + +} // ListWidgetStyleImpl diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java index 6567cd8bc5..1be45b690c 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java @@ -44,6 +44,9 @@ import org.eclipse.sirius.properties.HyperlinkWidgetStyle; import org.eclipse.sirius.properties.LabelDescription; import org.eclipse.sirius.properties.LabelWidgetConditionalStyle; import org.eclipse.sirius.properties.LabelWidgetStyle; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; import org.eclipse.sirius.properties.OperationDescription; import org.eclipse.sirius.properties.PageDescription; import org.eclipse.sirius.properties.PageValidationSetDescription; @@ -150,6 +153,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac return createRadioDescription(); case PropertiesPackage.REFERENCE_DESCRIPTION: return createReferenceDescription(); + case PropertiesPackage.LIST_DESCRIPTION: + return createListDescription(); case PropertiesPackage.OPERATION_DESCRIPTION: return createOperationDescription(); case PropertiesPackage.CUSTOM_DESCRIPTION: @@ -178,6 +183,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac return createCustomWidgetStyle(); case PropertiesPackage.REFERENCE_WIDGET_STYLE: return createReferenceWidgetStyle(); + case PropertiesPackage.LIST_WIDGET_STYLE: + return createListWidgetStyle(); case PropertiesPackage.HYPERLINK_WIDGET_STYLE: return createHyperlinkWidgetStyle(); case PropertiesPackage.GROUP_STYLE: @@ -198,6 +205,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac return createCustomWidgetConditionalStyle(); case PropertiesPackage.REFERENCE_WIDGET_CONDITIONAL_STYLE: return createReferenceWidgetConditionalStyle(); + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE: + return createListWidgetConditionalStyle(); case PropertiesPackage.WIDGET_ACTION: return createWidgetAction(); case PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE: @@ -462,6 +471,17 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac * @generated */ @Override + public ListDescription createListDescription() { + ListDescriptionImpl listDescription = new ListDescriptionImpl(); + return listDescription; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public OperationDescription createOperationDescription() { OperationDescriptionImpl operationDescription = new OperationDescriptionImpl(); return operationDescription; @@ -616,6 +636,17 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac * @generated */ @Override + public ListWidgetStyle createListWidgetStyle() { + ListWidgetStyleImpl listWidgetStyle = new ListWidgetStyleImpl(); + return listWidgetStyle; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public HyperlinkWidgetStyle createHyperlinkWidgetStyle() { HyperlinkWidgetStyleImpl hyperlinkWidgetStyle = new HyperlinkWidgetStyleImpl(); return hyperlinkWidgetStyle; @@ -726,6 +757,17 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac * @generated */ @Override + public ListWidgetConditionalStyle createListWidgetConditionalStyle() { + ListWidgetConditionalStyleImpl listWidgetConditionalStyle = new ListWidgetConditionalStyleImpl(); + return listWidgetConditionalStyle; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public WidgetAction createWidgetAction() { WidgetActionImpl widgetAction = new WidgetActionImpl(); return widgetAction; diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java index 15130f02a7..e4968f4db8 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java @@ -46,6 +46,9 @@ import org.eclipse.sirius.properties.LabelDescription; import org.eclipse.sirius.properties.LabelWidgetConditionalStyle; import org.eclipse.sirius.properties.LabelWidgetStyle; import org.eclipse.sirius.properties.LayoutDescription; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; import org.eclipse.sirius.properties.OperationDescription; import org.eclipse.sirius.properties.PageDescription; import org.eclipse.sirius.properties.PageValidationSetDescription; @@ -243,6 +246,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * * @generated */ + private EClass listDescriptionEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ private EClass operationDescriptionEClass = null; /** @@ -397,6 +407,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * * @generated */ + private EClass listWidgetConditionalStyleEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ private EClass widgetActionEClass = null; /** @@ -425,6 +442,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * * @generated */ + private EClass listWidgetStyleEClass = null; + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ private EClass hyperlinkWidgetStyleEClass = null; /** @@ -1510,6 +1534,76 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * @generated */ @Override + public EClass getListDescription() { + return listDescriptionEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getListDescription_ValueExpression() { + return (EAttribute) listDescriptionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EAttribute getListDescription_DisplayExpression() { + return (EAttribute) listDescriptionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getListDescription_OnClickOperation() { + return (EReference) listDescriptionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getListDescription_Actions() { + return (EReference) listDescriptionEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getListDescription_Style() { + return (EReference) listDescriptionEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getListDescription_ConditionalStyles() { + return (EReference) listDescriptionEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public EClass getOperationDescription() { return operationDescriptionEClass; } @@ -2120,6 +2214,26 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * @generated */ @Override + public EClass getListWidgetConditionalStyle() { + return listWidgetConditionalStyleEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + public EReference getListWidgetConditionalStyle_Style() { + return (EReference) listWidgetConditionalStyleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public EClass getWidgetAction() { return widgetActionEClass; } @@ -2200,6 +2314,16 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac * @generated */ @Override + public EClass getListWidgetStyle() { + return listWidgetStyleEClass; + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override public EClass getHyperlinkWidgetStyle() { return hyperlinkWidgetStyleEClass; } @@ -2505,6 +2629,14 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac createEReference(referenceDescriptionEClass, PropertiesPackage.REFERENCE_DESCRIPTION__STYLE); createEReference(referenceDescriptionEClass, PropertiesPackage.REFERENCE_DESCRIPTION__CONDITIONAL_STYLES); + listDescriptionEClass = createEClass(PropertiesPackage.LIST_DESCRIPTION); + createEAttribute(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__VALUE_EXPRESSION); + createEAttribute(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__DISPLAY_EXPRESSION); + createEReference(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__ON_CLICK_OPERATION); + createEReference(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__ACTIONS); + createEReference(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__STYLE); + createEReference(listDescriptionEClass, PropertiesPackage.LIST_DESCRIPTION__CONDITIONAL_STYLES); + operationDescriptionEClass = createEClass(PropertiesPackage.OPERATION_DESCRIPTION); createEReference(operationDescriptionEClass, PropertiesPackage.OPERATION_DESCRIPTION__INITIAL_OPERATION); @@ -2563,6 +2695,8 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac referenceWidgetStyleEClass = createEClass(PropertiesPackage.REFERENCE_WIDGET_STYLE); + listWidgetStyleEClass = createEClass(PropertiesPackage.LIST_WIDGET_STYLE); + hyperlinkWidgetStyleEClass = createEClass(PropertiesPackage.HYPERLINK_WIDGET_STYLE); createEAttribute(hyperlinkWidgetStyleEClass, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION); createEAttribute(hyperlinkWidgetStyleEClass, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE_EXPRESSION); @@ -2605,6 +2739,9 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac referenceWidgetConditionalStyleEClass = createEClass(PropertiesPackage.REFERENCE_WIDGET_CONDITIONAL_STYLE); createEReference(referenceWidgetConditionalStyleEClass, PropertiesPackage.REFERENCE_WIDGET_CONDITIONAL_STYLE__STYLE); + listWidgetConditionalStyleEClass = createEClass(PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE); + createEReference(listWidgetConditionalStyleEClass, PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE__STYLE); + widgetActionEClass = createEClass(PropertiesPackage.WIDGET_ACTION); createEAttribute(widgetActionEClass, PropertiesPackage.WIDGET_ACTION__LABEL_EXPRESSION); createEReference(widgetActionEClass, PropertiesPackage.WIDGET_ACTION__INITIAL_OPERATION); @@ -2673,6 +2810,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac textAreaDescriptionEClass.getESuperTypes().add(this.getTextDescription()); radioDescriptionEClass.getESuperTypes().add(this.getWidgetDescription()); referenceDescriptionEClass.getESuperTypes().add(this.getWidgetDescription()); + listDescriptionEClass.getESuperTypes().add(this.getWidgetDescription()); customDescriptionEClass.getESuperTypes().add(this.getWidgetDescription()); hyperlinkDescriptionEClass.getESuperTypes().add(this.getWidgetDescription()); textWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); @@ -2683,6 +2821,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac selectWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); customWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); referenceWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); + listWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); hyperlinkWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle()); textWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); labelWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); @@ -2692,6 +2831,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac selectWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); customWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); referenceWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); + listWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); hyperlinkWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); groupConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle()); @@ -2950,6 +3090,24 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac !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); + initEClass(listDescriptionEClass, ListDescription.class, "ListDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEAttribute(getListDescription_ValueExpression(), theDescriptionPackage.getInterpretedExpression(), "valueExpression", null, 0, 1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ + !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); + initEAttribute(getListDescription_DisplayExpression(), theDescriptionPackage.getInterpretedExpression(), "displayExpression", null, 0, 1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ + !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); + initEReference(getListDescription_OnClickOperation(), theToolPackage.getInitialOperation(), null, "onClickOperation", null, 0, 1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ + !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); + initEReference(getListDescription_Actions(), this.getWidgetAction(), null, "actions", null, 0, -1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, //$NON-NLS-1$ + EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, + EPackageImpl.IS_ORDERED); + initEReference(getListDescription_Style(), this.getListWidgetStyle(), null, "style", null, 0, 1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, //$NON-NLS-1$ + EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, + EPackageImpl.IS_ORDERED); + initEReference(getListDescription_ConditionalStyles(), this.getListWidgetConditionalStyle(), null, "conditionalStyles", null, 0, -1, ListDescription.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ + !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); + initEClass(operationDescriptionEClass, OperationDescription.class, "OperationDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEReference(getOperationDescription_InitialOperation(), theToolPackage.getInitialOperation(), null, "initialOperation", null, 1, 1, OperationDescription.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, @@ -3056,6 +3214,8 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac initEClass(referenceWidgetStyleEClass, ReferenceWidgetStyle.class, "ReferenceWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEClass(listWidgetStyleEClass, ListWidgetStyle.class, "ListWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ + initEClass(hyperlinkWidgetStyleEClass, HyperlinkWidgetStyle.class, "HyperlinkWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getHyperlinkWidgetStyle_FontNameExpression(), theDescriptionPackage.getInterpretedExpression(), "fontNameExpression", null, 0, 1, HyperlinkWidgetStyle.class, //$NON-NLS-1$ !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, @@ -3141,6 +3301,12 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac !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); + initEClass(listWidgetConditionalStyleEClass, ListWidgetConditionalStyle.class, "ListWidgetConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, //$NON-NLS-1$ + EPackageImpl.IS_GENERATED_INSTANCE_CLASS); + initEReference(getListWidgetConditionalStyle_Style(), this.getListWidgetStyle(), null, "style", null, 0, 1, ListWidgetConditionalStyle.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ + !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); + initEClass(widgetActionEClass, WidgetAction.class, "WidgetAction", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$ initEAttribute(getWidgetAction_LabelExpression(), theDescriptionPackage.getInterpretedExpression(), "labelExpression", null, 0, 1, WidgetAction.class, !EPackageImpl.IS_TRANSIENT, //$NON-NLS-1$ !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED); diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java index 5bb212271d..684ed33d12 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java @@ -43,6 +43,9 @@ import org.eclipse.sirius.properties.LabelDescription; import org.eclipse.sirius.properties.LabelWidgetConditionalStyle; import org.eclipse.sirius.properties.LabelWidgetStyle; import org.eclipse.sirius.properties.LayoutDescription; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; import org.eclipse.sirius.properties.OperationDescription; import org.eclipse.sirius.properties.PageDescription; import org.eclipse.sirius.properties.PageValidationSetDescription; @@ -236,6 +239,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { } @Override + public Adapter caseListDescription(ListDescription object) { + return createListDescriptionAdapter(); + } + + @Override public Adapter caseOperationDescription(OperationDescription object) { return createOperationDescriptionAdapter(); } @@ -306,6 +314,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { } @Override + public Adapter caseListWidgetStyle(ListWidgetStyle object) { + return createListWidgetStyleAdapter(); + } + + @Override public Adapter caseHyperlinkWidgetStyle(HyperlinkWidgetStyle object) { return createHyperlinkWidgetStyleAdapter(); } @@ -361,6 +374,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { } @Override + public Adapter caseListWidgetConditionalStyle(ListWidgetConditionalStyle object) { + return createListWidgetConditionalStyleAdapter(); + } + + @Override public Adapter caseWidgetAction(WidgetAction object) { return createWidgetActionAdapter(); } @@ -764,6 +782,22 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { /** * Creates a new adapter for an object of class ' + * {@link org.eclipse.sirius.properties.ListDescription + * <em>List Description</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.sirius.properties.ListDescription + * @generated + */ + public Adapter createListDescriptionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class ' * {@link org.eclipse.sirius.properties.OperationDescription * <em>Operation Description</em>}'. <!-- begin-user-doc --> This default * implementation returns null so that we can easily ignore cases; it's @@ -987,6 +1021,22 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { /** * Creates a new adapter for an object of class ' + * {@link org.eclipse.sirius.properties.ListWidgetStyle + * <em>List 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.sirius.properties.ListWidgetStyle + * @generated + */ + public Adapter createListWidgetStyleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class ' * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle * <em>Hyperlink Widget Style</em>}'. <!-- begin-user-doc --> This default * implementation returns null so that we can easily ignore cases; it's @@ -1162,6 +1212,22 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl { /** * Creates a new adapter for an object of class ' + * {@link org.eclipse.sirius.properties.ListWidgetConditionalStyle + * <em>List 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.sirius.properties.ListWidgetConditionalStyle + * @generated + */ + public Adapter createListWidgetConditionalStyleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class ' * {@link org.eclipse.sirius.properties.WidgetAction <em>Widget Action</em>} * '. <!-- begin-user-doc --> This default implementation returns null so * that we can easily ignore cases; it's useful to ignore a case when diff --git a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java index 7790496604..1d08886f6e 100644 --- a/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java +++ b/plugins/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java @@ -43,6 +43,9 @@ import org.eclipse.sirius.properties.LabelDescription; import org.eclipse.sirius.properties.LabelWidgetConditionalStyle; import org.eclipse.sirius.properties.LabelWidgetStyle; import org.eclipse.sirius.properties.LayoutDescription; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; import org.eclipse.sirius.properties.OperationDescription; import org.eclipse.sirius.properties.PageDescription; import org.eclipse.sirius.properties.PageValidationSetDescription; @@ -394,6 +397,20 @@ public class PropertiesSwitch<T> { } return result; } + case PropertiesPackage.LIST_DESCRIPTION: { + ListDescription listDescription = (ListDescription) theEObject; + T result = caseListDescription(listDescription); + if (result == null) { + result = caseWidgetDescription(listDescription); + } + if (result == null) { + result = caseControlDescription(listDescription); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } case PropertiesPackage.OPERATION_DESCRIPTION: { OperationDescription operationDescription = (OperationDescription) theEObject; T result = caseOperationDescription(operationDescription); @@ -542,6 +559,17 @@ public class PropertiesSwitch<T> { } return result; } + case PropertiesPackage.LIST_WIDGET_STYLE: { + ListWidgetStyle listWidgetStyle = (ListWidgetStyle) theEObject; + T result = caseListWidgetStyle(listWidgetStyle); + if (result == null) { + result = caseWidgetStyle(listWidgetStyle); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } case PropertiesPackage.HYPERLINK_WIDGET_STYLE: { HyperlinkWidgetStyle hyperlinkWidgetStyle = (HyperlinkWidgetStyle) theEObject; T result = caseHyperlinkWidgetStyle(hyperlinkWidgetStyle); @@ -657,6 +685,17 @@ public class PropertiesSwitch<T> { } return result; } + case PropertiesPackage.LIST_WIDGET_CONDITIONAL_STYLE: { + ListWidgetConditionalStyle listWidgetConditionalStyle = (ListWidgetConditionalStyle) theEObject; + T result = caseListWidgetConditionalStyle(listWidgetConditionalStyle); + if (result == null) { + result = caseWidgetConditionalStyle(listWidgetConditionalStyle); + } + if (result == null) { + result = defaultCase(theEObject); + } + return result; + } case PropertiesPackage.WIDGET_ACTION: { WidgetAction widgetAction = (WidgetAction) theEObject; T result = caseWidgetAction(widgetAction); @@ -1068,6 +1107,23 @@ public class PropertiesSwitch<T> { /** * Returns the result of interpreting the object as an instance of ' + * <em>List Description</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>List Description</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseListDescription(ListDescription object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of ' * <em>Operation Description</em>'. <!-- begin-user-doc --> This * implementation returns null; returning a non-null result will terminate * the switch. <!-- end-user-doc --> @@ -1306,6 +1362,23 @@ public class PropertiesSwitch<T> { /** * Returns the result of interpreting the object as an instance of ' + * <em>List 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>List Widget Style</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseListWidgetStyle(ListWidgetStyle object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of ' * <em>Hyperlink Widget Style</em>'. <!-- begin-user-doc --> This * implementation returns null; returning a non-null result will terminate * the switch. <!-- end-user-doc --> @@ -1493,6 +1566,23 @@ public class PropertiesSwitch<T> { /** * Returns the result of interpreting the object as an instance of ' + * <em>List 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>List Widget Conditional Style</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseListWidgetConditionalStyle(ListWidgetConditionalStyle object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of ' * <em>Widget Action</em>'. <!-- begin-user-doc --> This implementation * returns null; returning a non-null result will terminate the switch. <!-- * end-user-doc --> diff --git a/plugins/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/PropertiesDescriptionConverterSwitch.java b/plugins/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/PropertiesDescriptionConverterSwitch.java index 00682fff35..9d21c206d9 100644 --- a/plugins/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/PropertiesDescriptionConverterSwitch.java +++ b/plugins/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/PropertiesDescriptionConverterSwitch.java @@ -36,6 +36,9 @@ import org.eclipse.sirius.properties.HyperlinkWidgetStyle; import org.eclipse.sirius.properties.LabelDescription; import org.eclipse.sirius.properties.LabelWidgetConditionalStyle; import org.eclipse.sirius.properties.LabelWidgetStyle; +import org.eclipse.sirius.properties.ListDescription; +import org.eclipse.sirius.properties.ListWidgetConditionalStyle; +import org.eclipse.sirius.properties.ListWidgetStyle; import org.eclipse.sirius.properties.PageDescription; import org.eclipse.sirius.properties.PropertyValidationRule; import org.eclipse.sirius.properties.RadioDescription; @@ -232,6 +235,11 @@ public class PropertiesDescriptionConverterSwitch extends PropertiesSwitch<IDesc } @Override + public IDescriptionConverter caseListDescription(ListDescription object) { + return new DefaultDescriptionWithInitialOperationConverter<>(ListDescription.class, EefPackage.Literals.EEF_LIST_DESCRIPTION, EefPackage.Literals.EEF_LIST_DESCRIPTION__ON_CLICK_EXPRESSION); + } + + @Override public IDescriptionConverter caseWidgetAction(WidgetAction object) { return new DefaultDescriptionWithInitialOperationConverter<>(WidgetAction.class, EefPackage.Literals.EEF_WIDGET_ACTION, EefPackage.Literals.EEF_WIDGET_ACTION__ACTION_EXPRESSION); } @@ -247,6 +255,16 @@ public class PropertiesDescriptionConverterSwitch extends PropertiesSwitch<IDesc } @Override + public IDescriptionConverter caseListWidgetStyle(ListWidgetStyle object) { + return new DefaultStyleDescriptionConverter<>(ListWidgetStyle.class, EefPackage.Literals.EEF_LIST_STYLE); + } + + @Override + public IDescriptionConverter caseListWidgetConditionalStyle(ListWidgetConditionalStyle object) { + return new DefaultDescriptionConverter<>(ListWidgetConditionalStyle.class, EefPackage.Literals.EEF_LIST_CONDITIONAL_STYLE); + } + + @Override public IDescriptionConverter caseCustomDescription(CustomDescription object) { return new CustomWidgetDescriptionConverter<>(CustomDescription.class, EefPackage.Literals.EEF_CUSTOM_WIDGET_DESCRIPTION); } |
