diff options
author | cletavernie | 2012-08-03 14:45:14 +0000 |
---|---|---|
committer | cletavernie | 2012-08-03 14:45:14 +0000 |
commit | bb5e0d0dc89d20942a2448efc7525d7745917e8b (patch) | |
tree | de73c17fc06e72e036c040468df6167fd8da2167 /incoming | |
parent | 3d6a78218ae6abf62bb686e17202c8f83099486a (diff) | |
download | org.eclipse.papyrus-bb5e0d0dc89d20942a2448efc7525d7745917e8b.tar.gz org.eclipse.papyrus-bb5e0d0dc89d20942a2448efc7525d7745917e8b.tar.xz org.eclipse.papyrus-bb5e0d0dc89d20942a2448efc7525d7745917e8b.zip |
Table EFacet properties: Initial import.
Diffstat (limited to 'incoming')
11 files changed, 317 insertions, 0 deletions
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.classpath new file mode 100644 index 00000000000..2d1a4302f04 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project new file mode 100644 index 00000000000..ca50e039e01 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.table.efacet.properties</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/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..8f4b18284f1 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/META-INF/MANIFEST.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.views.properties
+Bundle-Vendor: Eclipse Modeling Project
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 0.9.0.qualifier
+Bundle-Name: Table EFacet Properties (Incubation)
+Bundle-Activator: org.eclipse.papyrus.infra.table.efacet.properties.Ac
+ tivator
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.infra.table.efacet.properties
+ ;singleton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/bin/org/eclipse/papyrus/infra/table/efacet/properties/Activator.class b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/bin/org/eclipse/papyrus/infra/table/efacet/properties/Activator.class Binary files differnew file mode 100644 index 00000000000..d7cb326f492 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/bin/org/eclipse/papyrus/infra/table/efacet/properties/Activator.class diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties new file mode 100644 index 00000000000..644a6b94e93 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/build.properties @@ -0,0 +1,10 @@ +#
+#Fri Aug 03 16:42:22 CEST 2012
+bin.includes = META-INF/,\
+ .,\
+ propertyView/,\
+ plugin.xml,\
+ about.html
+output..=bin/
+source..=src/
+src.includes = about.html
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml new file mode 100644 index 00000000000..a49bd217fe1 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/plugin.xml @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?><?eclipse version="3.4"?>
+<plugin>
+<extension point="org.eclipse.papyrus.views.properties.context"><context contextModel="/propertyView/papyrustable/papyrustable.ctx"/></extension></plugin> diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx new file mode 100644 index 00000000000..fe44e85f477 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/papyrustable.ctx @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="ASCII"?>
+<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9" name="papyrustable">
+ <tabs label="papyrustable" id="papyrustable" priority="100">
+ <sections name="Single PapyrusTable" sectionFile="ui/SinglePapyrusTable.xwt">
+ <widget href="ui/SinglePapyrusTable.xwt#/"/>
+ </sections>
+ <sections name="Multiple PapyrusTable" sectionFile="ui/MultiplePapyrusTable.xwt">
+ <widget href="ui/MultiplePapyrusTable.xwt#/"/>
+ </sections>
+ </tabs>
+ <views name="Single PapyrusTable" sections="//@tabs.0/@sections.0" automaticContext="true" datacontexts="//@dataContexts.0/@elements.0">
+ <constraints xsi:type="constraints:SimpleConstraint" name="isSinglePapyrusTable">
+ <constraintType href="ppe:/environment/org.eclipse.papyrus.views.properties/model/Environment.xmi#//@constraintTypes.0"/>
+ <properties xsi:type="constraints:ValueProperty" name="nsUri" value="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable"/>
+ <properties xsi:type="constraints:ValueProperty" name="className" value="PapyrusTable"/>
+ </constraints>
+ </views>
+ <dataContexts name="papyrustable" label="papyrustable">
+ <elements name="PapyrusTable">
+ <properties name="name" description="This field allows to store a name for the Papyrus Table."/>
+ <properties name="type" description="This field allows to store the type of the Papyrus Table. It is used to know how 
to open it in the papyrus sasheditor."/>
+ <properties name="table" type="Reference" description="This field reference the EMF-Facet table that we use for the papyrus Table.
We choose to reference it (and not to do an inheritance) in order to be sure
to respect their API."/>
+ <properties name="fillingMode" type="Enumeration" description="This attribute allows to store how the table should be filled."/>
+ <properties name="contextFeature" type="Reference" description="This field references the EStructuralFeature to listen when the table is in Feature Mode."/>
+ <properties name="queries" label="Filling queries" type="Reference" multiplicity="-1" description="This field references the queries used to fill table when the table is in queries mode."/>
+ <properties name="usingUser" type="Boolean" description="This attribute is true when fillingMode==User."/>
+ <properties name="usingContextFeature" type="Boolean" description="This attribute is true when fillingMode==Feature."/>
+ <properties name="usingQueries" type="Boolean" description="This attribute is true when fillingMode==Queries."/>
+ </elements>
+ <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.views.properties/model/Environment.xmi#//@modelElementFactories.0"/>
+ </dataContexts>
+ <dataContexts name="table" label="table">
+ <elements name="Table">
+ <properties name="tableConfiguration" type="Reference"/>
+ <properties name="customizations" type="Reference" multiplicity="-1"/>
+ <properties name="facetSets" type="Reference" multiplicity="-1"/>
+ <properties name="context" type="Reference" description="Context is the parameter given to the instantiationMethod's query to be the instantiated element's container."/>
+ <properties name="parameter" description="The parameterValues parameter contains a value that you can retrieve using the key InstantiationMethodParameters.getEditingDomainParameter().getName()."/>
+ <properties name="hideEmptyColumns" type="Boolean" description="Whether to hide columns which don't contain any elements."/>
+ <properties name="onlyShowCommonColumns" label="Only common columns" type="Boolean" description=" Whether to show columns which are specific to a few elements (false), or only columns which are common to all the elements (true)."/>
+ <properties name="description" description="The description of the tableInstance (content, purpose, uses ... )"/>
+ <properties name="columns" type="Reference" multiplicity="-1"/>
+ <properties name="rows" type="Reference" multiplicity="-1"/>
+ <properties name="localCustomizations" type="Reference" multiplicity="-1"/>
+ <properties name="canBePresentedInTheTable" label="Filter query" type="Reference" description="A query that determines which elements are allowed in the table"/>
+ </elements>
+ <elements name="NavigationTable" supertypes="//@dataContexts.1/@elements.0">
+ <properties name="queryResults" type="Reference" multiplicity="-1"/>
+ </elements>
+ <elements name="Column">
+ <properties name="width" type="Integer"/>
+ </elements>
+ <elements name="SourceColumn" supertypes="//@dataContexts.1/@elements.2">
+ <properties name="isHidden" type="Boolean"/>
+ </elements>
+ <elements name="FeatureColumn" supertypes="//@dataContexts.1/@elements.2">
+ <properties name="feature" type="Reference"/>
+ </elements>
+ <elements name="Row">
+ <properties name="element" type="Reference"/>
+ <properties name="height" type="Integer"/>
+ </elements>
+ <elements name="NavigationRow" supertypes="//@dataContexts.1/@elements.5">
+ <properties name="queryResult" type="Reference"/>
+ </elements>
+ <elements name="PrimitiveTypeQueryRow" supertypes="//@dataContexts.1/@elements.6">
+ <properties name="value"/>
+ </elements>
+ <elements name="EObjectQueryRow" supertypes="//@dataContexts.1/@elements.6"/>
+ <elements name="ValueColumn" supertypes="//@dataContexts.1/@elements.2"/>
+ <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.views.properties/model/Environment.xmi#//@modelElementFactories.0"/>
+ </dataContexts>
+</contexts:Context>
diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt new file mode 100644 index 00000000000..5d4ed0e8937 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/MultiplePapyrusTable.xwt @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns:x="http://www.eclipse.org/xwt"
+ xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout"
+ xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:EnumCombo input="{Binding}"
+ property="papyrustable:PapyrusTable:fillingMode"></ppe:EnumCombo>
+ </Composite>
+</Composite>
\ No newline at end of file diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt new file mode 100644 index 00000000000..1bcef0e8ed5 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/propertyView/papyrustable/ui/SinglePapyrusTable.xwt @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets"
+ xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation"
+ xmlns:x="http://www.eclipse.org/xwt"
+ xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout">
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringLabel input="{Binding}"
+ property="papyrustable:Papyruspapyrustable:PapyrusTable:table:context"></ppe:StringLabel>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringEditor input="{Binding}"
+ property="papyrustable:PapyrusTable:name"></ppe:StringEditor>
+ <ppe:StringEditor input="{Binding}"
+ property="papyrustable:PapyrusTable:type" readOnly="true"></ppe:StringEditor>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringMultiline input="{Binding}"
+ property="papyrustable:Papyruspapyrustable:PapyrusTable:table:description"></ppe:StringMultiline>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:EnumCombo input="{Binding}"
+ property="papyrustable:PapyrusTable:fillingMode"></ppe:EnumCombo>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:ReferenceDialog input="{Binding}"
+ property="papyrustable:PapyrusTable:contextFeature"></ppe:ReferenceDialog>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:MultiReference input="{Binding}"
+ property="papyrustable:PapyrusTable:queries" customLabel="Filling queries"></ppe:MultiReference>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:StringEditor input="{Binding}"
+ property="papyrustable:PapyrusTable:table:parameter" readOnly="true"></ppe:StringEditor>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="2"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:BooleanRadio input="{Binding}"
+ property="papyrustable:PapyrusTable:table:hideEmptyColumns" readOnly="true"></ppe:BooleanRadio>
+ <ppe:BooleanRadio input="{Binding}"
+ property="papyrustable:PapyrusTable:table:onlyShowCommonColumns"
+ customLabel="Only common columns"></ppe:BooleanRadio>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:ReferenceDialog input="{Binding}"
+ property="papyrustable:PapyrusTable:table:canBePresentedInTheTable"
+ readOnly="true" customLabel="Filter query"></ppe:ReferenceDialog>
+ </Composite>
+ <Composite>
+ <Composite.layout>
+ <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
+ </Composite.layout>
+ <ppe:MultiReference input="{Binding}"
+ property="papyrustable:PapyrusTable:table:customizations" readOnly="true"></ppe:MultiReference>
+ <ppe:MultiReference input="{Binding}"
+ property="papyrustable:PapyrusTable:table:facetSets" readOnly="true"></ppe:MultiReference>
+ </Composite>
+</Composite>
\ No newline at end of file diff --git a/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java new file mode 100644 index 00000000000..e8290082431 --- /dev/null +++ b/incoming/TableEFacet/org.eclipse.papyrus.infra.table.efacet.properties/src/org/eclipse/papyrus/infra/table/efacet/properties/Activator.java @@ -0,0 +1,50 @@ +package org.eclipse.papyrus.infra.table.efacet.properties;
+
+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.papyrus.infra.table.efacet.properties"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * 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;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
|