Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMélanie Bats2016-04-19 15:48:25 +0000
committerPierre-Charles David2016-04-27 14:03:56 +0000
commitc046de3ab5a92ff5abaeb631ff2976c06ff5488f (patch)
tree6e012224792d237b695ad10fc9b323bb45d6e2b8
parent3c38ff131bd602a70a198382fb7be8a94821e144 (diff)
downloadorg.eclipse.sirius-c046de3ab5a92ff5abaeb631ff2976c06ff5488f.tar.gz
org.eclipse.sirius-c046de3ab5a92ff5abaeb631ff2976c06ff5488f.tar.xz
org.eclipse.sirius-c046de3ab5a92ff5abaeb631ff2976c06ff5488f.zip
[482528] Support hyperlink widget
Bug: 482528 Change-Id: I380b05bbb5fdc192af557ee70139641cb11a5e68 Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/help/contexts.xml33
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/plugin.xml38
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionFilter.java45
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorFilter.java45
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatFilter.java45
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionFilter.java45
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizeFilter.java45
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionPropertySection.java120
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorPropertySection.java132
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatPropertySection.java98
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionPropertySection.java121
-rw-r--r--incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizePropertySection.java112
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkDescription.gifbin0 -> 129 bytes
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetConditionalStyle.gifbin0 -> 129 bytes
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetStyle.gifbin0 -> 129 bytes
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/plugin.properties12
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java2
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java2
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/GroupDescriptionItemProvider.java2
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkDescriptionItemProvider.java177
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetConditionalStyleItemProvider.java149
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetStyleItemProvider.java171
-rw-r--r--incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java102
-rw-r--r--incubation/org.eclipse.sirius.properties/model/properties.ecore21
-rw-r--r--incubation/org.eclipse.sirius.properties/model/properties.genmodel15
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkDescription.java155
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetConditionalStyle.java62
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetStyle.java155
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java37
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java538
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkDescriptionImpl.java396
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetConditionalStyleImpl.java192
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetStyleImpl.java351
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java48
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java194
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java80
-rw-r--r--incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java100
-rw-r--r--incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/ViewDescriptionConverter.java59
38 files changed, 3851 insertions, 48 deletions
diff --git a/incubation/org.eclipse.sirius.editor.properties/help/contexts.xml b/incubation/org.eclipse.sirius.editor.properties/help/contexts.xml
index 5dc605eef4..dee708b801 100644
--- a/incubation/org.eclipse.sirius.editor.properties/help/contexts.xml
+++ b/incubation/org.eclipse.sirius.editor.properties/help/contexts.xml
@@ -293,6 +293,17 @@
</description>
</context>
+ <context id="HyperlinkDescription">
+ <description>
+
+
+
+ <!-- Start of user code HyperlinkDescription description -->
+
+ <!-- End of user code HyperlinkDescription description -->
+
+ </description>
+ </context>
<context id="WidgetStyle">
<description>
@@ -392,6 +403,17 @@
</description>
</context>
+ <context id="HyperlinkWidgetStyle">
+ <description>
+
+
+
+ <!-- Start of user code HyperlinkWidgetStyle description -->
+
+ <!-- End of user code HyperlinkWidgetStyle description -->
+
+ </description>
+ </context>
<context id="WidgetConditionalStyle">
<description>
@@ -502,4 +524,15 @@
</description>
</context>
+ <context id="HyperlinkWidgetConditionalStyle">
+ <description>
+
+
+
+ <!-- Start of user code HyperlinkWidgetConditionalStyle description -->
+
+ <!-- End of user code HyperlinkWidgetConditionalStyle description -->
+
+ </description>
+ </context>
</contexts> \ No newline at end of file
diff --git a/incubation/org.eclipse.sirius.editor.properties/plugin.xml b/incubation/org.eclipse.sirius.editor.properties/plugin.xml
index a62b276833..9c295ee1d2 100644
--- a/incubation/org.eclipse.sirius.editor.properties/plugin.xml
+++ b/incubation/org.eclipse.sirius.editor.properties/plugin.xml
@@ -31,6 +31,37 @@
<input type="org.eclipse.sirius.properties.WidgetConditionalStyle"/>
</propertySection>
<propertySection
+ class="org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontFormatPropertySection"
+ id="properties.section.hyperlinkWidgetStyle.FontFormat"
+ filter="org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontFormatFilter"
+ afterSection="properties.section.hyperlinkWidgetStyle.BackgroundColor"
+ tab="viewpoint.tab.general">
+ <input type="org.eclipse.sirius.properties.HyperlinkWidgetStyle"/>
+ </propertySection>
+ <propertySection
+ class="org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleBackgroundColorPropertySection"
+ id="properties.section.hyperlinkWidgetStyle.BackgroundColor"
+ filter="org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleBackgroundColorFilter"
+ afterSection="properties.section.hyperlinkWidgetStyle.FontSize"
+ tab="viewpoint.tab.general">
+ <input type="org.eclipse.sirius.properties.HyperlinkWidgetStyle"/>
+ </propertySection>
+ <propertySection
+ class="org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontSizePropertySection"
+ id="properties.section.hyperlinkWidgetStyle.FontSize"
+ filter="org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontSizeFilter"
+ afterSection="properties.section.hyperlinkWidgetStyle.FontNameExpression"
+ tab="viewpoint.tab.general">
+ <input type="org.eclipse.sirius.properties.HyperlinkWidgetStyle"/>
+ </propertySection>
+ <propertySection
+ class="org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontNameExpressionPropertySection"
+ id="properties.section.hyperlinkWidgetStyle.FontNameExpression"
+ filter="org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkwidgetstyle.HyperlinkWidgetStyleFontNameExpressionFilter"
+ tab="viewpoint.tab.general">
+ <input type="org.eclipse.sirius.properties.HyperlinkWidgetStyle"/>
+ </propertySection>
+ <propertySection
class="org.eclipse.sirius.properties.editor.properties.sections.properties.labelwidgetstyle.LabelWidgetStyleFontFormatPropertySection"
id="properties.section.labelWidgetStyle.FontFormat"
filter="org.eclipse.sirius.properties.editor.properties.filters.properties.labelwidgetstyle.LabelWidgetStyleFontFormatFilter"
@@ -148,6 +179,13 @@
<input type="org.eclipse.sirius.properties.WidgetStyle"/>
</propertySection>
<propertySection
+ class="org.eclipse.sirius.properties.editor.properties.sections.properties.hyperlinkdescription.HyperlinkDescriptionValueExpressionPropertySection"
+ id="properties.section.hyperlinkDescription.ValueExpression"
+ filter="org.eclipse.sirius.properties.editor.properties.filters.properties.hyperlinkdescription.HyperlinkDescriptionValueExpressionFilter"
+ tab="viewpoint.tab.general">
+ <input type="org.eclipse.sirius.properties.HyperlinkDescription"/>
+ </propertySection>
+ <propertySection
class="org.eclipse.sirius.properties.editor.properties.sections.properties.customoperation.CustomOperationIdentifierPropertySection"
id="properties.section.customOperation.Identifier"
filter="org.eclipse.sirius.properties.editor.properties.filters.properties.customoperation.CustomOperationIdentifierFilter"
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionFilter.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionFilter.java
new file mode 100644
index 0000000000..eb5229068f
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionFilter.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.hyperlinkdescription;
+
+// 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 HyperlinkDescriptionValueExpressionFilter extends ViewpointPropertyFilter {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected EStructuralFeature getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkDescription_ValueExpression();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean isRightInputType(Object arg0) {
+ return arg0 instanceof org.eclipse.sirius.properties.HyperlinkDescription;
+ }
+
+ // Start of user code user methods
+
+ // End of user code user methods
+
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorFilter.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorFilter.java
new file mode 100644
index 0000000000..920fcecd20
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorFilter.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.hyperlinkwidgetstyle;
+
+// 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 backgroundColor property section.
+ */
+public class HyperlinkWidgetStyleBackgroundColorFilter extends ViewpointPropertyFilter {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected EStructuralFeature getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_BackgroundColor();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean isRightInputType(Object arg0) {
+ return arg0 instanceof org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+ }
+
+ // Start of user code user methods
+
+ // End of user code user methods
+
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatFilter.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatFilter.java
new file mode 100644
index 0000000000..98e9742345
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatFilter.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.hyperlinkwidgetstyle;
+
+// 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 fontFormat property section.
+ */
+public class HyperlinkWidgetStyleFontFormatFilter extends ViewpointPropertyFilter {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected EStructuralFeature getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontFormat();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean isRightInputType(Object arg0) {
+ return arg0 instanceof org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+ }
+
+ // Start of user code user methods
+
+ // End of user code user methods
+
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionFilter.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionFilter.java
new file mode 100644
index 0000000000..dfcb31e2ac
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionFilter.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.hyperlinkwidgetstyle;
+
+// 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 fontNameExpression property section.
+ */
+public class HyperlinkWidgetStyleFontNameExpressionFilter extends ViewpointPropertyFilter {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected EStructuralFeature getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontNameExpression();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean isRightInputType(Object arg0) {
+ return arg0 instanceof org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+ }
+
+ // Start of user code user methods
+
+ // End of user code user methods
+
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizeFilter.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizeFilter.java
new file mode 100644
index 0000000000..1664a3ba03
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/filters/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizeFilter.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.hyperlinkwidgetstyle;
+
+// 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 fontSize property section.
+ */
+public class HyperlinkWidgetStyleFontSizeFilter extends ViewpointPropertyFilter {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected EStructuralFeature getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontSize();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected boolean isRightInputType(Object arg0) {
+ return arg0 instanceof org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+ }
+
+ // Start of user code user methods
+
+ // End of user code user methods
+
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionPropertySection.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionPropertySection.java
new file mode 100644
index 0000000000..8891fb3be1
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkdescription/HyperlinkDescriptionValueExpressionPropertySection.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.hyperlinkdescription;
+
+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 HyperlinkDescription object.
+ */
+public class HyperlinkDescriptionValueExpressionPropertySection 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.getHyperlinkDescription_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(), HyperlinkDescriptionValueExpressionPropertySection.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/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorPropertySection.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorPropertySection.java
new file mode 100644
index 0000000000..41088a7e7a
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleBackgroundColorPropertySection.java
@@ -0,0 +1,132 @@
+/*******************************************************************************
+ * 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.hyperlinkwidgetstyle;
+
+// Start of user code imports
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.sirius.editor.properties.sections.common.AbstractComboPropertySection;
+import org.eclipse.sirius.properties.PropertiesPackage;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+
+// End of user code imports
+
+/**
+ * A section for the backgroundColor property of a HyperlinkWidgetStyle object.
+ */
+public class HyperlinkWidgetStyleBackgroundColorPropertySection extends AbstractComboPropertySection {
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractComboPropertySection#getDefaultLabelText()
+ */
+ @Override
+ protected String getDefaultLabelText() {
+ return "BackgroundColor"; //$NON-NLS-1$
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractComboPropertySection#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.AbstractComboPropertySection#getFeature()
+ */
+ @Override
+ protected EReference getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_BackgroundColor();
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractComboPropertySection#getFeatureValue(int)
+ */
+ @Override
+ protected Object getFeatureValue(int index) {
+ return getFeatureValueAt(index);
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractComboPropertySection#isEqual(int)
+ */
+ @Override
+ protected boolean isEqual(int index) {
+ boolean isEqual = false;
+ if (getFeatureValueAt(index) == null) {
+ isEqual = eObject.eGet(getFeature()) == null;
+ } else {
+ isEqual = getFeatureValueAt(index).equals(eObject.eGet(getFeature()));
+ }
+ return isEqual;
+ }
+
+ /**
+ * Returns the value at the specified index in the choice of values for the
+ * feature.
+ *
+ * @param index
+ * Index of the value.
+ * @return the value at the specified index in the choice of values.
+ */
+ protected Object getFeatureValueAt(int index) {
+ List<?> values = getChoiceOfValues();
+ if (values.size() < index || values.size() == 0 || index == -1) {
+ return null;
+ }
+ return values.get(index);
+ }
+
+ /**
+ * Fetches the list of available values for the feature.
+ *
+ * @return The list of available values for the feature.
+ */
+ @Override
+ protected List<?> getChoiceOfValues() {
+ List<?> values = Collections.emptyList();
+ List<IItemPropertyDescriptor> propertyDescriptors = getDescriptors();
+ for (IItemPropertyDescriptor propertyDescriptor : propertyDescriptors) {
+ if (((EStructuralFeature) propertyDescriptor.getFeature(eObject)) == getFeature()) {
+ values = new ArrayList<Object>(propertyDescriptor.getChoiceOfValues(eObject));
+ }
+ }
+
+ // Start of user code choice of values
+ // End of user code choice of values
+ return values;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
+ super.createControls(parent, tabbedPropertySheetPage);
+ // Start of user code create controls
+
+ // End of user code create controls
+ }
+ // Start of user code user operations
+
+ // End of user code user operations
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatPropertySection.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatPropertySection.java
new file mode 100644
index 0000000000..87ff9fb6bc
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontFormatPropertySection.java
@@ -0,0 +1,98 @@
+/*******************************************************************************
+ * 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.hyperlinkwidgetstyle;
+
+import java.util.Iterator;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.sirius.editor.properties.sections.common.AbstractEditorDialogPropertySection;
+import org.eclipse.sirius.properties.PropertiesPackage;
+import org.eclipse.sirius.viewpoint.FontFormat;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+
+/**
+ * A section for the fontFormat property of a HyperlinkWidgetStyle object.
+ */
+public class HyperlinkWidgetStyleFontFormatPropertySection extends AbstractEditorDialogPropertySection {
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractEditorDialogPropertySection#getDefaultLabelText()
+ */
+ @Override
+ protected String getDefaultLabelText() {
+ return "FontFormat"; //$NON-NLS-1$
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractEditorDialogPropertySection#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.AbstractEditorDialogPropertySection#getFeature()
+ */
+ @Override
+ protected EAttribute getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontFormat();
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractEditorDialogPropertySection#getFeatureAsText()
+ */
+ @Override
+ protected String getFeatureAsText() {
+ String string = new String();
+
+ if (eObject.eGet(getFeature()) != null) {
+ List<?> values = (List<?>) eObject.eGet(getFeature());
+ for (Iterator<?> iterator = values.iterator(); iterator.hasNext();) {
+ string += getAdapterFactoryLabelProvider().getText(iterator.next());
+ if (iterator.hasNext()) {
+ string += ", ";
+ }
+ }
+ }
+
+ return string;
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractEditorDialogPropertySection#isEqual(List)
+ */
+ @Override
+ protected boolean isEqual(List<?> newList) {
+ return newList.equals(eObject.eGet(getFeature()));
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractEditorDialogPropertySection#getEnumerationFeatureValues()
+ */
+ @Override
+ protected List<?> getChoiceOfValues() {
+ return FontFormat.VALUES;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
+ super.createControls(parent, tabbedPropertySheetPage);
+ }
+}
diff --git a/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionPropertySection.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionPropertySection.java
new file mode 100644
index 0000000000..424b06578f
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontNameExpressionPropertySection.java
@@ -0,0 +1,121 @@
+/*******************************************************************************
+ * 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.hyperlinkwidgetstyle;
+
+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 fontNameExpression property of a HyperlinkWidgetStyle
+ * object.
+ */
+public class HyperlinkWidgetStyleFontNameExpressionPropertySection extends AbstractTextWithButtonPropertySection implements ContentProposalClient {
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractTextWithButtonPropertySection#getDefaultLabelText()
+ */
+ @Override
+ protected String getDefaultLabelText() {
+ return "FontNameExpression"; //$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.getHyperlinkWidgetStyle_FontNameExpression();
+ }
+
+ /**
+ * @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(), HyperlinkWidgetStyleFontNameExpressionPropertySection.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/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizePropertySection.java b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizePropertySection.java
new file mode 100644
index 0000000000..b4b350b9c8
--- /dev/null
+++ b/incubation/org.eclipse.sirius.editor.properties/src-gen/org/eclipse/sirius/properties/editor/properties/sections/properties/hyperlinkwidgetstyle/HyperlinkWidgetStyleFontSizePropertySection.java
@@ -0,0 +1,112 @@
+/*******************************************************************************
+ * 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.hyperlinkwidgetstyle;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.sirius.editor.properties.sections.common.AbstractSpinnerPropertySection;
+import org.eclipse.sirius.properties.PropertiesPackage;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+
+/**
+ * A section for the fontSize property of a HyperlinkWidgetStyle object.
+ */
+public class HyperlinkWidgetStyleFontSizePropertySection extends AbstractSpinnerPropertySection {
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractSpinnerPropertySection#getDefaultLabelText()
+ */
+ @Override
+ protected String getDefaultLabelText() {
+ return "FontSize"; //$NON-NLS-1$
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractSpinnerPropertySection#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.AbstractSpinnerPropertySection#getFeature()
+ */
+ @Override
+ protected EAttribute getFeature() {
+ return PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontSize();
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractSpinnerPropertySection#getFeatureAsInteger()
+ */
+ @Override
+ protected String getFeatureAsText() {
+ String value = new String();
+ if (eObject.eGet(getFeature()) != null) {
+ value = toInteger(eObject.eGet(getFeature()).toString()).toString();
+ }
+ return value;
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractSpinnerPropertySection#isEqual(int)
+ */
+ @Override
+ protected boolean isEqual(String newText) {
+ boolean equal = true;
+ if (toInteger(newText) != null) {
+ equal = getFeatureAsText().equals(toInteger(newText).toString());
+ } else {
+ refresh();
+ }
+ return equal;
+ }
+
+ /**
+ * @see org.eclipse.sirius.properties.editor.properties.sections.AbstractSpinnerPropertySection#getFeatureValue(int)
+ */
+ @Override
+ protected Object getFeatureValue(String newText) {
+ return toInteger(newText);
+ }
+
+ /**
+ * Converts the given text to the integer it represents if applicable.
+ *
+ * @return The integer the given text represents if applicable,
+ * <code>null</code> otherwise.
+ */
+ private Integer toInteger(String text) {
+ Integer integerValue = null;
+ try {
+ integerValue = new Integer(text);
+ } catch (NumberFormatException e) {
+ // Not a Integer
+ }
+ return integerValue;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
+ super.createControls(parent, tabbedPropertySheetPage);
+
+ // Start of user code create controls
+
+ // End of user code create controls
+ }
+}
diff --git a/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkDescription.gif b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkDescription.gif
new file mode 100644
index 0000000000..f8041d2255
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkDescription.gif
Binary files differ
diff --git a/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetConditionalStyle.gif b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetConditionalStyle.gif
new file mode 100644
index 0000000000..48e3cf2268
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetConditionalStyle.gif
Binary files differ
diff --git a/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetStyle.gif b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetStyle.gif
new file mode 100644
index 0000000000..cb1755a712
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/icons/full/obj16/HyperlinkWidgetStyle.gif
Binary files differ
diff --git a/incubation/org.eclipse.sirius.properties.edit/plugin.properties b/incubation/org.eclipse.sirius.properties.edit/plugin.properties
index 41a0774bf6..33aa3dcca2 100644
--- a/incubation/org.eclipse.sirius.properties.edit/plugin.properties
+++ b/incubation/org.eclipse.sirius.properties.edit/plugin.properties
@@ -25,6 +25,9 @@ _UI_GroupDescription_type = Group Description
_UI_ContainerDescription_type = Container Description
_UI_WidgetDescription_type = Widget Description
_UI_TextDescription_type = Text Description
+_UI_HyperlinkDescription_type = Hyperlink Description
+_UI_HyperlinkWidgetStyle_type = Hyperlink Widget Style
+_UI_HyperlinkWidgetConditionalStyle_type = Hyperlink Widget Conditional Style
_UI_Unknown_type = Object
_UI_Unknown_datatype= Value
_UI_ViewExtensionDescription_identifier_feature = Identifier
@@ -98,6 +101,10 @@ _UI_CustomOperation_type = Custom Operation
_UI_CustomDescription_customOperations_feature = Custom Operations
_UI_CustomOperation_identifier_feature = Identifier
_UI_CustomOperation_initialOperation_feature = Initial Operation
+_UI_HyperlinkDescription_valueExpression_feature = Value Expression
+_UI_HyperlinkDescription_initialOperation_feature = Initial Operation
+_UI_HyperlinkDescription_style_feature = Style
+_UI_HyperlinkDescription_conditionalStyles_feature = Conditional Styles
_UI_OperationDescription_initialOperation_feature = Initial Operation
_UI_ValidationSetDescription_type = Validation
_UI_PropertyValidationRule_type = Property Validation Rule
@@ -145,6 +152,10 @@ _UI_LabelWidgetStyle_fontSize_feature = Font Size
_UI_LabelWidgetStyle_backgroundColor_feature = Background Color
_UI_LabelWidgetStyle_foregroundColor_feature = Foreground Color
_UI_LabelWidgetStyle_fontFormat_feature = Font Format
+_UI_HyperlinkWidgetStyle_fontNameExpression_feature = Font Name Expression
+_UI_HyperlinkWidgetStyle_fontSize_feature = Font Size
+_UI_HyperlinkWidgetStyle_backgroundColor_feature = Background Color
+_UI_HyperlinkWidgetStyle_fontFormat_feature = Font Format
_UI_CheckboxWidgetStyle_type = Checkbox Widget Style
_UI_RadioWidgetStyle_type = Radio Widget Style
_UI_ButtonWidgetStyle_type = Button Widget Style
@@ -188,6 +199,7 @@ _UI_CustomWidgetConditionalStyle_style_feature = Style
_UI_WidgetDescription_isEnabledExpression_feature = Is Enabled Expression
_UI_ControlDescription_type = Control Description
_UI_GroupDescription_controls_feature = Controls
+_UI_HyperlinkWidgetConditionalStyle_style_feature = Style
_UI_ControlDescription_identifier_feature = Identifier
_UI_ContainerDescription_controls_feature = Controls
_UI_LayoutDescription_type = Layout Description
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java
index 51f010cb09..3351403244 100644
--- a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/ContainerDescriptionItemProvider.java
@@ -167,6 +167,8 @@ public class ContainerDescriptionItemProvider extends ControlDescriptionItemProv
newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createCustomDescription()));
+ newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createHyperlinkDescription()));
+
newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__LAYOUT, PropertiesFactory.eINSTANCE.createFillLayoutDescription()));
newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.CONTAINER_DESCRIPTION__LAYOUT, PropertiesFactory.eINSTANCE.createGridLayoutDescription()));
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java
index 494b88586e..1160ec54ee 100644
--- a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/DynamicMappingIfItemProvider.java
@@ -187,6 +187,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.createCustomDescription()));
+
+ newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.DYNAMIC_MAPPING_IF__WIDGET, PropertiesFactory.eINSTANCE.createHyperlinkDescription()));
}
/**
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/GroupDescriptionItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/GroupDescriptionItemProvider.java
index 35453c8c9a..c92135cea0 100644
--- a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/GroupDescriptionItemProvider.java
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/GroupDescriptionItemProvider.java
@@ -251,6 +251,8 @@ public class GroupDescriptionItemProvider extends ItemProviderAdapter
newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.GROUP_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createCustomDescription()));
+ newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.GROUP_DESCRIPTION__CONTROLS, PropertiesFactory.eINSTANCE.createHyperlinkDescription()));
+
newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.GROUP_DESCRIPTION__VALIDATION_SET, PropertiesFactory.eINSTANCE.createGroupValidationSetDescription()));
}
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkDescriptionItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkDescriptionItemProvider.java
new file mode 100644
index 0000000000..f7874e732f
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkDescriptionItemProvider.java
@@ -0,0 +1,177 @@
+/**
+ * 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.HyperlinkDescription;
+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.HyperlinkDescription} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class HyperlinkDescriptionItemProvider extends WidgetDescriptionItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public HyperlinkDescriptionItemProvider(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);
+ }
+ 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_HyperlinkDescription_valueExpression_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HyperlinkDescription_valueExpression_feature", "_UI_HyperlinkDescription_type"),
+ PropertiesPackage.Literals.HYPERLINK_DESCRIPTION__VALUE_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.HYPERLINK_DESCRIPTION__INITIAL_OPERATION);
+ childrenFeatures.add(PropertiesPackage.Literals.HYPERLINK_DESCRIPTION__STYLE);
+ childrenFeatures.add(PropertiesPackage.Literals.HYPERLINK_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 HyperlinkDescription.gif. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/HyperlinkDescription"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((HyperlinkDescription) object).getIdentifier();
+ return label == null || label.length() == 0 ? getString("_UI_HyperlinkDescription_type") : getString("_UI_HyperlinkDescription_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to
+ * update any cached children and by creating a viewer notification, which
+ * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HyperlinkDescription.class)) {
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ case PropertiesPackage.HYPERLINK_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.HYPERLINK_DESCRIPTION__INITIAL_OPERATION, ToolFactory.eINSTANCE.createInitialOperation()));
+
+ newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.HYPERLINK_DESCRIPTION__STYLE, PropertiesFactory.eINSTANCE.createHyperlinkWidgetStyle()));
+
+ newChildDescriptors.add(createChildParameter(PropertiesPackage.Literals.HYPERLINK_DESCRIPTION__CONDITIONAL_STYLES, PropertiesFactory.eINSTANCE.createHyperlinkWidgetConditionalStyle()));
+ }
+
+}
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetConditionalStyleItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetConditionalStyleItemProvider.java
new file mode 100644
index 0000000000..0ab502d7b4
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetConditionalStyleItemProvider.java
@@ -0,0 +1,149 @@
+/**
+ * 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.HyperlinkWidgetConditionalStyle;
+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.HyperlinkWidgetConditionalStyle} object.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class HyperlinkWidgetConditionalStyleItemProvider extends WidgetConditionalStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public HyperlinkWidgetConditionalStyleItemProvider(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.HYPERLINK_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 HyperlinkWidgetConditionalStyle.gif. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/HyperlinkWidgetConditionalStyle"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((HyperlinkWidgetConditionalStyle) object).getPreconditionExpression();
+ return label == null || label.length() == 0 ? getString("_UI_HyperlinkWidgetConditionalStyle_type") : getString("_UI_HyperlinkWidgetConditionalStyle_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to
+ * update any cached children and by creating a viewer notification, which
+ * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HyperlinkWidgetConditionalStyle.class)) {
+ case PropertiesPackage.HYPERLINK_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.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE, PropertiesFactory.eINSTANCE.createHyperlinkWidgetStyle()));
+ }
+
+}
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetStyleItemProvider.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetStyleItemProvider.java
new file mode 100644
index 0000000000..454b1c3983
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/HyperlinkWidgetStyleItemProvider.java
@@ -0,0 +1,171 @@
+/**
+ * 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.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.HyperlinkWidgetStyle;
+import org.eclipse.sirius.properties.PropertiesPackage;
+
+/**
+ * This is the item provider adapter for a
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle} object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class HyperlinkWidgetStyleItemProvider extends WidgetStyleItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public HyperlinkWidgetStyleItemProvider(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);
+
+ addFontNameExpressionPropertyDescriptor(object);
+ addFontSizePropertyDescriptor(object);
+ addBackgroundColorPropertyDescriptor(object);
+ addFontFormatPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Font Name Expression feature.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFontNameExpressionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_HyperlinkWidgetStyle_fontNameExpression_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HyperlinkWidgetStyle_fontNameExpression_feature", "_UI_HyperlinkWidgetStyle_type"),
+ PropertiesPackage.Literals.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Font Size feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFontSizePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_HyperlinkWidgetStyle_fontSize_feature"), getString("_UI_PropertyDescriptor_description", "_UI_HyperlinkWidgetStyle_fontSize_feature", "_UI_HyperlinkWidgetStyle_type"),
+ PropertiesPackage.Literals.HYPERLINK_WIDGET_STYLE__FONT_SIZE, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Background Color feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addBackgroundColorPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add(
+ createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_HyperlinkWidgetStyle_backgroundColor_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HyperlinkWidgetStyle_backgroundColor_feature", "_UI_HyperlinkWidgetStyle_type"),
+ PropertiesPackage.Literals.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR, true, false, true, null, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Font Format feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected void addFontFormatPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_HyperlinkWidgetStyle_fontFormat_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HyperlinkWidgetStyle_fontFormat_feature", "_UI_HyperlinkWidgetStyle_type"),
+ PropertiesPackage.Literals.HYPERLINK_WIDGET_STYLE__FONT_FORMAT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This returns HyperlinkWidgetStyle.gif. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/HyperlinkWidgetStyle"));
+ }
+
+ /**
+ * This returns the label text for the adapted class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((HyperlinkWidgetStyle) object).getLabelFontNameExpression();
+ return label == null || label.length() == 0 ? getString("_UI_HyperlinkWidgetStyle_type") : getString("_UI_HyperlinkWidgetStyle_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to
+ * update any cached children and by creating a viewer notification, which
+ * it passes to {@link #fireNotifyChanged}. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HyperlinkWidgetStyle.class)) {
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION:
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE:
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s
+ * describing the children that can be created under this object. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+}
diff --git a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java
index 7712d972e3..5f8cace6d2 100644
--- a/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java
+++ b/incubation/org.eclipse.sirius.properties.edit/src-gen/org/eclipse/sirius/properties/provider/PropertiesItemProviderAdapterFactory.java
@@ -671,6 +671,31 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
/**
* This keeps track of the one adapter used for all
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected HyperlinkDescriptionItemProvider hyperlinkDescriptionItemProvider;
+
+ /**
+ * This creates an adapter for a
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription}. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createHyperlinkDescriptionAdapter() {
+ if (hyperlinkDescriptionItemProvider == null) {
+ hyperlinkDescriptionItemProvider = new HyperlinkDescriptionItemProvider(this);
+ }
+
+ return hyperlinkDescriptionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all
* {@link org.eclipse.sirius.properties.WidgetStyle} instances. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
@@ -871,6 +896,56 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
/**
* This keeps track of the one adapter used for all
+ * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReferenceWidgetStyleItemProvider referenceWidgetStyleItemProvider;
+
+ /**
+ * This creates an adapter for a
+ * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle}. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createReferenceWidgetStyleAdapter() {
+ if (referenceWidgetStyleItemProvider == null) {
+ referenceWidgetStyleItemProvider = new ReferenceWidgetStyleItemProvider(this);
+ }
+
+ return referenceWidgetStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle} instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected HyperlinkWidgetStyleItemProvider hyperlinkWidgetStyleItemProvider;
+
+ /**
+ * This creates an adapter for a
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle}. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Adapter createHyperlinkWidgetStyleAdapter() {
+ if (hyperlinkWidgetStyleItemProvider == null) {
+ hyperlinkWidgetStyleItemProvider = new HyperlinkWidgetStyleItemProvider(this);
+ }
+
+ return hyperlinkWidgetStyleItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all
* {@link org.eclipse.sirius.properties.TextWidgetConditionalStyle}
* instances. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -1096,27 +1171,27 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
/**
* This keeps track of the one adapter used for all
- * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle} instances.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle}
+ * instances. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
- protected ReferenceWidgetStyleItemProvider referenceWidgetStyleItemProvider;
+ protected HyperlinkWidgetConditionalStyleItemProvider hyperlinkWidgetConditionalStyleItemProvider;
/**
* This creates an adapter for a
- * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle}. <!--
- * begin-user-doc --> <!-- end-user-doc -->
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle}.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
@Override
- public Adapter createReferenceWidgetStyleAdapter() {
- if (referenceWidgetStyleItemProvider == null) {
- referenceWidgetStyleItemProvider = new ReferenceWidgetStyleItemProvider(this);
+ public Adapter createHyperlinkWidgetConditionalStyleAdapter() {
+ if (hyperlinkWidgetConditionalStyleItemProvider == null) {
+ hyperlinkWidgetConditionalStyleItemProvider = new HyperlinkWidgetConditionalStyleItemProvider(this);
}
- return referenceWidgetStyleItemProvider;
+ return hyperlinkWidgetConditionalStyleItemProvider;
}
/**
@@ -1292,6 +1367,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
if (customOperationItemProvider != null) {
customOperationItemProvider.dispose();
}
+ if (hyperlinkDescriptionItemProvider != null) {
+ hyperlinkDescriptionItemProvider.dispose();
+ }
if (widgetStyleItemProvider != null) {
widgetStyleItemProvider.dispose();
}
@@ -1319,6 +1397,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
if (referenceWidgetStyleItemProvider != null) {
referenceWidgetStyleItemProvider.dispose();
}
+ if (hyperlinkWidgetStyleItemProvider != null) {
+ hyperlinkWidgetStyleItemProvider.dispose();
+ }
if (textWidgetConditionalStyleItemProvider != null) {
textWidgetConditionalStyleItemProvider.dispose();
}
@@ -1346,6 +1427,9 @@ public class PropertiesItemProviderAdapterFactory extends PropertiesAdapterFacto
if (widgetActionItemProvider != null) {
widgetActionItemProvider.dispose();
}
+ if (hyperlinkWidgetConditionalStyleItemProvider != null) {
+ hyperlinkWidgetConditionalStyleItemProvider.dispose();
+ }
}
/**
diff --git a/incubation/org.eclipse.sirius.properties/model/properties.ecore b/incubation/org.eclipse.sirius.properties/model/properties.ecore
index e7ce8c2c49..a6e5821655 100644
--- a/incubation/org.eclipse.sirius.properties/model/properties.ecore
+++ b/incubation/org.eclipse.sirius.properties/model/properties.ecore
@@ -269,6 +269,16 @@
eType="ecore:EClass ../../org.eclipse.sirius/model/viewpoint.ecore#//description/tool/InitialOperation"
containment="true"/>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HyperlinkDescription" eSuperTypes="#//WidgetDescription">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="valueExpression" eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="initialOperation" lowerBound="1"
+ eType="ecore:EClass ../../org.eclipse.sirius/model/viewpoint.ecore#//description/tool/InitialOperation"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//HyperlinkWidgetStyle"
+ containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="conditionalStyles" upperBound="-1"
+ eType="#//HyperlinkWidgetConditionalStyle" containment="true"/>
+ </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WidgetStyle">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="labelFontNameExpression"
eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/>
@@ -300,6 +310,13 @@
<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="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="fontSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="backgroundColor" eType="ecore:EClass ../../org.eclipse.sirius/model/viewpoint.ecore#//description/ColorDescription"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="fontFormat" upperBound="4"
+ eType="ecore:EEnum ../../org.eclipse.sirius/model/viewpoint.ecore#//FontFormat"/>
+ </eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="WidgetConditionalStyle" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="preconditionExpression"
eType="ecore:EDataType ../../org.eclipse.sirius/model/viewpoint.ecore#//description/InterpretedExpression"/>
@@ -346,4 +363,8 @@
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HyperlinkWidgetConditionalStyle" eSuperTypes="#//WidgetConditionalStyle">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="style" eType="#//HyperlinkWidgetStyle"
+ containment="true"/>
+ </eClassifiers>
</ecore:EPackage>
diff --git a/incubation/org.eclipse.sirius.properties/model/properties.genmodel b/incubation/org.eclipse.sirius.properties/model/properties.genmodel
index fe18030474..9bd80efb72 100644
--- a/incubation/org.eclipse.sirius.properties/model/properties.genmodel
+++ b/incubation/org.eclipse.sirius.properties/model/properties.genmodel
@@ -149,6 +149,12 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//CustomOperation/identifier"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//CustomOperation/initialOperation"/>
</genClasses>
+ <genClasses ecoreClass="properties.ecore#//HyperlinkDescription">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkDescription/valueExpression"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//HyperlinkDescription/initialOperation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//HyperlinkDescription/style"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//HyperlinkDescription/conditionalStyles"/>
+ </genClasses>
<genClasses ecoreClass="properties.ecore#//WidgetStyle">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//WidgetStyle/labelFontNameExpression"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//WidgetStyle/labelFontSize"/>
@@ -176,6 +182,12 @@
<genClasses ecoreClass="properties.ecore#//SelectWidgetStyle"/>
<genClasses ecoreClass="properties.ecore#//CustomWidgetStyle"/>
<genClasses ecoreClass="properties.ecore#//ReferenceWidgetStyle"/>
+ <genClasses ecoreClass="properties.ecore#//HyperlinkWidgetStyle">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkWidgetStyle/fontNameExpression"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkWidgetStyle/fontSize"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference properties.ecore#//HyperlinkWidgetStyle/backgroundColor"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//HyperlinkWidgetStyle/fontFormat"/>
+ </genClasses>
<genClasses image="false" ecoreClass="properties.ecore#//WidgetConditionalStyle">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//WidgetConditionalStyle/preconditionExpression"/>
</genClasses>
@@ -207,5 +219,8 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute properties.ecore#//WidgetAction/labelExpression"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//WidgetAction/initialOperation"/>
</genClasses>
+ <genClasses ecoreClass="properties.ecore#//HyperlinkWidgetConditionalStyle">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference properties.ecore#//HyperlinkWidgetConditionalStyle/style"/>
+ </genClasses>
</genPackages>
</genmodel:GenModel>
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkDescription.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkDescription.java
new file mode 100644
index 0000000000..7f69056108
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkDescription.java
@@ -0,0 +1,155 @@
+/**
+ * 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>Hyperlink Description</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#getValueExpression
+ * <em>Value Expression</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#getInitialOperation
+ * <em>Initial Operation</em>}</li>
+ * <li>{@link org.eclipse.sirius.properties.HyperlinkDescription#getStyle
+ * <em>Style</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#getConditionalStyles
+ * <em>Conditional Styles</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkDescription()
+ * @model
+ * @generated
+ */
+public interface HyperlinkDescription extends WidgetDescription {
+ /**
+ * Returns the value of the '<em><b>Value Expression</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value Expression</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Value Expression</em>' attribute.
+ * @see #setValueExpression(String)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkDescription_ValueExpression()
+ * @model dataType=
+ * "org.eclipse.sirius.viewpoint.description.InterpretedExpression"
+ * @generated
+ */
+ String getValueExpression();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#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>Initial Operation</b></em>' containment
+ * reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Initial Operation</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>Initial Operation</em>' containment
+ * reference.
+ * @see #setInitialOperation(InitialOperation)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkDescription_InitialOperation()
+ * @model containment="true" required="true"
+ * @generated
+ */
+ InitialOperation getInitialOperation();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#getInitialOperation
+ * <em>Initial Operation</em>}' containment reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Initial Operation</em>' containment
+ * reference.
+ * @see #getInitialOperation()
+ * @generated
+ */
+ void setInitialOperation(InitialOperation value);
+
+ /**
+ * 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(HyperlinkWidgetStyle)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkDescription_Style()
+ * @model containment="true"
+ * @generated
+ */
+ HyperlinkWidgetStyle getStyle();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#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(HyperlinkWidgetStyle 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.HyperlinkWidgetConditionalStyle}.
+ * <!-- 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#getHyperlinkDescription_ConditionalStyles()
+ * @model containment="true"
+ * @generated
+ */
+ EList<HyperlinkWidgetConditionalStyle> getConditionalStyles();
+
+} // HyperlinkDescription
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetConditionalStyle.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetConditionalStyle.java
new file mode 100644
index 0000000000..4f645ab6c9
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetConditionalStyle.java
@@ -0,0 +1,62 @@
+/**
+ * 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>Hyperlink Widget Conditional Style</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle#getStyle
+ * <em>Style</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetConditionalStyle()
+ * @model
+ * @generated
+ */
+public interface HyperlinkWidgetConditionalStyle 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(HyperlinkWidgetStyle)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetConditionalStyle_Style()
+ * @model containment="true"
+ * @generated
+ */
+ HyperlinkWidgetStyle getStyle();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle#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(HyperlinkWidgetStyle value);
+
+} // HyperlinkWidgetConditionalStyle
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetStyle.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetStyle.java
new file mode 100644
index 0000000000..76dc538ed2
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/HyperlinkWidgetStyle.java
@@ -0,0 +1,155 @@
+/**
+ * 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.FontFormat;
+import org.eclipse.sirius.viewpoint.description.ColorDescription;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '
+ * <em><b>Hyperlink Widget Style</b></em>'. <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontNameExpression
+ * <em>Font Name Expression</em>}</li>
+ * <li>{@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontSize
+ * <em>Font Size</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getBackgroundColor
+ * <em>Background Color</em>}</li>
+ * <li>{@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontFormat
+ * <em>Font Format</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetStyle()
+ * @model
+ * @generated
+ */
+public interface HyperlinkWidgetStyle extends WidgetStyle {
+ /**
+ * Returns the value of the '<em><b>Font Name Expression</b></em>'
+ * attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Font Name Expression</em>' attribute isn't
+ * clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Font Name Expression</em>' attribute.
+ * @see #setFontNameExpression(String)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetStyle_FontNameExpression()
+ * @model dataType=
+ * "org.eclipse.sirius.viewpoint.description.InterpretedExpression"
+ * @generated
+ */
+ String getFontNameExpression();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontNameExpression
+ * <em>Font Name Expression</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Font Name Expression</em>'
+ * attribute.
+ * @see #getFontNameExpression()
+ * @generated
+ */
+ void setFontNameExpression(String value);
+
+ /**
+ * Returns the value of the '<em><b>Font Size</b></em>' attribute. <!--
+ * begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Font Size</em>' attribute isn't clear, there
+ * really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Font Size</em>' attribute.
+ * @see #setFontSize(int)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetStyle_FontSize()
+ * @model
+ * @generated
+ */
+ int getFontSize();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontSize
+ * <em>Font Size</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @param value
+ * the new value of the '<em>Font Size</em>' attribute.
+ * @see #getFontSize()
+ * @generated
+ */
+ void setFontSize(int value);
+
+ /**
+ * Returns the value of the '<em><b>Background Color</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Background Color</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Background Color</em>' reference.
+ * @see #setBackgroundColor(ColorDescription)
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetStyle_BackgroundColor()
+ * @model
+ * @generated
+ */
+ ColorDescription getBackgroundColor();
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getBackgroundColor
+ * <em>Background Color</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Background Color</em>' reference.
+ * @see #getBackgroundColor()
+ * @generated
+ */
+ void setBackgroundColor(ColorDescription value);
+
+ /**
+ * Returns the value of the '<em><b>Font Format</b></em>' attribute list.
+ * The list contents are of type
+ * {@link org.eclipse.sirius.viewpoint.FontFormat}. The literals are from
+ * the enumeration {@link org.eclipse.sirius.viewpoint.FontFormat}. <!--
+ * begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Font Format</em>' attribute list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Font Format</em>' attribute list.
+ * @see org.eclipse.sirius.viewpoint.FontFormat
+ * @see org.eclipse.sirius.properties.PropertiesPackage#getHyperlinkWidgetStyle_FontFormat()
+ * @model upper="4"
+ * @generated
+ */
+ EList<FontFormat> getFontFormat();
+
+} // HyperlinkWidgetStyle
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java
index c910d628d4..86b75edfe0 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesFactory.java
@@ -238,6 +238,15 @@ public interface PropertiesFactory extends EFactory {
CustomOperation createCustomOperation();
/**
+ * Returns a new object of class '<em>Hyperlink Description</em>'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Hyperlink Description</em>'.
+ * @generated
+ */
+ HyperlinkDescription createHyperlinkDescription();
+
+ /**
* Returns a new object of class '<em>Widget Style</em>'. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
@@ -310,6 +319,24 @@ public interface PropertiesFactory extends EFactory {
CustomWidgetStyle createCustomWidgetStyle();
/**
+ * Returns a new object of class '<em>Reference Widget Style</em>'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Reference Widget Style</em>'.
+ * @generated
+ */
+ ReferenceWidgetStyle createReferenceWidgetStyle();
+
+ /**
+ * Returns a new object of class '<em>Hyperlink Widget Style</em>'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Hyperlink Widget Style</em>'.
+ * @generated
+ */
+ HyperlinkWidgetStyle createHyperlinkWidgetStyle();
+
+ /**
* Returns a new object of class '<em>Text Widget Conditional Style</em>'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -394,13 +421,15 @@ public interface PropertiesFactory extends EFactory {
WidgetAction createWidgetAction();
/**
- * Returns a new object of class '<em>Reference Widget Style</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
+ * Returns a new object of class '
+ * <em>Hyperlink Widget Conditional Style</em>'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
*
- * @return a new object of class '<em>Reference Widget Style</em>'.
+ * @return a new object of class '
+ * <em>Hyperlink Widget Conditional Style</em>'.
* @generated
*/
- ReferenceWidgetStyle createReferenceWidgetStyle();
+ HyperlinkWidgetConditionalStyle createHyperlinkWidgetConditionalStyle();
/**
* Returns the package supported by this factory. <!-- begin-user-doc -->
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java
index 5a78841cfa..35f074fafc 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/PropertiesPackage.java
@@ -1788,6 +1788,99 @@ public interface PropertiesPackage extends EPackage {
/**
* The meta object id for the '
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl
+ * <em>Hyperlink Description</em>}' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkDescription()
+ * @generated
+ */
+ int HYPERLINK_DESCRIPTION = 26;
+
+ /**
+ * The feature id for the '<em><b>Identifier</b></em>' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_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 HYPERLINK_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 HYPERLINK_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 HYPERLINK_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 HYPERLINK_DESCRIPTION__VALUE_EXPRESSION = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Initial Operation</b></em>' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_DESCRIPTION__INITIAL_OPERATION = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Style</b></em>' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_DESCRIPTION__STYLE = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Conditional Styles</b></em>' containment
+ * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_DESCRIPTION__CONDITIONAL_STYLES = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 3;
+
+ /**
+ * The number of structural features of the '<em>Hyperlink Description</em>'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_DESCRIPTION_FEATURE_COUNT = PropertiesPackage.WIDGET_DESCRIPTION_FEATURE_COUNT + 4;
+
+ /**
+ * The meta object id for the '
* {@link org.eclipse.sirius.properties.impl.WidgetStyleImpl
* <em>Widget Style</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc
* -->
@@ -1796,7 +1889,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetStyle()
* @generated
*/
- int WIDGET_STYLE = 26;
+ int WIDGET_STYLE = 27;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -1862,7 +1955,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getTextWidgetStyle()
* @generated
*/
- int TEXT_WIDGET_STYLE = 27;
+ int TEXT_WIDGET_STYLE = 28;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -1973,7 +2066,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getLabelWidgetStyle()
* @generated
*/
- int LABEL_WIDGET_STYLE = 28;
+ int LABEL_WIDGET_STYLE = 29;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2084,7 +2177,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCheckboxWidgetStyle()
* @generated
*/
- int CHECKBOX_WIDGET_STYLE = 29;
+ int CHECKBOX_WIDGET_STYLE = 30;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2150,7 +2243,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getRadioWidgetStyle()
* @generated
*/
- int RADIO_WIDGET_STYLE = 30;
+ int RADIO_WIDGET_STYLE = 31;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2216,7 +2309,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getButtonWidgetStyle()
* @generated
*/
- int BUTTON_WIDGET_STYLE = 31;
+ int BUTTON_WIDGET_STYLE = 32;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2282,7 +2375,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getSelectWidgetStyle()
* @generated
*/
- int SELECT_WIDGET_STYLE = 32;
+ int SELECT_WIDGET_STYLE = 33;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2348,7 +2441,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomWidgetStyle()
* @generated
*/
- int CUSTOM_WIDGET_STYLE = 33;
+ int CUSTOM_WIDGET_STYLE = 34;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2414,7 +2507,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetConditionalStyle()
* @generated
*/
- int WIDGET_CONDITIONAL_STYLE = 35;
+ int WIDGET_CONDITIONAL_STYLE = 37;
/**
* The meta object id for the '
@@ -2426,7 +2519,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getTextWidgetConditionalStyle()
* @generated
*/
- int TEXT_WIDGET_CONDITIONAL_STYLE = 36;
+ int TEXT_WIDGET_CONDITIONAL_STYLE = 38;
/**
* The meta object id for the '
@@ -2438,7 +2531,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getLabelWidgetConditionalStyle()
* @generated
*/
- int LABEL_WIDGET_CONDITIONAL_STYLE = 37;
+ int LABEL_WIDGET_CONDITIONAL_STYLE = 39;
/**
* The meta object id for the '
@@ -2450,7 +2543,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCheckboxWidgetConditionalStyle()
* @generated
*/
- int CHECKBOX_WIDGET_CONDITIONAL_STYLE = 38;
+ int CHECKBOX_WIDGET_CONDITIONAL_STYLE = 40;
/**
* The meta object id for the '
@@ -2462,7 +2555,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getRadioWidgetConditionalStyle()
* @generated
*/
- int RADIO_WIDGET_CONDITIONAL_STYLE = 39;
+ int RADIO_WIDGET_CONDITIONAL_STYLE = 41;
/**
* The meta object id for the '
@@ -2474,7 +2567,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getButtonWidgetConditionalStyle()
* @generated
*/
- int BUTTON_WIDGET_CONDITIONAL_STYLE = 40;
+ int BUTTON_WIDGET_CONDITIONAL_STYLE = 42;
/**
* The meta object id for the '
@@ -2486,7 +2579,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getSelectWidgetConditionalStyle()
* @generated
*/
- int SELECT_WIDGET_CONDITIONAL_STYLE = 41;
+ int SELECT_WIDGET_CONDITIONAL_STYLE = 43;
/**
* The meta object id for the '
@@ -2498,7 +2591,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getCustomWidgetConditionalStyle()
* @generated
*/
- int CUSTOM_WIDGET_CONDITIONAL_STYLE = 42;
+ int CUSTOM_WIDGET_CONDITIONAL_STYLE = 44;
/**
* The meta object id for the '
@@ -2510,7 +2603,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getReferenceWidgetConditionalStyle()
* @generated
*/
- int REFERENCE_WIDGET_CONDITIONAL_STYLE = 43;
+ int REFERENCE_WIDGET_CONDITIONAL_STYLE = 45;
/**
* The meta object id for the '
@@ -2522,7 +2615,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getWidgetAction()
* @generated
*/
- int WIDGET_ACTION = 44;
+ int WIDGET_ACTION = 46;
/**
* The meta object id for the '
@@ -2534,7 +2627,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getReferenceWidgetStyle()
* @generated
*/
- int REFERENCE_WIDGET_STYLE = 34;
+ int REFERENCE_WIDGET_STYLE = 35;
/**
* The feature id for the '<em><b>Label Font Name Expression</b></em>'
@@ -2591,6 +2684,108 @@ public interface PropertiesPackage extends EPackage {
int REFERENCE_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 -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetStyle()
+ * @generated
+ */
+ int HYPERLINK_WIDGET_STYLE = 36;
+
+ /**
+ * The feature id for the '<em><b>Label Font Name Expression</b></em>'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION = PropertiesPackage.WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION;
+
+ /**
+ * The feature id for the '<em><b>Label Font Size</b></em>' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__LABEL_FONT_SIZE = PropertiesPackage.WIDGET_STYLE__LABEL_FONT_SIZE;
+
+ /**
+ * The feature id for the '<em><b>Label Background Color</b></em>'
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_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 HYPERLINK_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 HYPERLINK_WIDGET_STYLE__LABEL_FONT_FORMAT = PropertiesPackage.WIDGET_STYLE__LABEL_FONT_FORMAT;
+
+ /**
+ * The feature id for the '<em><b>Font Name Expression</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Font Size</b></em>' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__FONT_SIZE = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Background Color</b></em>' reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Font Format</b></em>' attribute list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE__FONT_FORMAT = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 3;
+
+ /**
+ * The number of structural features of the '<em>Hyperlink Widget Style</em>
+ * ' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_STYLE_FEATURE_COUNT = PropertiesPackage.WIDGET_STYLE_FEATURE_COUNT + 4;
+
+ /**
* The feature id for the '<em><b>Precondition Expression</b></em>'
* attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -2862,6 +3057,46 @@ public interface PropertiesPackage extends EPackage {
/**
* The meta object id for the '
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetConditionalStyleImpl
+ * <em>Hyperlink Widget Conditional Style</em>}' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkWidgetConditionalStyleImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetConditionalStyle()
+ * @generated
+ */
+ int HYPERLINK_WIDGET_CONDITIONAL_STYLE = 47;
+
+ /**
+ * The feature id for the '<em><b>Precondition Expression</b></em>'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_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 HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE = PropertiesPackage.WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '
+ * <em>Hyperlink Widget Conditional Style</em>' class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int HYPERLINK_WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT = PropertiesPackage.WIDGET_CONDITIONAL_STYLE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '
* {@link org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION
* <em>FILL LAYOUT ORIENTATION</em>}' enum. <!-- begin-user-doc --> <!--
* end-user-doc -->
@@ -2870,7 +3105,7 @@ public interface PropertiesPackage extends EPackage {
* @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getFILL_LAYOUT_ORIENTATION()
* @generated
*/
- int FILL_LAYOUT_ORIENTATION = 45;
+ int FILL_LAYOUT_ORIENTATION = 48;
/**
* Returns the meta object for class '
@@ -4248,6 +4483,71 @@ public interface PropertiesPackage extends EPackage {
/**
* Returns the meta object for class '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription
+ * <em>Hyperlink Description</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for class '<em>Hyperlink Description</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkDescription
+ * @generated
+ */
+ EClass getHyperlinkDescription();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#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.HyperlinkDescription#getValueExpression()
+ * @see #getHyperlinkDescription()
+ * @generated
+ */
+ EAttribute getHyperlinkDescription_ValueExpression();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#getInitialOperation
+ * <em>Initial Operation</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return the meta object for the containment reference '
+ * <em>Initial Operation</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkDescription#getInitialOperation()
+ * @see #getHyperlinkDescription()
+ * @generated
+ */
+ EReference getHyperlinkDescription_InitialOperation();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#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.HyperlinkDescription#getStyle()
+ * @see #getHyperlinkDescription()
+ * @generated
+ */
+ EReference getHyperlinkDescription_Style();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription#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.HyperlinkDescription#getConditionalStyles()
+ * @see #getHyperlinkDescription()
+ * @generated
+ */
+ EReference getHyperlinkDescription_ConditionalStyles();
+
+ /**
+ * Returns the meta object for class '
* {@link org.eclipse.sirius.properties.WidgetStyle <em>Widget Style</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -4803,6 +5103,31 @@ public interface PropertiesPackage extends EPackage {
/**
* Returns the meta object for class '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle
+ * <em>Hyperlink Widget Conditional Style</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for class '
+ * <em>Hyperlink Widget Conditional Style</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle
+ * @generated
+ */
+ EClass getHyperlinkWidgetConditionalStyle();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle#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.HyperlinkWidgetConditionalStyle#getStyle()
+ * @see #getHyperlinkWidgetConditionalStyle()
+ * @generated
+ */
+ EReference getHyperlinkWidgetConditionalStyle_Style();
+
+ /**
+ * Returns the meta object for class '
* {@link org.eclipse.sirius.properties.ReferenceWidgetStyle
* <em>Reference Widget Style</em>}'. <!-- begin-user-doc --> <!--
* end-user-doc -->
@@ -4814,6 +5139,69 @@ public interface PropertiesPackage extends EPackage {
EClass getReferenceWidgetStyle();
/**
+ * Returns the meta object for class '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle
+ * <em>Hyperlink Widget Style</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for class '<em>Hyperlink Widget Style</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetStyle
+ * @generated
+ */
+ EClass getHyperlinkWidgetStyle();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontNameExpression
+ * <em>Font Name Expression</em>}'. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Font Name Expression</em>
+ * '.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontNameExpression()
+ * @see #getHyperlinkWidgetStyle()
+ * @generated
+ */
+ EAttribute getHyperlinkWidgetStyle_FontNameExpression();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontSize
+ * <em>Font Size</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Font Size</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontSize()
+ * @see #getHyperlinkWidgetStyle()
+ * @generated
+ */
+ EAttribute getHyperlinkWidgetStyle_FontSize();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getBackgroundColor
+ * <em>Background Color</em>}'. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @return the meta object for the reference '<em>Background Color</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetStyle#getBackgroundColor()
+ * @see #getHyperlinkWidgetStyle()
+ * @generated
+ */
+ EReference getHyperlinkWidgetStyle_BackgroundColor();
+
+ /**
+ * Returns the meta object for the attribute list '
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontFormat
+ * <em>Font Format</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Font Format</em>'.
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetStyle#getFontFormat()
+ * @see #getHyperlinkWidgetStyle()
+ * @generated
+ */
+ EAttribute getHyperlinkWidgetStyle_FontFormat();
+
+ /**
* Returns the meta object for enum '
* {@link org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION
* <em>FILL LAYOUT ORIENTATION</em>}'. <!-- begin-user-doc --> <!--
@@ -5847,6 +6235,52 @@ public interface PropertiesPackage extends EPackage {
/**
* The meta object literal for the '
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl
+ * <em>Hyperlink Description</em>}' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkDescription()
+ * @generated
+ */
+ EClass HYPERLINK_DESCRIPTION = PropertiesPackage.eINSTANCE.getHyperlinkDescription();
+
+ /**
+ * The meta object literal for the '<em><b>Value Expression</b></em>'
+ * attribute feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute HYPERLINK_DESCRIPTION__VALUE_EXPRESSION = PropertiesPackage.eINSTANCE.getHyperlinkDescription_ValueExpression();
+
+ /**
+ * The meta object literal for the '<em><b>Initial Operation</b></em>'
+ * containment reference feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EReference HYPERLINK_DESCRIPTION__INITIAL_OPERATION = PropertiesPackage.eINSTANCE.getHyperlinkDescription_InitialOperation();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment
+ * reference feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference HYPERLINK_DESCRIPTION__STYLE = PropertiesPackage.eINSTANCE.getHyperlinkDescription_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 HYPERLINK_DESCRIPTION__CONDITIONAL_STYLES = PropertiesPackage.eINSTANCE.getHyperlinkDescription_ConditionalStyles();
+
+ /**
+ * The meta object literal for the '
* {@link org.eclipse.sirius.properties.impl.WidgetStyleImpl
* <em>Widget Style</em>}' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
@@ -6276,6 +6710,26 @@ public interface PropertiesPackage extends EPackage {
/**
* The meta object literal for the '
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetConditionalStyleImpl
+ * <em>Hyperlink Widget Conditional Style</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkWidgetConditionalStyleImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetConditionalStyle()
+ * @generated
+ */
+ EClass HYPERLINK_WIDGET_CONDITIONAL_STYLE = PropertiesPackage.eINSTANCE.getHyperlinkWidgetConditionalStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Style</b></em>' containment
+ * reference feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE = PropertiesPackage.eINSTANCE.getHyperlinkWidgetConditionalStyle_Style();
+
+ /**
+ * The meta object literal for the '
* {@link org.eclipse.sirius.properties.impl.ReferenceWidgetStyleImpl
* <em>Reference Widget Style</em>}' class. <!-- begin-user-doc --> <!--
* end-user-doc -->
@@ -6288,6 +6742,50 @@ public interface PropertiesPackage extends EPackage {
/**
* 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 -->
+ *
+ * @see org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl
+ * @see org.eclipse.sirius.properties.impl.PropertiesPackageImpl#getHyperlinkWidgetStyle()
+ * @generated
+ */
+ EClass HYPERLINK_WIDGET_STYLE = PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle();
+
+ /**
+ * The meta object literal for the '<em><b>Font Name Expression</b></em>
+ * ' attribute feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION = PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontNameExpression();
+
+ /**
+ * The meta object literal for the '<em><b>Font Size</b></em>' attribute
+ * feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute HYPERLINK_WIDGET_STYLE__FONT_SIZE = PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontSize();
+
+ /**
+ * The meta object literal for the '<em><b>Background Color</b></em>'
+ * reference feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR = PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_BackgroundColor();
+
+ /**
+ * The meta object literal for the '<em><b>Font Format</b></em>'
+ * attribute list feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute HYPERLINK_WIDGET_STYLE__FONT_FORMAT = PropertiesPackage.eINSTANCE.getHyperlinkWidgetStyle_FontFormat();
+
+ /**
+ * The meta object literal for the '
* {@link org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION
* <em>FILL LAYOUT ORIENTATION</em>}' enum. <!-- begin-user-doc --> <!--
* end-user-doc -->
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkDescriptionImpl.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkDescriptionImpl.java
new file mode 100644
index 0000000000..9b8d204dac
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkDescriptionImpl.java
@@ -0,0 +1,396 @@
+/**
+ * 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.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+import org.eclipse.sirius.properties.PropertiesPackage;
+import org.eclipse.sirius.viewpoint.description.tool.InitialOperation;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '
+ * <em><b>Hyperlink Description</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl#getValueExpression
+ * <em>Value Expression</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl#getInitialOperation
+ * <em>Initial Operation</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl#getStyle
+ * <em>Style</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkDescriptionImpl#getConditionalStyles
+ * <em>Conditional Styles</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class HyperlinkDescriptionImpl extends WidgetDescriptionImpl implements HyperlinkDescription {
+ /**
+ * 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 = HyperlinkDescriptionImpl.VALUE_EXPRESSION_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getInitialOperation()
+ * <em>Initial Operation</em>}' containment reference. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getInitialOperation()
+ * @generated
+ * @ordered
+ */
+ protected InitialOperation initialOperation;
+
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected HyperlinkWidgetStyle 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<HyperlinkWidgetConditionalStyle> conditionalStyles;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected HyperlinkDescriptionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PropertiesPackage.Literals.HYPERLINK_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.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION, oldValueExpression, valueExpression));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public InitialOperation getInitialOperation() {
+ return initialOperation;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetInitialOperation(InitialOperation newInitialOperation, NotificationChain msgs) {
+ InitialOperation oldInitialOperation = initialOperation;
+ initialOperation = newInitialOperation;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION, oldInitialOperation, newInitialOperation);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setInitialOperation(InitialOperation newInitialOperation) {
+ if (newInitialOperation != initialOperation) {
+ NotificationChain msgs = null;
+ if (initialOperation != null) {
+ msgs = ((InternalEObject) initialOperation).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION, null, msgs);
+ }
+ if (newInitialOperation != null) {
+ msgs = ((InternalEObject) newInitialOperation).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION, null, msgs);
+ }
+ msgs = basicSetInitialOperation(newInitialOperation, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION, newInitialOperation, newInitialOperation));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public HyperlinkWidgetStyle getStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(HyperlinkWidgetStyle newStyle, NotificationChain msgs) {
+ HyperlinkWidgetStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_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(HyperlinkWidgetStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE, null, msgs);
+ }
+ msgs = basicSetStyle(newStyle, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE, newStyle, newStyle));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EList<HyperlinkWidgetConditionalStyle> getConditionalStyles() {
+ if (conditionalStyles == null) {
+ conditionalStyles = new EObjectContainmentEList<HyperlinkWidgetConditionalStyle>(HyperlinkWidgetConditionalStyle.class, this, PropertiesPackage.HYPERLINK_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.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ return basicSetInitialOperation(null, msgs);
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ return basicSetStyle(null, msgs);
+ case PropertiesPackage.HYPERLINK_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.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION:
+ return getValueExpression();
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ return getInitialOperation();
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ return getStyle();
+ case PropertiesPackage.HYPERLINK_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.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION:
+ setValueExpression((String) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ setInitialOperation((InitialOperation) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ setStyle((HyperlinkWidgetStyle) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__CONDITIONAL_STYLES:
+ getConditionalStyles().clear();
+ getConditionalStyles().addAll((Collection<? extends HyperlinkWidgetConditionalStyle>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION:
+ setValueExpression(HyperlinkDescriptionImpl.VALUE_EXPRESSION_EDEFAULT);
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ setInitialOperation((InitialOperation) null);
+ return;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ setStyle((HyperlinkWidgetStyle) null);
+ return;
+ case PropertiesPackage.HYPERLINK_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.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION:
+ return HyperlinkDescriptionImpl.VALUE_EXPRESSION_EDEFAULT == null ? valueExpression != null : !HyperlinkDescriptionImpl.VALUE_EXPRESSION_EDEFAULT.equals(valueExpression);
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION:
+ return initialOperation != null;
+ case PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE:
+ return style != null;
+ case PropertiesPackage.HYPERLINK_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: ");
+ result.append(valueExpression);
+ result.append(')');
+ return result.toString();
+ }
+
+} // HyperlinkDescriptionImpl
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetConditionalStyleImpl.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetConditionalStyleImpl.java
new file mode 100644
index 0000000000..3067aa653f
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetConditionalStyleImpl.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.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+import org.eclipse.sirius.properties.PropertiesPackage;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '
+ * <em><b>Hyperlink Widget Conditional Style</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetConditionalStyleImpl#getStyle
+ * <em>Style</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class HyperlinkWidgetConditionalStyleImpl extends WidgetConditionalStyleImpl implements HyperlinkWidgetConditionalStyle {
+ /**
+ * The cached value of the '{@link #getStyle() <em>Style</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getStyle()
+ * @generated
+ * @ordered
+ */
+ protected HyperlinkWidgetStyle style;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected HyperlinkWidgetConditionalStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PropertiesPackage.Literals.HYPERLINK_WIDGET_CONDITIONAL_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public HyperlinkWidgetStyle getStyle() {
+ return style;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetStyle(HyperlinkWidgetStyle newStyle, NotificationChain msgs) {
+ HyperlinkWidgetStyle oldStyle = style;
+ style = newStyle;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_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(HyperlinkWidgetStyle newStyle) {
+ if (newStyle != style) {
+ NotificationChain msgs = null;
+ if (style != null) {
+ msgs = ((InternalEObject) style).eInverseRemove(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE, null, msgs);
+ }
+ if (newStyle != null) {
+ msgs = ((InternalEObject) newStyle).eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - PropertiesPackage.HYPERLINK_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.HYPERLINK_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.HYPERLINK_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.HYPERLINK_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.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE:
+ setStyle((HyperlinkWidgetStyle) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE:
+ setStyle((HyperlinkWidgetStyle) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE:
+ return style != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} // HyperlinkWidgetConditionalStyleImpl
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetStyleImpl.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetStyleImpl.java
new file mode 100644
index 0000000000..8594b2d499
--- /dev/null
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/HyperlinkWidgetStyleImpl.java
@@ -0,0 +1,351 @@
+/**
+ * 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.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.EDataTypeUniqueEList;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
+import org.eclipse.sirius.properties.PropertiesPackage;
+import org.eclipse.sirius.viewpoint.FontFormat;
+import org.eclipse.sirius.viewpoint.description.ColorDescription;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '
+ * <em><b>Hyperlink Widget Style</b></em>'. <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl#getFontNameExpression
+ * <em>Font Name Expression</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl#getFontSize
+ * <em>Font Size</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl#getBackgroundColor
+ * <em>Background Color</em>}</li>
+ * <li>
+ * {@link org.eclipse.sirius.properties.impl.HyperlinkWidgetStyleImpl#getFontFormat
+ * <em>Font Format</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class HyperlinkWidgetStyleImpl extends WidgetStyleImpl implements HyperlinkWidgetStyle {
+ /**
+ * The default value of the '{@link #getFontNameExpression()
+ * <em>Font Name Expression</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFontNameExpression()
+ * @generated
+ * @ordered
+ */
+ protected static final String FONT_NAME_EXPRESSION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFontNameExpression()
+ * <em>Font Name Expression</em>}' attribute. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getFontNameExpression()
+ * @generated
+ * @ordered
+ */
+ protected String fontNameExpression = HyperlinkWidgetStyleImpl.FONT_NAME_EXPRESSION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFontSize() <em>Font Size</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getFontSize()
+ * @generated
+ * @ordered
+ */
+ protected static final int FONT_SIZE_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getFontSize() <em>Font Size</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getFontSize()
+ * @generated
+ * @ordered
+ */
+ protected int fontSize = HyperlinkWidgetStyleImpl.FONT_SIZE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getBackgroundColor()
+ * <em>Background Color</em>}' reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getBackgroundColor()
+ * @generated
+ * @ordered
+ */
+ protected ColorDescription backgroundColor;
+
+ /**
+ * The cached value of the '{@link #getFontFormat() <em>Font Format</em>}'
+ * attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getFontFormat()
+ * @generated
+ * @ordered
+ */
+ protected EList<FontFormat> fontFormat;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected HyperlinkWidgetStyleImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return PropertiesPackage.Literals.HYPERLINK_WIDGET_STYLE;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String getFontNameExpression() {
+ return fontNameExpression;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setFontNameExpression(String newFontNameExpression) {
+ String oldFontNameExpression = fontNameExpression;
+ fontNameExpression = newFontNameExpression;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION, oldFontNameExpression, fontNameExpression));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public int getFontSize() {
+ return fontSize;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setFontSize(int newFontSize) {
+ int oldFontSize = fontSize;
+ fontSize = newFontSize;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE, oldFontSize, fontSize));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public ColorDescription getBackgroundColor() {
+ if (backgroundColor != null && backgroundColor.eIsProxy()) {
+ InternalEObject oldBackgroundColor = (InternalEObject) backgroundColor;
+ backgroundColor = (ColorDescription) eResolveProxy(oldBackgroundColor);
+ if (backgroundColor != oldBackgroundColor) {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR, oldBackgroundColor, backgroundColor));
+ }
+ }
+ }
+ return backgroundColor;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ColorDescription basicGetBackgroundColor() {
+ return backgroundColor;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void setBackgroundColor(ColorDescription newBackgroundColor) {
+ ColorDescription oldBackgroundColor = backgroundColor;
+ backgroundColor = newBackgroundColor;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR, oldBackgroundColor, backgroundColor));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EList<FontFormat> getFontFormat() {
+ if (fontFormat == null) {
+ fontFormat = new EDataTypeUniqueEList<FontFormat>(FontFormat.class, this, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT);
+ }
+ return fontFormat;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION:
+ return getFontNameExpression();
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE:
+ return getFontSize();
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR:
+ if (resolve) {
+ return getBackgroundColor();
+ }
+ return basicGetBackgroundColor();
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT:
+ return getFontFormat();
+ }
+ 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.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION:
+ setFontNameExpression((String) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE:
+ setFontSize((Integer) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR:
+ setBackgroundColor((ColorDescription) newValue);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT:
+ getFontFormat().clear();
+ getFontFormat().addAll((Collection<? extends FontFormat>) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION:
+ setFontNameExpression(HyperlinkWidgetStyleImpl.FONT_NAME_EXPRESSION_EDEFAULT);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE:
+ setFontSize(HyperlinkWidgetStyleImpl.FONT_SIZE_EDEFAULT);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR:
+ setBackgroundColor((ColorDescription) null);
+ return;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT:
+ getFontFormat().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_NAME_EXPRESSION:
+ return HyperlinkWidgetStyleImpl.FONT_NAME_EXPRESSION_EDEFAULT == null ? fontNameExpression != null : !HyperlinkWidgetStyleImpl.FONT_NAME_EXPRESSION_EDEFAULT.equals(fontNameExpression);
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_SIZE:
+ return fontSize != HyperlinkWidgetStyleImpl.FONT_SIZE_EDEFAULT;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR:
+ return backgroundColor != null;
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT:
+ return fontFormat != null && !fontFormat.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(" (fontNameExpression: ");
+ result.append(fontNameExpression);
+ result.append(", fontSize: ");
+ result.append(fontSize);
+ result.append(", fontFormat: ");
+ result.append(fontFormat);
+ result.append(')');
+ return result.toString();
+ }
+
+} // HyperlinkWidgetStyleImpl
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java
index b27dacfd5f..e5d9ce4139 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesFactoryImpl.java
@@ -36,6 +36,9 @@ import org.eclipse.sirius.properties.FillLayoutDescription;
import org.eclipse.sirius.properties.GridLayoutDescription;
import org.eclipse.sirius.properties.GroupDescription;
import org.eclipse.sirius.properties.GroupValidationSetDescription;
+import org.eclipse.sirius.properties.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
import org.eclipse.sirius.properties.LabelDescription;
import org.eclipse.sirius.properties.LabelWidgetConditionalStyle;
import org.eclipse.sirius.properties.LabelWidgetStyle;
@@ -151,6 +154,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
return createCustomExpression();
case PropertiesPackage.CUSTOM_OPERATION:
return createCustomOperation();
+ case PropertiesPackage.HYPERLINK_DESCRIPTION:
+ return createHyperlinkDescription();
case PropertiesPackage.WIDGET_STYLE:
return createWidgetStyle();
case PropertiesPackage.TEXT_WIDGET_STYLE:
@@ -169,6 +174,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
return createCustomWidgetStyle();
case PropertiesPackage.REFERENCE_WIDGET_STYLE:
return createReferenceWidgetStyle();
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE:
+ return createHyperlinkWidgetStyle();
case PropertiesPackage.TEXT_WIDGET_CONDITIONAL_STYLE:
return createTextWidgetConditionalStyle();
case PropertiesPackage.LABEL_WIDGET_CONDITIONAL_STYLE:
@@ -187,6 +194,8 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
return createReferenceWidgetConditionalStyle();
case PropertiesPackage.WIDGET_ACTION:
return createWidgetAction();
+ case PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE:
+ return createHyperlinkWidgetConditionalStyle();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -481,6 +490,17 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
* @generated
*/
@Override
+ public HyperlinkDescription createHyperlinkDescription() {
+ HyperlinkDescriptionImpl hyperlinkDescription = new HyperlinkDescriptionImpl();
+ return hyperlinkDescription;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public WidgetStyle createWidgetStyle() {
WidgetStyleImpl widgetStyle = new WidgetStyleImpl();
return widgetStyle;
@@ -569,6 +589,28 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
* @generated
*/
@Override
+ public ReferenceWidgetStyle createReferenceWidgetStyle() {
+ ReferenceWidgetStyleImpl referenceWidgetStyle = new ReferenceWidgetStyleImpl();
+ return referenceWidgetStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public HyperlinkWidgetStyle createHyperlinkWidgetStyle() {
+ HyperlinkWidgetStyleImpl hyperlinkWidgetStyle = new HyperlinkWidgetStyleImpl();
+ return hyperlinkWidgetStyle;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public TextWidgetConditionalStyle createTextWidgetConditionalStyle() {
TextWidgetConditionalStyleImpl textWidgetConditionalStyle = new TextWidgetConditionalStyleImpl();
return textWidgetConditionalStyle;
@@ -668,9 +710,9 @@ public class PropertiesFactoryImpl extends EFactoryImpl implements PropertiesFac
* @generated
*/
@Override
- public ReferenceWidgetStyle createReferenceWidgetStyle() {
- ReferenceWidgetStyleImpl referenceWidgetStyle = new ReferenceWidgetStyleImpl();
- return referenceWidgetStyle;
+ public HyperlinkWidgetConditionalStyle createHyperlinkWidgetConditionalStyle() {
+ HyperlinkWidgetConditionalStyleImpl hyperlinkWidgetConditionalStyle = new HyperlinkWidgetConditionalStyleImpl();
+ return hyperlinkWidgetConditionalStyle;
}
/**
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java
index b965640ce7..e0d348efa6 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/impl/PropertiesPackageImpl.java
@@ -37,6 +37,9 @@ import org.eclipse.sirius.properties.FillLayoutDescription;
import org.eclipse.sirius.properties.GridLayoutDescription;
import org.eclipse.sirius.properties.GroupDescription;
import org.eclipse.sirius.properties.GroupValidationSetDescription;
+import org.eclipse.sirius.properties.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
import org.eclipse.sirius.properties.LabelDescription;
import org.eclipse.sirius.properties.LabelWidgetConditionalStyle;
import org.eclipse.sirius.properties.LabelWidgetStyle;
@@ -264,6 +267,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
*
* @generated
*/
+ private EClass hyperlinkDescriptionEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EClass widgetStyleEClass = null;
/**
@@ -390,6 +400,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
*
* @generated
*/
+ private EClass hyperlinkWidgetConditionalStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EClass referenceWidgetStyleEClass = null;
/**
@@ -397,6 +414,13 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
*
* @generated
*/
+ private EClass hyperlinkWidgetStyleEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EEnum filL_LAYOUT_ORIENTATIONEEnum = null;
/**
@@ -1544,6 +1568,56 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
* @generated
*/
@Override
+ public EClass getHyperlinkDescription() {
+ return hyperlinkDescriptionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getHyperlinkDescription_ValueExpression() {
+ return (EAttribute) hyperlinkDescriptionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getHyperlinkDescription_InitialOperation() {
+ return (EReference) hyperlinkDescriptionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getHyperlinkDescription_Style() {
+ return (EReference) hyperlinkDescriptionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getHyperlinkDescription_ConditionalStyles() {
+ return (EReference) hyperlinkDescriptionEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getWidgetStyle() {
return widgetStyleEClass;
}
@@ -1984,6 +2058,26 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
* @generated
*/
@Override
+ public EClass getHyperlinkWidgetConditionalStyle() {
+ return hyperlinkWidgetConditionalStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getHyperlinkWidgetConditionalStyle_Style() {
+ return (EReference) hyperlinkWidgetConditionalStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EClass getReferenceWidgetStyle() {
return referenceWidgetStyleEClass;
}
@@ -1994,6 +2088,56 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
* @generated
*/
@Override
+ public EClass getHyperlinkWidgetStyle() {
+ return hyperlinkWidgetStyleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getHyperlinkWidgetStyle_FontNameExpression() {
+ return (EAttribute) hyperlinkWidgetStyleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getHyperlinkWidgetStyle_FontSize() {
+ return (EAttribute) hyperlinkWidgetStyleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EReference getHyperlinkWidgetStyle_BackgroundColor() {
+ return (EReference) hyperlinkWidgetStyleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getHyperlinkWidgetStyle_FontFormat() {
+ return (EAttribute) hyperlinkWidgetStyleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
public EEnum getFILL_LAYOUT_ORIENTATION() {
return filL_LAYOUT_ORIENTATIONEEnum;
}
@@ -2162,6 +2306,12 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
createEAttribute(customOperationEClass, PropertiesPackage.CUSTOM_OPERATION__IDENTIFIER);
createEReference(customOperationEClass, PropertiesPackage.CUSTOM_OPERATION__INITIAL_OPERATION);
+ hyperlinkDescriptionEClass = createEClass(PropertiesPackage.HYPERLINK_DESCRIPTION);
+ createEAttribute(hyperlinkDescriptionEClass, PropertiesPackage.HYPERLINK_DESCRIPTION__VALUE_EXPRESSION);
+ createEReference(hyperlinkDescriptionEClass, PropertiesPackage.HYPERLINK_DESCRIPTION__INITIAL_OPERATION);
+ createEReference(hyperlinkDescriptionEClass, PropertiesPackage.HYPERLINK_DESCRIPTION__STYLE);
+ createEReference(hyperlinkDescriptionEClass, PropertiesPackage.HYPERLINK_DESCRIPTION__CONDITIONAL_STYLES);
+
widgetStyleEClass = createEClass(PropertiesPackage.WIDGET_STYLE);
createEAttribute(widgetStyleEClass, PropertiesPackage.WIDGET_STYLE__LABEL_FONT_NAME_EXPRESSION);
createEAttribute(widgetStyleEClass, PropertiesPackage.WIDGET_STYLE__LABEL_FONT_SIZE);
@@ -2195,6 +2345,12 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
referenceWidgetStyleEClass = createEClass(PropertiesPackage.REFERENCE_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);
+ createEReference(hyperlinkWidgetStyleEClass, PropertiesPackage.HYPERLINK_WIDGET_STYLE__BACKGROUND_COLOR);
+ createEAttribute(hyperlinkWidgetStyleEClass, PropertiesPackage.HYPERLINK_WIDGET_STYLE__FONT_FORMAT);
+
widgetConditionalStyleEClass = createEClass(PropertiesPackage.WIDGET_CONDITIONAL_STYLE);
createEAttribute(widgetConditionalStyleEClass, PropertiesPackage.WIDGET_CONDITIONAL_STYLE__PRECONDITION_EXPRESSION);
@@ -2226,6 +2382,9 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
createEAttribute(widgetActionEClass, PropertiesPackage.WIDGET_ACTION__LABEL_EXPRESSION);
createEReference(widgetActionEClass, PropertiesPackage.WIDGET_ACTION__INITIAL_OPERATION);
+ hyperlinkWidgetConditionalStyleEClass = createEClass(PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE);
+ createEReference(hyperlinkWidgetConditionalStyleEClass, PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE__STYLE);
+
// Create enums
filL_LAYOUT_ORIENTATIONEEnum = createEEnum(PropertiesPackage.FILL_LAYOUT_ORIENTATION);
}
@@ -2283,6 +2442,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
radioDescriptionEClass.getESuperTypes().add(this.getWidgetDescription());
referenceDescriptionEClass.getESuperTypes().add(this.getWidgetDescription());
customDescriptionEClass.getESuperTypes().add(this.getWidgetDescription());
+ hyperlinkDescriptionEClass.getESuperTypes().add(this.getWidgetDescription());
textWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
labelWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
checkboxWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
@@ -2291,6 +2451,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
selectWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
customWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
referenceWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
+ hyperlinkWidgetStyleEClass.getESuperTypes().add(this.getWidgetStyle());
textWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
labelWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
checkboxWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
@@ -2299,6 +2460,7 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
selectWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
customWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
referenceWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
+ hyperlinkWidgetConditionalStyleEClass.getESuperTypes().add(this.getWidgetConditionalStyle());
// Initialize classes and features; add operations and parameters
initEClass(viewExtensionDescriptionEClass, ViewExtensionDescription.class, "ViewExtensionDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE,
@@ -2574,6 +2736,20 @@ 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(hyperlinkDescriptionEClass, HyperlinkDescription.class, "HyperlinkDescription", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHyperlinkDescription_ValueExpression(), theDescriptionPackage.getInterpretedExpression(), "valueExpression", null, 0, 1, HyperlinkDescription.class,
+ !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED,
+ EPackageImpl.IS_ORDERED);
+ initEReference(getHyperlinkDescription_InitialOperation(), theToolPackage.getInitialOperation(), null, "initialOperation", null, 1, 1, HyperlinkDescription.class, !EPackageImpl.IS_TRANSIENT,
+ !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE,
+ !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+ initEReference(getHyperlinkDescription_Style(), this.getHyperlinkWidgetStyle(), null, "style", null, 0, 1, HyperlinkDescription.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE,
+ EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED,
+ EPackageImpl.IS_ORDERED);
+ initEReference(getHyperlinkDescription_ConditionalStyles(), this.getHyperlinkWidgetConditionalStyle(), null, "conditionalStyles", null, 0, -1, HyperlinkDescription.class,
+ !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE,
+ EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+
initEClass(widgetStyleEClass, WidgetStyle.class, "WidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWidgetStyle_LabelFontNameExpression(), theDescriptionPackage.getInterpretedExpression(), "labelFontNameExpression", null, 0, 1, WidgetStyle.class, !EPackageImpl.IS_TRANSIENT,
!EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
@@ -2628,6 +2804,18 @@ public class PropertiesPackageImpl extends EPackageImpl implements PropertiesPac
initEClass(referenceWidgetStyleEClass, ReferenceWidgetStyle.class, "ReferenceWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
+ initEClass(hyperlinkWidgetStyleEClass, HyperlinkWidgetStyle.class, "HyperlinkWidgetStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE, EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHyperlinkWidgetStyle_FontNameExpression(), theDescriptionPackage.getInterpretedExpression(), "fontNameExpression", null, 0, 1, HyperlinkWidgetStyle.class,
+ !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED,
+ EPackageImpl.IS_ORDERED);
+ initEAttribute(getHyperlinkWidgetStyle_FontSize(), ecorePackage.getEInt(), "fontSize", null, 0, 1, HyperlinkWidgetStyle.class, !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE,
+ EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+ initEReference(getHyperlinkWidgetStyle_BackgroundColor(), theDescriptionPackage.getColorDescription(), null, "backgroundColor", null, 0, 1, HyperlinkWidgetStyle.class,
+ !EPackageImpl.IS_TRANSIENT, !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_COMPOSITE, EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE,
+ EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+ initEAttribute(getHyperlinkWidgetStyle_FontFormat(), theViewpointPackage.getFontFormat(), "fontFormat", null, 0, 4, HyperlinkWidgetStyle.class, !EPackageImpl.IS_TRANSIENT,
+ !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, !EPackageImpl.IS_UNSETTABLE, !EPackageImpl.IS_ID, EPackageImpl.IS_UNIQUE, !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+
initEClass(widgetConditionalStyleEClass, WidgetConditionalStyle.class, "WidgetConditionalStyle", EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE,
EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getWidgetConditionalStyle_PreconditionExpression(), theDescriptionPackage.getInterpretedExpression(), "preconditionExpression", null, 0, 1, WidgetConditionalStyle.class,
@@ -2689,6 +2877,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(hyperlinkWidgetConditionalStyleEClass, HyperlinkWidgetConditionalStyle.class, "HyperlinkWidgetConditionalStyle", !EPackageImpl.IS_ABSTRACT, !EPackageImpl.IS_INTERFACE,
+ EPackageImpl.IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getHyperlinkWidgetConditionalStyle_Style(), this.getHyperlinkWidgetStyle(), null, "style", null, 0, 1, HyperlinkWidgetConditionalStyle.class, !EPackageImpl.IS_TRANSIENT,
+ !EPackageImpl.IS_VOLATILE, EPackageImpl.IS_CHANGEABLE, EPackageImpl.IS_COMPOSITE, !EPackageImpl.IS_RESOLVE_PROXIES, !EPackageImpl.IS_UNSETTABLE, EPackageImpl.IS_UNIQUE,
+ !EPackageImpl.IS_DERIVED, EPackageImpl.IS_ORDERED);
+
// Initialize enums and add enum literals
initEEnum(filL_LAYOUT_ORIENTATIONEEnum, org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION.class, "FILL_LAYOUT_ORIENTATION");
addEEnumLiteral(filL_LAYOUT_ORIENTATIONEEnum, org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION.VERTICAL);
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java
index 0bdf5ee2e2..ff928747e9 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesAdapterFactory.java
@@ -34,6 +34,9 @@ import org.eclipse.sirius.properties.FillLayoutDescription;
import org.eclipse.sirius.properties.GridLayoutDescription;
import org.eclipse.sirius.properties.GroupDescription;
import org.eclipse.sirius.properties.GroupValidationSetDescription;
+import org.eclipse.sirius.properties.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
import org.eclipse.sirius.properties.LabelDescription;
import org.eclipse.sirius.properties.LabelWidgetConditionalStyle;
import org.eclipse.sirius.properties.LabelWidgetStyle;
@@ -251,6 +254,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseHyperlinkDescription(HyperlinkDescription object) {
+ return createHyperlinkDescriptionAdapter();
+ }
+
+ @Override
public Adapter caseWidgetStyle(WidgetStyle object) {
return createWidgetStyleAdapter();
}
@@ -296,6 +304,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseHyperlinkWidgetStyle(HyperlinkWidgetStyle object) {
+ return createHyperlinkWidgetStyleAdapter();
+ }
+
+ @Override
public Adapter caseWidgetConditionalStyle(WidgetConditionalStyle object) {
return createWidgetConditionalStyleAdapter();
}
@@ -346,6 +359,11 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
}
@Override
+ public Adapter caseHyperlinkWidgetConditionalStyle(HyperlinkWidgetConditionalStyle object) {
+ return createHyperlinkWidgetConditionalStyleAdapter();
+ }
+
+ @Override
public Adapter caseExtension(Extension object) {
return createExtensionAdapter();
}
@@ -798,6 +816,22 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
/**
* Creates a new adapter for an object of class '
+ * {@link org.eclipse.sirius.properties.HyperlinkDescription
+ * <em>Hyperlink 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.HyperlinkDescription
+ * @generated
+ */
+ public Adapter createHyperlinkDescriptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
* {@link org.eclipse.sirius.properties.WidgetStyle <em>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
@@ -925,6 +959,38 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
/**
* Creates a new adapter for an object of class '
+ * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle
+ * <em>Reference 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.ReferenceWidgetStyle
+ * @generated
+ */
+ public Adapter createReferenceWidgetStyleAdapter() {
+ 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
+ * 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.HyperlinkWidgetStyle
+ * @generated
+ */
+ public Adapter createHyperlinkWidgetStyleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
* {@link org.eclipse.sirius.properties.WidgetConditionalStyle
* <em>Widget Conditional Style</em>}'. <!-- begin-user-doc --> This default
* implementation returns null so that we can easily ignore cases; it's
@@ -1084,17 +1150,17 @@ public class PropertiesAdapterFactory extends AdapterFactoryImpl {
/**
* Creates a new adapter for an object of class '
- * {@link org.eclipse.sirius.properties.ReferenceWidgetStyle
- * <em>Reference 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 -->
+ * {@link org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle
+ * <em>Hyperlink 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.ReferenceWidgetStyle
+ * @see org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle
* @generated
*/
- public Adapter createReferenceWidgetStyleAdapter() {
+ public Adapter createHyperlinkWidgetConditionalStyleAdapter() {
return null;
}
diff --git a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java
index 092589a7d0..540af8da6d 100644
--- a/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java
+++ b/incubation/org.eclipse.sirius.properties/src-gen/org/eclipse/sirius/properties/util/PropertiesSwitch.java
@@ -34,6 +34,9 @@ import org.eclipse.sirius.properties.FillLayoutDescription;
import org.eclipse.sirius.properties.GridLayoutDescription;
import org.eclipse.sirius.properties.GroupDescription;
import org.eclipse.sirius.properties.GroupValidationSetDescription;
+import org.eclipse.sirius.properties.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
import org.eclipse.sirius.properties.LabelDescription;
import org.eclipse.sirius.properties.LabelWidgetConditionalStyle;
import org.eclipse.sirius.properties.LabelWidgetStyle;
@@ -427,6 +430,20 @@ public class PropertiesSwitch<T> {
}
return result;
}
+ case PropertiesPackage.HYPERLINK_DESCRIPTION: {
+ HyperlinkDescription hyperlinkDescription = (HyperlinkDescription) theEObject;
+ T result = caseHyperlinkDescription(hyperlinkDescription);
+ if (result == null) {
+ result = caseWidgetDescription(hyperlinkDescription);
+ }
+ if (result == null) {
+ result = caseControlDescription(hyperlinkDescription);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
case PropertiesPackage.WIDGET_STYLE: {
WidgetStyle widgetStyle = (WidgetStyle) theEObject;
T result = caseWidgetStyle(widgetStyle);
@@ -523,6 +540,17 @@ public class PropertiesSwitch<T> {
}
return result;
}
+ case PropertiesPackage.HYPERLINK_WIDGET_STYLE: {
+ HyperlinkWidgetStyle hyperlinkWidgetStyle = (HyperlinkWidgetStyle) theEObject;
+ T result = caseHyperlinkWidgetStyle(hyperlinkWidgetStyle);
+ if (result == null) {
+ result = caseWidgetStyle(hyperlinkWidgetStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
case PropertiesPackage.WIDGET_CONDITIONAL_STYLE: {
WidgetConditionalStyle widgetConditionalStyle = (WidgetConditionalStyle) theEObject;
T result = caseWidgetConditionalStyle(widgetConditionalStyle);
@@ -627,6 +655,17 @@ public class PropertiesSwitch<T> {
}
return result;
}
+ case PropertiesPackage.HYPERLINK_WIDGET_CONDITIONAL_STYLE: {
+ HyperlinkWidgetConditionalStyle hyperlinkWidgetConditionalStyle = (HyperlinkWidgetConditionalStyle) theEObject;
+ T result = caseHyperlinkWidgetConditionalStyle(hyperlinkWidgetConditionalStyle);
+ if (result == null) {
+ result = caseWidgetConditionalStyle(hyperlinkWidgetConditionalStyle);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
default:
return defaultCase(theEObject);
}
@@ -1076,6 +1115,23 @@ public class PropertiesSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '
+ * <em>Hyperlink 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>Hyperlink Description</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHyperlinkDescription(HyperlinkDescription object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '
* <em>Widget Style</em>'. <!-- begin-user-doc --> This implementation
* returns null; returning a non-null result will terminate the switch. <!--
* end-user-doc -->
@@ -1212,6 +1268,40 @@ public class PropertiesSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '
+ * <em>Reference 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>Reference Widget Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReferenceWidgetStyle(ReferenceWidgetStyle 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 -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '
+ * <em>Hyperlink Widget Style</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHyperlinkWidgetStyle(HyperlinkWidgetStyle object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '
* <em>Widget Conditional Style</em>'. <!-- begin-user-doc --> This
* implementation returns null; returning a non-null result will terminate
* the switch. <!-- end-user-doc -->
@@ -1382,18 +1472,18 @@ public class PropertiesSwitch<T> {
/**
* Returns the result of interpreting the object as an instance of '
- * <em>Reference Widget Style</em>'. <!-- begin-user-doc --> This
- * implementation returns null; returning a non-null result will terminate
- * the switch. <!-- end-user-doc -->
+ * <em>Hyperlink 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>Reference Widget Style</em>'.
+ * <em>Hyperlink Widget Conditional Style</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
- public T caseReferenceWidgetStyle(ReferenceWidgetStyle object) {
+ public T caseHyperlinkWidgetConditionalStyle(HyperlinkWidgetConditionalStyle object) {
return null;
}
diff --git a/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/ViewDescriptionConverter.java b/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/ViewDescriptionConverter.java
index aa34b38082..fe2bea2734 100644
--- a/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/ViewDescriptionConverter.java
+++ b/incubation/org.eclipse.sirius.ui.properties/src/org/eclipse/sirius/ui/properties/internal/tabprovider/ViewDescriptionConverter.java
@@ -35,6 +35,9 @@ import org.eclipse.eef.EEFDynamicMappingIf;
import org.eclipse.eef.EEFFillLayoutDescription;
import org.eclipse.eef.EEFGridLayoutDescription;
import org.eclipse.eef.EEFGroupDescription;
+import org.eclipse.eef.EEFHyperlinkConditionalStyle;
+import org.eclipse.eef.EEFHyperlinkDescription;
+import org.eclipse.eef.EEFHyperlinkStyle;
import org.eclipse.eef.EEFLabelConditionalStyle;
import org.eclipse.eef.EEFLabelDescription;
import org.eclipse.eef.EEFLabelStyle;
@@ -86,6 +89,9 @@ import org.eclipse.sirius.properties.FILL_LAYOUT_ORIENTATION;
import org.eclipse.sirius.properties.FillLayoutDescription;
import org.eclipse.sirius.properties.GridLayoutDescription;
import org.eclipse.sirius.properties.GroupDescription;
+import org.eclipse.sirius.properties.HyperlinkDescription;
+import org.eclipse.sirius.properties.HyperlinkWidgetConditionalStyle;
+import org.eclipse.sirius.properties.HyperlinkWidgetStyle;
import org.eclipse.sirius.properties.LabelDescription;
import org.eclipse.sirius.properties.LabelWidgetConditionalStyle;
import org.eclipse.sirius.properties.LabelWidgetStyle;
@@ -408,6 +414,8 @@ public class ViewDescriptionConverter {
description = createEEFRadioDescription((RadioDescription) widgetDescription);
} else if (widgetDescription instanceof ReferenceDescription) {
description = createEEFReferenceDescription((ReferenceDescription) widgetDescription);
+ } else if (widgetDescription instanceof HyperlinkDescription) {
+ description = createEEFHyperlinkDescription((HyperlinkDescription) widgetDescription);
} else if (widgetDescription instanceof CustomDescription) {
description = createEEFCustomDescription((CustomDescription) widgetDescription);
}
@@ -437,6 +445,8 @@ public class ViewDescriptionConverter {
eefWidgetStyle = EefFactory.eINSTANCE.createEEFRadioStyle();
} else if (widgetStyle instanceof SelectWidgetStyle) {
eefWidgetStyle = EefFactory.eINSTANCE.createEEFSelectStyle();
+ } else if (widgetStyle instanceof HyperlinkWidgetStyle) {
+ eefWidgetStyle = createEEFHyperlinkStyle((HyperlinkWidgetStyle) widgetStyle);
} else if (widgetStyle instanceof CustomWidgetStyle) {
eefWidgetStyle = EefFactory.eINSTANCE.createEEFCustomWidgetStyle();
} else if (widgetStyle instanceof ReferenceWidgetStyle) {
@@ -520,6 +530,24 @@ public class ViewDescriptionConverter {
return eefLabelStyle;
}
+ private EEFHyperlinkStyle createEEFHyperlinkStyle(HyperlinkWidgetStyle hyperlinkStyle) {
+ EEFHyperlinkStyle eefHyperlinkStyle = EefFactory.eINSTANCE.createEEFHyperlinkStyle();
+
+ ColorDescription backgroundColorDescription = hyperlinkStyle.getBackgroundColor();
+ if (backgroundColorDescription != null) {
+ String backgroundColorExpression = getColorExpression(backgroundColorDescription);
+ if (backgroundColorExpression != null) {
+ eefHyperlinkStyle.setBackgroundColorExpression(backgroundColorExpression);
+ }
+ }
+
+ eefHyperlinkStyle.setFontNameExpression(hyperlinkStyle.getFontNameExpression());
+ eefHyperlinkStyle.setFontSizeExpression(Integer.toString(hyperlinkStyle.getFontSize()));
+ eefHyperlinkStyle.setFontStyleExpression(getFontStyleExpression(hyperlinkStyle.getFontFormat()));
+
+ return eefHyperlinkStyle;
+ }
+
private String getFontStyleExpression(List<FontFormat> fontFormats) {
String fontFormat = fontFormats.toString();
return fontFormat.substring(1, fontFormat.length() - 1);
@@ -556,6 +584,37 @@ public class ViewDescriptionConverter {
return eefTextDescription;
}
+ private EEFHyperlinkDescription createEEFHyperlinkDescription(HyperlinkDescription hyperlinkDescription) {
+ EEFHyperlinkDescription eefHyperlinkDescription = EefFactory.eINSTANCE.createEEFHyperlinkDescription();
+
+ eefHyperlinkDescription.setIdentifier(hyperlinkDescription.getIdentifier());
+ eefHyperlinkDescription.setValueExpression(hyperlinkDescription.getValueExpression());
+
+ InitialOperation initialOperation = hyperlinkDescription.getInitialOperation();
+ eefHyperlinkDescription.setOnClickExpression(getExpressionForOperation(initialOperation));
+
+ HyperlinkWidgetStyle hyperlinkStyle = hyperlinkDescription.getStyle();
+ if (hyperlinkStyle != null) {
+ eefHyperlinkDescription.setStyle((EEFHyperlinkStyle) createEEFWidgetStyle(hyperlinkStyle));
+ }
+
+ List<HyperlinkWidgetConditionalStyle> conditionalStyles = hyperlinkDescription.getConditionalStyles();
+ if (conditionalStyles != null && !conditionalStyles.isEmpty()) {
+ List<EEFHyperlinkConditionalStyle> eefConditionalStyles = new ArrayList<EEFHyperlinkConditionalStyle>();
+ for (HyperlinkWidgetConditionalStyle conditionalStyle : conditionalStyles) {
+ EEFHyperlinkConditionalStyle eefConditionalStyle = EefFactory.eINSTANCE.createEEFHyperlinkConditionalStyle();
+ eefConditionalStyle.setPreconditionExpression(conditionalStyle.getPreconditionExpression());
+ eefConditionalStyle.setStyle((EEFHyperlinkStyle) createEEFWidgetStyle(conditionalStyle.getStyle()));
+ eefConditionalStyles.add(eefConditionalStyle);
+ }
+
+ if (eefConditionalStyles != null && !eefConditionalStyles.isEmpty()) {
+ eefHyperlinkDescription.getConditionalStyles().addAll(eefConditionalStyles);
+ }
+ }
+ return eefHyperlinkDescription;
+ }
+
/**
* Get the rgb color expression from a color description.
*

Back to the top