diff options
Diffstat (limited to 'plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents')
91 files changed, 3093 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.project new file mode 100644 index 0000000000..f7e0969658 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.button</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..b0bb9d1a50 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.button.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign new file mode 100644 index 0000000000..cfaad40330 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/description/PropertiesTests.odesign @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsButton"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Button" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Button" + labelExpression="Button" + domainClass=""> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + helpExpression="" + isEnabledExpression="" + buttonLabelExpression="Label"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="ButtonClicked"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="ALongLongLongLabel" + helpExpression="" + isEnabledExpression="" + buttonLabelExpression="ALongLongLongLabel"/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="No Label" + helpExpression="" + isEnabledExpression="" + buttonLabelExpression=""/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Style Button" + helpExpression="" + isEnabledExpression="" + buttonLabelExpression="Label"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Conditional Style Button" + helpExpression="" + isEnabledExpression="" + buttonLabelExpression="Label"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Disable Button" + helpExpression="" + isEnabledExpression="aql:false" + buttonLabelExpression="Label"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/plugin.xml new file mode 100644 index 0000000000..36b8ef5d8e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.button.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/button/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/button/Activator.java new file mode 100644 index 0000000000..ef03f6df3b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.button/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/button/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.button; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.button"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.project new file mode 100644 index 0000000000..cbc0db9524 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.checkbox</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c970572dce --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.checkbox.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign new file mode 100644 index 0000000000..268a006631 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/description/PropertiesTests.odesign @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsCheckbox"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Checkbox" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Checkbox" + labelExpression="Checkbox" + domainClass=""> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression="aql:self.booleanAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="booleanAttribute" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Style Checkbox" + valueExpression="aql:self.booleanAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Conditional Style Checkbox" + valueExpression="aql:self.booleanAttribute"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Disable Checkbox" + isEnabledExpression="aql:false" + valueExpression="aql:self.booleanAttribute"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/plugin.xml new file mode 100644 index 0000000000..dfc5742f5f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.checkbox.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/checkbox/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/checkbox/Activator.java new file mode 100644 index 0000000000..b38ff193d7 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.checkbox/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/checkbox/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.checkbox; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.checkbox"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.project new file mode 100644 index 0000000000..b0f36dce87 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.group</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..12135b4834 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.group.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/description/PropertiesTests.odesign new file mode 100644 index 0000000000..c12308eda5 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/description/PropertiesTests.odesign @@ -0,0 +1,342 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsGroup"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Group" + groups="//@extensions.0/@groups.0 //@extensions.0/@groups.2 //@extensions.0/@groups.3 //@extensions.0/@groups.4 //@extensions.0/@groups.5 //@extensions.0/@groups.6 //@extensions.0/@groups.1 //@extensions.0/@groups.7"/> + <groups + identifier="Group" + labelExpression="Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + helpExpression="" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + </groups> + <groups + identifier="Style Group" + labelExpression="Style Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression="Times new roman" + fontSize="12" + expandedByDefault="true"> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + </style> + </groups> + <groups + identifier="Short title Group" + labelExpression="Short title Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression="" + barStyle="SHORT_TITLE_BAR" + expandedByDefault="true"/> + </groups> + <groups + identifier="No title Group" + labelExpression="No title Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression="" + barStyle="NO_TITLE" + expandedByDefault="true"/> + </groups> + <groups + identifier="Tree node Group" + labelExpression="Tree node Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression="" + toggleStyle="TREE_NODE" + expandedByDefault="true"/> + </groups> + <groups + identifier="None toggle Group" + labelExpression="None toggle Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression="" + toggleStyle="NONE" + expandedByDefault="true"/> + </groups> + <groups + identifier="Collapse Group" + labelExpression="Collapse Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <style + fontNameExpression=""/> + </groups> + <groups + identifier="Conditional Style Group" + labelExpression="Conditional Style Group" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + identifier="Text" + labelExpression="Text" + helpExpression="Help" + isEnabledExpression="aql:true" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Text area" + valueExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + bodyExpression="Lorem ipsum dolor sit amet."/> + <controls + xsi:type="properties:ButtonDescription" + labelExpression="Button" + buttonLabelExpression="Button"/> + <controls + xsi:type="properties:CheckboxDescription" + labelExpression="Checkbox" + valueExpression=""/> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + valueExpression="a" + candidatesExpression="aql:Sequence{'a','b','c'}" + candidateDisplayExpression="aql:candidate"/> + <conditionalStyles + preconditionExpression="aql:true"> + <style + fontNameExpression="Times new roman" + fontSize="12" + expandedByDefault="true"> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + </style> + </conditionalStyles> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/plugin.xml new file mode 100644 index 0000000000..64acb1a7b4 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.group.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/group/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/group/Activator.java new file mode 100644 index 0000000000..4c1dd21b26 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.group/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/group/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.group; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.group"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.project new file mode 100644 index 0000000000..eb2c5cb38e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.hyperlink</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7e4dfa6aa5 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.hyperlink.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign new file mode 100644 index 0000000000..ec7d1e17b5 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/description/PropertiesTests.odesign @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsHyperlink"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Hyperlink" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Hyperlink" + labelExpression="Hyperlink" + domainClass=""> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Hyperlink" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="NewValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Style Hyperlink" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Conditional Style Hyperlink" + helpExpression="" + valueExpression="aql:self.stringAttribute"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:HyperlinkDescription" + labelExpression="Disable Hyperlink" + helpExpression="" + isEnabledExpression="aql:false" + valueExpression="aql:self.stringAttribute"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/plugin.xml new file mode 100644 index 0000000000..ad04e0c6ad --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.hyperlink.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/hyperlink/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/hyperlink/Activator.java new file mode 100644 index 0000000000..8f89746512 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.hyperlink/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/hyperlink/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.hyperlink; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.hyperlink"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.project new file mode 100644 index 0000000000..ebfc0963cc --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.label</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..6886b404ca --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.label.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign new file mode 100644 index 0000000000..25360305b7 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/description/PropertiesTests.odesign @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsLabel"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Label" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Label" + labelExpression="Label" + domainClass=""> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Label" + helpExpression="" + bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."/> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Style Label" + helpExpression="" + bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:LabelDescription" + labelExpression="Conditional Style Label" + helpExpression="" + bodyExpression="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam egestas ac dui eu venenatis. Etiam porta, ligula ut sollicitudin porta, elit tortor laoreet velit, sit amet iaculis risus velit a purus."> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </conditionalStyles> + </controls> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/plugin.xml new file mode 100644 index 0000000000..2f88556e0e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.label.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/label/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/label/Activator.java new file mode 100644 index 0000000000..76036db852 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.label/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/label/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.label; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.label"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.project new file mode 100644 index 0000000000..989255ab01 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.radio</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c1e8aedfb7 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 1.0.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.radio.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign new file mode 100644 index 0000000000..3208a617f6 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/description/PropertiesTests.odesign @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsRadio"> + <ownedRepresentations + xsi:type="description_1:DiagramDescription" + enablePopupBars="true"> + <defaultLayer + name="Default"/> + </ownedRepresentations> + </ownedViewpoints> + <extensions + xsi:type="properties:ViewExtensionDescription" + identifier="" + metamodel="http://www.eclipse.org/sirius/tests/properties/1.0.0#/"> + <pages labelExpression="Radio" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Radio" + labelExpression="Radio" + domainClass=""> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Radio" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.enumAttribute" + candidatesExpression="aql:propertiestests::TestEnum.eLiterals" + candidateDisplayExpression="aql:candidate.name"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="enumAttribute" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Style Radio" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.enumAttribute" + candidatesExpression="aql:propertiestests::TestEnum.eLiterals" + candidateDisplayExpression="aql:candidate.name"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Conditional Style Radio" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.enumAttribute" + candidatesExpression="aql:propertiestests::TestEnum.eLiterals" + candidateDisplayExpression="aql:candidate.name"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:RadioDescription" + identifier="" + labelExpression="Disable Radio" + helpExpression="" + isEnabledExpression="aql:false" + valueExpression="aql:self.enumAttribute" + candidatesExpression="aql:propertiestests::TestEnum.eLiterals" + candidateDisplayExpression="aql:candidate.name"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/plugin.xml new file mode 100644 index 0000000000..657b0aba5e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.radio.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/radio/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/radio/Activator.java new file mode 100644 index 0000000000..21f99db25f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.radio/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/radio/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.radio; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.radio"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.project new file mode 100644 index 0000000000..905b048d81 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.reference</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..a447e7921d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.reference.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign new file mode 100644 index 0000000000..80eafdb2b7 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/description/PropertiesTests.odesign @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsReference" + label="" + icon=""/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Reference" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Reference" + labelExpression="Reference" + domainClass=""> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Mono containment ref" + helpExpression="" + valueExpression="aql:self.containmentReference" + displayExpression="aql:self.stringAttribute"> + <actions + labelExpression="Action1"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action1"/> + </initialOperation> + </actions> + <actions + labelExpression="Action2"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action2"/> + </initialOperation> + </actions> + <actions + labelExpression=""> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="NoLabelAction"/> + </initialOperation> + </actions> + </controls> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Mono containment ref" + helpExpression="" + valueExpression="aql:self.containmentReference" + displayExpression="aql:self.stringAttribute"> + <onClickOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="ClickedOnHyperlink"/> + </onClickOperation> + </controls> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Mono ref" + helpExpression="" + valueExpression="aql:self.reference" + displayExpression="aql:self.stringAttribute"> + <actions + labelExpression="Action1"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action1"/> + </initialOperation> + </actions> + <actions + labelExpression="Action2"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action2"/> + </initialOperation> + </actions> + </controls> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Multi containment ref" + helpExpression="" + multiple="true" + valueExpression="aql:self.containmentReferences" + displayExpression="aql:self.stringAttribute"> + <actions + labelExpression="Action1"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action1"/> + </initialOperation> + </actions> + <actions + labelExpression="Action2"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action2"/> + </initialOperation> + </actions> + </controls> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Mono without action" + helpExpression="" + valueExpression="aql:self.containmentReference" + displayExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Multi without action" + helpExpression="" + multiple="true" + valueExpression="aql:self.containmentReferences" + displayExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:ReferenceDescription" + labelExpression="Multi containment ref" + helpExpression="" + multiple="true" + valueExpression="aql:self.containmentReferences" + displayExpression="aql:self.stringAttribute"> + <actions + labelExpression="Action1"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="Action1"/> + </initialOperation> + </actions> + </controls> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/plugin.xml new file mode 100644 index 0000000000..1e330a76c9 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.reference.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/reference/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/reference/Activator.java new file mode 100644 index 0000000000..ffdab4d306 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.reference/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/reference/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.reference; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.reference"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.project new file mode 100644 index 0000000000..d7802008af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.screenshot</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..ecc5504cf3 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.screenshot.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/description/PropertiesTests.odesign new file mode 100644 index 0000000000..98c4d97bd2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/description/PropertiesTests.odesign @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsScreenshot"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages labelExpression="Page" + groups="//@extensions.0/@groups.0"/> + <groups + labelExpression="Group" + domainClass=""> + <controls + xsi:type="properties:ContainerDescription"> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + helpExpression="Help" + valueExpression="aql:self.stringAttribute"/> + <layout + xsi:type="properties:FillLayoutDescription" + orientation="HORIZONTAL"/> + </controls> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/plugin.xml new file mode 100644 index 0000000000..f0b6b908ef --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.screenshot.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/screenshot/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/screenshot/Activator.java new file mode 100644 index 0000000000..9adbaaa867 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.screenshot/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/screenshot/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.screenshot; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.screenshot"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.project new file mode 100644 index 0000000000..7583e7730e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.select</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..e68fdd807a --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.select.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign new file mode 100644 index 0000000000..6ee8ab18bd --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/description/PropertiesTests.odesign @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsSelect"> + <ownedRepresentations + xsi:type="description_1:DiagramDescription" + enablePopupBars="true"> + <defaultLayer + name="Default"/> + </ownedRepresentations> + </ownedViewpoints> + <extensions + xsi:type="properties:ViewExtensionDescription" + identifier="" + metamodel="http://www.eclipse.org/sirius/tests/properties/1.0.0#/"> + <pages labelExpression="Select" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Select" + labelExpression="Select" + domainClass=""> + <controls + xsi:type="properties:SelectDescription" + labelExpression="Select" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.reference" + candidatesExpression="aql:self.eResource().getContents().eAllContents()" + candidateDisplayExpression="aql:candidate.stringAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="reference" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:SelectDescription" + labelExpression="Style Select" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.reference" + candidatesExpression="aql:self.eResource().getContents().eAllContents()" + candidateDisplayExpression="aql:candidate.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </controls> + <controls + xsi:type="properties:SelectDescription" + labelExpression="Conditional Style Select" + helpExpression="" + isEnabledExpression="aql:true" + valueExpression="aql:self.reference" + candidatesExpression="aql:self.eResource().getContents().eAllContents()" + candidateDisplayExpression="aql:candidate.stringAttribute"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:SelectDescription" + labelExpression="Disable Select" + helpExpression="" + isEnabledExpression="aql:false" + valueExpression="aql:self.reference" + candidatesExpression="aql:self.eResource().getContents().eAllContents()" + candidateDisplayExpression="aql:candidate.stringAttribute"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/plugin.xml new file mode 100644 index 0000000000..4cfdaac9c1 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.select.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/select/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/select/Activator.java new file mode 100644 index 0000000000..2a7a4b5e14 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.select/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/select/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.select; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.select"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.project new file mode 100644 index 0000000000..64af1dda9a --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design.text</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..b70b60cc69 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.sample.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.text.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign new file mode 100644 index 0000000000..5a23ab165a --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign @@ -0,0 +1,167 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group + xmi:version="2.0" + xmlns:xmi="http://www.omg.org/XMI" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" + xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" + xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" + name="PropertiesTests" + version="11.0.0.201601261200"> + <ownedViewpoints + name="PropertiesTestsText"/> + <extensions + xsi:type="properties:ViewExtensionDescription"> + <pages identifier="" + labelExpression="Text" + groups="//@extensions.0/@groups.0"/> + <groups + identifier="Text" + labelExpression="Text" + domainClass=""> + <controls + xsi:type="properties:TextDescription" + labelExpression="Text" + valueExpression="aql:self.stringAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:TextDescription" + identifier="" + labelExpression="Style Text" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextDescription" + labelExpression="Conditional Style Text" + valueExpression="aql:self.stringAttribute"> + <conditionalStyles + preconditionExpression="aql:true"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_green']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </conditionalStyles> + </controls> + <controls + xsi:type="properties:TextDescription" + labelExpression="Disable Text" + isEnabledExpression="aql:false" + valueExpression="aql:self.stringAttribute"/> + <controls + xsi:type="properties:TextAreaDescription" + identifier="" + labelExpression="Text area" + valueExpression="aql:self.stringAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:TextAreaDescription" + identifier="" + labelExpression="Style Text area" + valueExpression="aql:self.stringAttribute"> + <style + labelFontNameExpression="Times new roman" + labelFontSize="12" + fontNameExpression="Times new roman" + fontSize="12"> + <labelBackgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <labelForegroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <labelFontFormat>italic</labelFontFormat> + <labelFontFormat>bold</labelFontFormat> + <labelFontFormat>underline</labelFontFormat> + <labelFontFormat>strike_through</labelFontFormat> + <backgroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> + <foregroundColor + xsi:type="description:SystemColor" + href="environment:/viewpoint#//@systemColors/@entries[name='dark_gray']"/> + <fontFormat>italic</fontFormat> + <fontFormat>bold</fontFormat> + <fontFormat>underline</fontFormat> + <fontFormat>strike_through</fontFormat> + </style> + </controls> + <controls + xsi:type="properties:TextAreaDescription" + labelExpression="Conditional Style Text area" + valueExpression="aql:self.stringAttribute"> + <initialOperation> + <firstModelOperations + xsi:type="tool:SetValue" + featureName="stringAttribute" + valueExpression="aql:newValue"/> + </initialOperation> + </controls> + <controls + xsi:type="properties:TextAreaDescription" + identifier="" + labelExpression="Disable Text area" + isEnabledExpression="aql:false" + valueExpression="aql:self.stringAttribute"/> + </groups> + </extensions> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/plugin.xml new file mode 100644 index 0000000000..7c028595c2 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.text.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/text/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/text/Activator.java new file mode 100644 index 0000000000..abcddfb73f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design.text/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/text/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design.text; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design.text"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.classpath b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.project new file mode 100644 index 0000000000..93c3fc401c --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.design</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/META-INF/MANIFEST.MF b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1d2078d60f --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/META-INF/MANIFEST.MF @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: org.eclipse.sirius.tests.rcptt.sample.properties.design +Bundle-SymbolicName: org.eclipse.sirius.tests.rcptt.properties.design;singleton:=true +Bundle-Version: 4.1.0 +Bundle-Activator: org.eclipse.sirius.tests.rcptt.sample.properties.design.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.core.resources, + org.eclipse.sirius, + org.eclipse.sirius.common.acceleo.aql +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/build.properties b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/build.properties new file mode 100644 index 0000000000..c94531ff9e --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + description/,\ + plugin.xml diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign new file mode 100644 index 0000000000..7794841f87 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" name="PropertiesTests" version="11.0.0.201601261200"> + <ownedViewpoints name="PropertiesTests"> + <ownedRepresentations xsi:type="description_1:DiagramDescription" name="Diagram" domainClass="propertiestests.TestRoot" enablePopupBars="true"> + <metamodel href="http://www.eclipse.org/sirius/tests/properties/1.0.0#/"/> + <defaultLayer name="Default"> + <nodeMappings name="TestElement" domainClass="propertiestests.TestElement"> + <style xsi:type="style:SquareDescription" labelExpression="feature:stringAttribute" sizeComputationExpression="10" labelPosition="node" resizeKind="NSEW"> + <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> + <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> + <color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='gray']"/> + </style> + </nodeMappings> + </defaultLayer> + </ownedRepresentations> + </ownedViewpoints> +</description:Group> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/plugin.xml b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/plugin.xml new file mode 100644 index 0000000000..06afe448fe --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/plugin.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <extension point="org.eclipse.sirius.componentization"> + <component class="org.eclipse.sirius.tests.rcptt.sample.properties.design.Activator" + id="org.eclipse.sirius.tests.rcptt.sample.properties.design" + name="PropertiesTests"> + </component> + </extension> +</plugin> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/Activator.java b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/Activator.java new file mode 100644 index 0000000000..3dfd58e438 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.design/src/org/eclipse/sirius/tests/rcptt/sample/properties/design/Activator.java @@ -0,0 +1,76 @@ +/******************************************************************************* + * 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.tests.rcptt.sample.properties.design; + +import java.util.HashSet; +import java.util.Set; + +import org.eclipse.sirius.business.api.componentization.ViewpointRegistry; +import org.eclipse.sirius.viewpoint.description.Viewpoint; +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.sirius.tests.rcptt.sample.properties.design"; + + // The shared instance + private static Activator plugin; + + private static Set<Viewpoint> viewpoints; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework. + * BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + viewpoints = new HashSet<Viewpoint>(); + viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/PropertiesTests.odesign")); + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework. + * BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + if (viewpoints != null) { + for (final Viewpoint viewpoint : viewpoints) { + ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint); + } + viewpoints.clear(); + viewpoints = null; + } + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/.project b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/.project new file mode 100644 index 0000000000..c55595b616 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/.project @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.sirius.tests.rcptt.properties.instance</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + </buildSpec> + <natures> + <nature>org.eclipse.sirius.nature.modelingproject</nature> + </natures> +</projectDescription> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests new file mode 100644 index 0000000000..fe133624b1 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/PropertiesTestsInstance.propertiestests @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<propertiestests:TestRoot xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:propertiestests="http://www.eclipse.org/sirius/tests/properties/1.0.0"> + <elements stringAttribute="Element1" reference="//@elements.1" references="//@elements.1 //@elements.2"> + <stringAttributes>Attribute1</stringAttributes> + <stringAttributes>Attribute2</stringAttributes> + <stringAttributes>Attribute3</stringAttributes> + <intAttributes>1</intAttributes> + <intAttributes>2</intAttributes> + <intAttributes>3</intAttributes> + <booleanAttributes>true</booleanAttributes> + <booleanAttributes>false</booleanAttributes> + <enumAttributes>Literal1</enumAttributes> + <enumAttributes>Literal2</enumAttributes> + <enumAttributes>Literal3</enumAttributes> + <containmentReference stringAttribute="Element11"/> + <containmentReferences stringAttribute="Element12"/> + <containmentReferences stringAttribute="Element13"/> + </elements> + <elements stringAttribute="Element2"/> + <elements stringAttribute="Element3"/> +</propertiestests:TestRoot> diff --git a/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird new file mode 100644 index 0000000000..0de0a56ce0 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.rcptt.properties.samples/contents/propertiestests/org.eclipse.sirius.tests.rcptt.properties.instance/representations.aird @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<viewpoint:DAnalysis xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:propertiestests="http://www.eclipse.org/sirius/tests/properties/1.0.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style" xmi:id="_n4UK4AhuEea_TaWxXuy80g" selectedViews="_VkPb8AiBEeaRvL3xkYbMuw" version="11.0.0.201604141600"> + <semanticResources>PropertiesTestsInstance.propertiestests</semanticResources> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_VjvFoAiBEeaRvL3xkYbMuw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design.text/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTestsText']"/> + </ownedViews> + <ownedViews xmi:type="viewpoint:DView" xmi:id="_VkPb8AiBEeaRvL3xkYbMuw"> + <viewpoint xmi:type="description:Viewpoint" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']"/> + <ownedRepresentations xmi:type="diagram:DSemanticDiagram" xmi:id="_dK6SYAiBEeaRvL3xkYbMuw" name="RootDiagram"> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_dK6SYQiBEeaRvL3xkYbMuw" source="DANNOTATION_CUSTOMIZATION_KEY"> + <data xmi:type="diagram:ComputedStyleDescriptionRegistry" xmi:id="_dK6SYgiBEeaRvL3xkYbMuw"/> + </ownedAnnotationEntries> + <ownedAnnotationEntries xmi:type="description:AnnotationEntry" xmi:id="_dLHtwAiBEeaRvL3xkYbMuw" source="GMF_DIAGRAMS"> + <data xmi:type="notation:Diagram" xmi:id="_dLHtwQiBEeaRvL3xkYbMuw" type="Sirius" element="_dK6SYAiBEeaRvL3xkYbMuw" measurementUnit="Pixel"> + <children xmi:type="notation:Node" xmi:id="_lUgYQAiYEeaQ8eZ7XL4hjg" type="2001" element="_lUWnQAiYEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_lUntAAiYEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_lUntAQiYEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_lUqwUAiYEeaQ8eZ7XL4hjg" type="3003" element="_lUX1YAiYEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_lUqwUQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lUqwUgiYEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_lUgYQQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lUgYQgiYEeaQ8eZ7XL4hjg" width="100" height="100"/> + </children> + <children xmi:type="notation:Node" xmi:id="_lUo7IAiYEeaQ8eZ7XL4hjg" type="2001" element="_lUZDgAiYEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_lUpiMAiYEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_lUpiMQiYEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_lUrXYAiYEeaQ8eZ7XL4hjg" type="3003" element="_lUZqkAiYEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_lUrXYQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lUrXYgiYEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_lUo7IQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lUo7IgiYEeaQ8eZ7XL4hjg" x="160" width="100" height="100"/> + </children> + <children xmi:type="notation:Node" xmi:id="_wbhwAAiYEeaQ8eZ7XL4hjg" type="2001" element="_wbfTwAiYEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_wbiXEAiYEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_wbiXEQiYEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_wbi-IAiYEeaQ8eZ7XL4hjg" type="3003" element="_wbf60AiYEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wbi-IQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wbi-IgiYEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_wbhwAQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_wbhwAgiYEeaQ8eZ7XL4hjg" x="290" width="100" height="100"/> + </children> + <children xmi:type="notation:Node" xmi:id="_-GQaoAiYEeaQ8eZ7XL4hjg" type="2001" element="_-GMwQAiYEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_-GRBsAiYEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_-GRBsQiYEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_-GRowgiYEeaQ8eZ7XL4hjg" type="3003" element="_-GNXUAiYEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_-GRowwiYEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-GRoxAiYEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_-GQaoQiYEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-GQaogiYEeaQ8eZ7XL4hjg" x="420" width="100" height="100"/> + </children> + <children xmi:type="notation:Node" xmi:id="_-GRBsgiYEeaQ8eZ7XL4hjg" type="2001" element="_-GNXUQiYEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_-GRowAiYEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_-GRowQiYEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_-GSP0AiYEeaQ8eZ7XL4hjg" type="3003" element="_-GN-YAiYEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_-GSP0QiYEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-GSP0giYEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_-GRBswiYEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-GRBtAiYEeaQ8eZ7XL4hjg" x="580" width="100" height="100"/> + </children> + <children xmi:type="notation:Node" xmi:id="_AwcI8AiZEeaQ8eZ7XL4hjg" type="2001" element="_AwZFoAiZEeaQ8eZ7XL4hjg"> + <children xmi:type="notation:Node" xmi:id="_AwcI8wiZEeaQ8eZ7XL4hjg" type="5002"> + <layoutConstraint xmi:type="notation:Location" xmi:id="_AwcI9AiZEeaQ8eZ7XL4hjg" y="5"/> + </children> + <children xmi:type="notation:Node" xmi:id="_AwcwAAiZEeaQ8eZ7XL4hjg" type="3003" element="_AwZFoQiZEeaQ8eZ7XL4hjg"> + <styles xmi:type="notation:ShapeStyle" xmi:id="_AwcwAQiZEeaQ8eZ7XL4hjg" fontName="Droid Sans"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AwcwAgiZEeaQ8eZ7XL4hjg"/> + </children> + <styles xmi:type="notation:ShapeStyle" xmi:id="_AwcI8QiZEeaQ8eZ7XL4hjg" fontName="Droid Sans" fontHeight="8"/> + <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AwcI8giZEeaQ8eZ7XL4hjg" x="710" width="100" height="100"/> + </children> + <styles xmi:type="notation:DiagramStyle" xmi:id="_dLHtwgiBEeaRvL3xkYbMuw"/> + </data> + </ownedAnnotationEntries> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_lUWnQAiYEeaQ8eZ7XL4hjg" name="Element1" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_lUX1YAiYEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_-GMwQAiYEeaQ8eZ7XL4hjg" name="Element11" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReference"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReference"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_-GNXUAiYEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_-GNXUQiYEeaQ8eZ7XL4hjg" name="Element12" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReferences.0"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReferences.0"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_-GN-YAiYEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_AwZFoAiZEeaQ8eZ7XL4hjg" name="Element13" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReferences.1"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.0/@containmentReferences.1"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_AwZFoQiZEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_lUZDgAiYEeaQ8eZ7XL4hjg" name="Element2" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.1"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.1"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_lUZqkAiYEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <ownedDiagramElements xmi:type="diagram:DNode" xmi:id="_wbfTwAiYEeaQ8eZ7XL4hjg" name="Element3" width="10" height="10" resizeKind="NSEW"> + <target xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.2"/> + <semanticElements xmi:type="propertiestests:TestElement" href="PropertiesTestsInstance.propertiestests#//@elements.2"/> + <ownedStyle xmi:type="diagram:Square" xmi:id="_wbf60AiYEeaQ8eZ7XL4hjg" labelPosition="node"> + <description xmi:type="style:SquareDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']/@style"/> + </ownedStyle> + <actualMapping xmi:type="description_1:NodeMapping" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer/@nodeMappings[name='TestElement']"/> + </ownedDiagramElements> + <description xmi:type="description_1:DiagramDescription" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']"/> + <filterVariableHistory xmi:type="diagram:FilterVariableHistory" xmi:id="_dK6SZQiBEeaRvL3xkYbMuw"/> + <activatedLayers xmi:type="description_1:Layer" href="platform:/resource/org.eclipse.sirius.tests.rcptt.properties.design/description/PropertiesTests.odesign#//@ownedViewpoints[name='PropertiesTests']/@ownedRepresentations[name='Diagram']/@defaultLayer"/> + <target xmi:type="propertiestests:TestRoot" href="PropertiesTestsInstance.propertiestests#/"/> + </ownedRepresentations> + </ownedViews> +</viewpoint:DAnalysis> |