From 3c89905ce10e339d3e0f1ad26fe83543ea75efb2 Mon Sep 17 00:00:00 2001 From: Laurent Wouters Date: Fri, 4 Apr 2014 16:11:26 +0200 Subject: [clean] Retiring org.eclipse.papyrus.infra.table.properties Signed-off-by: Laurent Wouters --- .../.classpath | 7 - .../.project | 28 -- .../.settings/org.eclipse.jdt.core.prefs | 8 - .../META-INF/MANIFEST.MF | 28 -- .../about.html | 28 -- .../build.properties | 7 - .../model/Environment.xmi | 4 - .../model/papyrustableinstance.ctx | 38 --- .../model/papyrustableinstanceFieldSelection.xmi | 12 - .../model/tableinstance.ctx | 359 --------------------- .../model/tableinstance2.ctx | 148 --------- .../model/tableinstance2FieldSelection.xmi | 20 -- .../model/tableinstanceFieldSelection.xmi | 56 ---- .../model/ui/Description.xwt | 10 - .../model/ui/MultipleAttributeColumn.xwt | 2 - .../model/ui/MultipleColumn.xwt | 2 - .../model/ui/MultipleContextColumn.xwt | 2 - .../model/ui/MultipleDefaultLabelColumn.xwt | 2 - .../model/ui/MultipleEContainerColumn.xwt | 2 - .../model/ui/MultipleEObjectQueryRow.xwt | 2 - .../model/ui/MultipleFacetAttributeColumn.xwt | 2 - .../model/ui/MultipleFacetFeatureColumn.xwt | 2 - .../model/ui/MultipleFacetReferenceColumn.xwt | 2 - .../model/ui/MultipleFeatureColumn.xwt | 2 - .../model/ui/MultipleMetaClassColumn.xwt | 2 - .../model/ui/MultiplePapyrusTableInstance.xwt | 16 - .../model/ui/MultiplePrimitiveTypeQueryRow.xwt | 2 - .../model/ui/MultipleQueryColumn.xwt | 2 - .../model/ui/MultipleQueryRow.xwt | 2 - .../model/ui/MultipleQueryTableInstance.xwt | 2 - .../model/ui/MultipleQueryTableInstance2.xwt | 2 - .../model/ui/MultipleReferenceColumn.xwt | 2 - .../model/ui/MultipleRow.xwt | 2 - .../model/ui/MultipleTableInstance.xwt | 2 - .../model/ui/MultipleTableInstance2.xwt | 2 - .../model/ui/MultipleValueColumn.xwt | 2 - .../model/ui/SingleAttributeColumn.xwt | 2 - .../model/ui/SingleColumn.xwt | 2 - .../model/ui/SingleContextColumn.xwt | 2 - .../model/ui/SingleDefaultLabelColumn.xwt | 2 - .../model/ui/SingleEContainerColumn.xwt | 2 - .../model/ui/SingleEObjectQueryRow.xwt | 2 - .../model/ui/SingleFacetAttributeColumn.xwt | 2 - .../model/ui/SingleFacetFeatureColumn.xwt | 2 - .../model/ui/SingleFacetReferenceColumn.xwt | 2 - .../model/ui/SingleFeatureColumn.xwt | 2 - .../model/ui/SingleMetaClassColumn.xwt | 2 - .../model/ui/SinglePapyrusTableInstance.xwt | 76 ----- .../model/ui/SinglePrimitiveTypeQueryRow.xwt | 2 - .../model/ui/SingleQueryColumn.xwt | 2 - .../model/ui/SingleQueryRow.xwt | 2 - .../model/ui/SingleQueryTableInstance.xwt | 2 - .../model/ui/SingleQueryTableInstance2.xwt | 2 - .../model/ui/SingleReferenceColumn.xwt | 2 - .../model/ui/SingleRow.xwt | 2 - .../model/ui/SingleTableInstance.xwt | 2 - .../model/ui/SingleTableInstance2.xwt | 2 - .../model/ui/SingleValueColumn.xwt | 2 - .../plugin.properties | 3 - .../plugin.xml | 23 -- .../papyrus/infra/table/properties/Activator.java | 69 ---- .../infra/table/properties/messages/Messages.java | 17 - .../table/properties/messages/messages.properties | 1 - .../modelelement/PapyrusTableFactory.java | 51 --- .../modelelement/PapyrusTableModelElement.java | 159 --------- .../provider/CustomizationContentProvider.java | 99 ------ .../provider/CustomizationLabelProvider.java | 74 ----- .../provider/ElementTypeContentProvider.java | 173 ---------- .../properties/provider/FacetLabelProvider.java | 40 --- .../provider/FillingQueriesContentProvider.java | 164 ---------- ...teElementContainmentFeatureContentProvider.java | 70 ---- 71 files changed, 1872 deletions(-) delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/.classpath delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/.project delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/.settings/org.eclipse.jdt.core.prefs delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/META-INF/MANIFEST.MF delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/about.html delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/build.properties delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/Environment.xmi delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstance.ctx delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstanceFieldSelection.xmi delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance.ctx delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2.ctx delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2FieldSelection.xmi delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstanceFieldSelection.xmi delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/Description.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleAttributeColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleContextColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleDefaultLabelColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEContainerColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEObjectQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetAttributeColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetFeatureColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetReferenceColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFeatureColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleMetaClassColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePapyrusTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePrimitiveTypeQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance2.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleReferenceColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance2.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleValueColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleAttributeColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleContextColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleDefaultLabelColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEContainerColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEObjectQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetAttributeColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetFeatureColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetReferenceColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFeatureColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleMetaClassColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePapyrusTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePrimitiveTypeQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance2.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleReferenceColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleRow.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance2.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleValueColumn.xwt delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/plugin.properties delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/plugin.xml delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/Activator.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/Messages.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/messages.properties delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableFactory.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableModelElement.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationContentProvider.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationLabelProvider.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/ElementTypeContentProvider.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FacetLabelProvider.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FillingQueriesContentProvider.java delete mode 100644 deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/PasteElementContainmentFeatureContentProvider.java diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/.classpath b/deprecated/org.eclipse.papyrus.infra.table.properties/.classpath deleted file mode 100644 index 2d1a4302f04..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/.project b/deprecated/org.eclipse.papyrus.infra.table.properties/.project deleted file mode 100644 index 7232286a2cb..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.papyrus.infra.table.properties - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/.settings/org.eclipse.jdt.core.prefs b/deprecated/org.eclipse.papyrus.infra.table.properties/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 46f774520ba..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,8 +0,0 @@ -#Fri Mar 11 10:04:20 CET 2011 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.infra.table.properties/META-INF/MANIFEST.MF deleted file mode 100644 index 17bc0b91d92..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/META-INF/MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Require-Bundle: org.eclipse.ui, - org.eclipse.core.runtime, - org.eclipse.papyrus.views.properties;bundle-version="1.0.0", - org.eclipse.papyrus.views.properties.model;bundle-version="1.0.0", - org.eclipse.emf.edit, - org.eclipse.papyrus.infra.widgets;bundle-version="1.0.0", - org.eclipse.emf.facet.infra.query.core;bundle-version="0.1.0", - org.eclipse.emf.databinding, - org.eclipse.papyrus.infra.core.log;bundle-version="1.0.0", - org.eclipse.papyrus.infra.table.instance;bundle-version="1.0.0", - org.eclipse.emf.facet.widgets.nattable.instance;bundle-version="0.1.0", - org.eclipse.papyrus.infra.emf;bundle-version="1.0.0", - org.eclipse.emf.facet.infra.browser.uicore;bundle-version="0.2.0", - org.eclipse.gmf.runtime.emf.type.core, - org.eclipse.papyrus.infra.core;bundle-version="1.0.0", - org.eclipse.papyrus.infra.services.edit;bundle-version="1.0.0" -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-Version: 1.0.0.qualifier -Bundle-Name: %pluginName -Bundle-Localization: plugin -Bundle-ManifestVersion: 2 -Bundle-Activator: org.eclipse.papyrus.infra.table.properties.Activator -Bundle-SymbolicName: org.eclipse.papyrus.infra.table.properties;single - ton:=true -Bundle-RequiredExecutionEnvironment: J2SE-1.5 - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/about.html b/deprecated/org.eclipse.papyrus.infra.table.properties/about.html deleted file mode 100644 index 82d49bf5f81..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

June 5, 2007

-

License

- -

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 http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

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 http://www.eclipse.org.

- - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/build.properties b/deprecated/org.eclipse.papyrus.infra.table.properties/build.properties deleted file mode 100644 index 4ff9a36ff5a..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/build.properties +++ /dev/null @@ -1,7 +0,0 @@ -# -#Mon Sep 12 09:30:08 CEST 2011 -bin.includes=META-INF/,.,plugin.properties,plugin.xml,model/,about.html -output..=bin/ -src.includes = about.html -source..=src/ -bin..=bin/ diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/Environment.xmi b/deprecated/org.eclipse.papyrus.infra.table.properties/model/Environment.xmi deleted file mode 100644 index 3261d8ce5ed..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/Environment.xmi +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstance.ctx b/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstance.ctx deleted file mode 100644 index 9c641424e97..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstance.ctx +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstanceFieldSelection.xmi b/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstanceFieldSelection.xmi deleted file mode 100644 index 9ffca51ce04..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/papyrustableinstanceFieldSelection.xmi +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance.ctx b/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance.ctx deleted file mode 100644 index b83450c6a11..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance.ctx +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2.ctx b/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2.ctx deleted file mode 100644 index ee9663fdb97..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2.ctx +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2FieldSelection.xmi b/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2FieldSelection.xmi deleted file mode 100644 index e9d9acb7c79..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstance2FieldSelection.xmi +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstanceFieldSelection.xmi b/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstanceFieldSelection.xmi deleted file mode 100644 index d3b2c00f81b..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/tableinstanceFieldSelection.xmi +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/Description.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/Description.xwt deleted file mode 100644 index 0bd60d339d4..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/Description.xwt +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleAttributeColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleAttributeColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleAttributeColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleColumn.xwt deleted file mode 100644 index a6d30c037c5..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleContextColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleContextColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleContextColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleDefaultLabelColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleDefaultLabelColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleDefaultLabelColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEContainerColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEContainerColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEContainerColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEObjectQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEObjectQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleEObjectQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetAttributeColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetAttributeColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetAttributeColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetFeatureColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetFeatureColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetFeatureColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetReferenceColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetReferenceColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFacetReferenceColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFeatureColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFeatureColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleFeatureColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleMetaClassColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleMetaClassColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleMetaClassColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePapyrusTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePapyrusTableInstance.xwt deleted file mode 100644 index 35e6683e2d3..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePapyrusTableInstance.xwt +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePrimitiveTypeQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePrimitiveTypeQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultiplePrimitiveTypeQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance2.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance2.xwt deleted file mode 100644 index ad504480cfd..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleQueryTableInstance2.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleReferenceColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleReferenceColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleReferenceColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleRow.xwt deleted file mode 100644 index 7b8b905d447..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance2.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance2.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleTableInstance2.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleValueColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleValueColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/MultipleValueColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleAttributeColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleAttributeColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleAttributeColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleContextColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleContextColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleContextColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleDefaultLabelColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleDefaultLabelColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleDefaultLabelColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEContainerColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEContainerColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEContainerColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEObjectQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEObjectQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleEObjectQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetAttributeColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetAttributeColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetAttributeColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetFeatureColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetFeatureColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetFeatureColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetReferenceColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetReferenceColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFacetReferenceColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFeatureColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFeatureColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleFeatureColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleMetaClassColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleMetaClassColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleMetaClassColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePapyrusTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePapyrusTableInstance.xwt deleted file mode 100644 index f070f9e2677..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePapyrusTableInstance.xwt +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePrimitiveTypeQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePrimitiveTypeQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SinglePrimitiveTypeQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance2.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance2.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleQueryTableInstance2.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleReferenceColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleReferenceColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleReferenceColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleRow.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleRow.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleRow.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance.xwt deleted file mode 100644 index 8d6757fd352..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance2.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance2.xwt deleted file mode 100644 index 491cbc46f17..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleTableInstance2.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleValueColumn.xwt b/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleValueColumn.xwt deleted file mode 100644 index a2ae62ef794..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/model/ui/SingleValueColumn.xwt +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.properties b/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.properties deleted file mode 100644 index 0b6f48cf843..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.properties +++ /dev/null @@ -1,3 +0,0 @@ -#Properties file for org.eclipse.papyrus.infra.table.properties -providerName = Eclipse Modeling Project -pluginName = Papyrus Table Property View (Incubation) \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.xml b/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.xml deleted file mode 100644 index b9d68cf73c7..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/plugin.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/Activator.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/Activator.java deleted file mode 100644 index 7d655b26980..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/Activator.java +++ /dev/null @@ -1,69 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties; - -import org.eclipse.papyrus.infra.core.log.LogHelper; -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.properties"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** Logging helper */ - public static LogHelper log; - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - @Override - public void start(final BundleContext context) throws Exception { - super.start(context); - plugin = this; - log = new LogHelper(plugin); - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) - */ - @Override - public void stop(final BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/Messages.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/Messages.java deleted file mode 100644 index ba166b9f37d..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/Messages.java +++ /dev/null @@ -1,17 +0,0 @@ -package org.eclipse.papyrus.infra.table.properties.messages; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS { - - private static final String BUNDLE_NAME = "org.eclipse.papyrus.infra.table.properties.messages.messages"; //$NON-NLS-1$ - - public static String ElementTypeContentProvider_EnterTheNameOfTheWantedElement; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - private Messages() { - } -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/messages.properties b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/messages.properties deleted file mode 100644 index d29d940cb36..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/messages/messages.properties +++ /dev/null @@ -1 +0,0 @@ -ElementTypeContentProvider_EnterTheNameOfTheWantedElement=Enter the name of the element you're looking for. You can use * as a wildcard diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableFactory.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableFactory.java deleted file mode 100644 index 75875548fb4..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableFactory.java +++ /dev/null @@ -1,51 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.modelelement; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.papyrus.infra.emf.utils.EMFHelper; -import org.eclipse.papyrus.infra.table.properties.Activator; -import org.eclipse.papyrus.views.properties.contexts.DataContextElement; -import org.eclipse.papyrus.views.properties.modelelement.EMFModelElementFactory; -import org.eclipse.papyrus.views.properties.modelelement.ModelElement; - -/** - * - * The factory for the PapyrusTable - * - */ -public class PapyrusTableFactory extends EMFModelElementFactory{ - - /** - * - * @see org.eclipse.papyrus.views.properties.modelelement.EMFModelElementFactory#createFromSource(java.lang.Object, org.eclipse.papyrus.views.properties.contexts.DataContextElement) - * - * @param sourceElement - * @param context - * @return - */ - @Override - public ModelElement createFromSource(final Object sourceElement, final DataContextElement context) { - EObject source = EMFHelper.getEObject(sourceElement); - if(source == null) { - Activator.log.warn("Unable to resolve the selected element to an EObject"); //$NON-NLS-1$ - return null; - } - - EditingDomain domain = AdapterFactoryEditingDomain.getEditingDomainFor(source); - return new PapyrusTableModelElement(source, domain); - } -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableModelElement.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableModelElement.java deleted file mode 100644 index 7732a6fc141..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/modelelement/PapyrusTableModelElement.java +++ /dev/null @@ -1,159 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.modelelement; - - -import org.eclipse.core.runtime.Assert; -import org.eclipse.emf.databinding.FeaturePath; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.edit.domain.EditingDomain; -import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance.TableInstance; -import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance2.TableInstance2; -import org.eclipse.jface.viewers.ILabelProvider; -import org.eclipse.papyrus.infra.table.instance.papyrustableinstance.PapyrusTableInstance; -import org.eclipse.papyrus.infra.table.instance.papyrustableinstance.PapyrustableinstancePackage; -import org.eclipse.papyrus.infra.table.properties.provider.CustomizationContentProvider; -import org.eclipse.papyrus.infra.table.properties.provider.CustomizationLabelProvider; -import org.eclipse.papyrus.infra.table.properties.provider.ElementTypeContentProvider; -import org.eclipse.papyrus.infra.table.properties.provider.FacetLabelProvider; -import org.eclipse.papyrus.infra.table.properties.provider.FillingQueriesContentProvider; -import org.eclipse.papyrus.infra.table.properties.provider.PasteElementContainmentFeatureContentProvider; -import org.eclipse.papyrus.infra.widgets.creation.ReferenceValueFactory; -import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider; -import org.eclipse.papyrus.views.properties.modelelement.EMFModelElement; - - - - -public class PapyrusTableModelElement extends EMFModelElement { - - /** these 3 value are used for the preference of the display of the localCustom in the property view */ - /** any local customization is displayed */ - public static final int NO_LOCALS = 0; - - /** only one of the local customization is displayed */ - public static final int ONLY_ONE_LOCALS = NO_LOCALS + 1; - - /** all local customizations are displayed */ - public static final int ALL_LOCALS = ONLY_ONE_LOCALS + 1; - - /** the property path for the customization */ - public static final String TABLE_CUSTOMIZATIONS = "table.customizations"; //$NON-NLS-1$ - - /** the property path for the customization */ - public static final String TABLE_FACETS2 = "table.facets2"; //$NON-NLS-1$ - - /** the property path for the customization */ - public static final String TABLE_FILLING_QUERIES = "fillingQueries"; //$NON-NLS-1$ - - public static final String TABLE_CONTEXT = "table.context"; //$NON-NLS-1$ - - /** the current value of the preference for the display of the local customization */ - private static int local_preference = ALL_LOCALS; - - /** - * - * Constructor. - * - * @param source - */ - public PapyrusTableModelElement(final EObject source) { - super(source); - } - - /** - * - * Constructor. - * - * @param source - * @param domain - */ - public PapyrusTableModelElement(final EObject source, final EditingDomain domain) { - super(source, domain); - } - - /** - * - * @see org.eclipse.papyrus.views.properties.modelelement.EMFModelElement#getContentProvider(java.lang.String) - * - * @param propertyPath - * @return - */ - @Override - public IStaticContentProvider getContentProvider(final String propertyPath) { - if(TABLE_FILLING_QUERIES.equals(propertyPath)) { - FeaturePath featurePath = getFeaturePath(TABLE_CONTEXT); - EObject table = getSource(featurePath); - Assert.isTrue(table instanceof TableInstance); - return new FillingQueriesContentProvider((TableInstance)table); - } - if(TABLE_CUSTOMIZATIONS.equals(propertyPath)) { - FeaturePath featurePath = getFeaturePath(TABLE_CUSTOMIZATIONS); - EStructuralFeature feature = getFeature(featurePath); - return new CustomizationContentProvider(feature, getSource(featurePath), local_preference); - } - - EStructuralFeature feature = getFeature(propertyPath); - if(feature == PapyrustableinstancePackage.eINSTANCE.getPapyrusTableInstance_PastedElementId()) { - return new ElementTypeContentProvider(); - } - - if(feature == PapyrustableinstancePackage.eINSTANCE.getPapyrusTableInstance_PastedElementContainmentFeature()) { - if(source instanceof PapyrusTableInstance) { - return new PasteElementContainmentFeatureContentProvider((PapyrusTableInstance)source); - } - } - - return super.getContentProvider(propertyPath); - } - - /** - * - * @see org.eclipse.papyrus.views.properties.modelelement.EMFModelElement#getLabelProvider(java.lang.String) - * - * @param propertyPath - * @return - */ - @Override - public ILabelProvider getLabelProvider(final String propertyPath) { - if(TABLE_CUSTOMIZATIONS.equals(propertyPath)) { - FeaturePath featurePath = getFeaturePath(TABLE_CUSTOMIZATIONS); - EObject table = getSource(featurePath); - Assert.isTrue(table instanceof TableInstance2); - return new CustomizationLabelProvider((TableInstance2)table, local_preference); - } - if(TABLE_FACETS2.equals(propertyPath)) { - return new FacetLabelProvider(); - } - return super.getLabelProvider(propertyPath); - } - - /** - * - * @see org.eclipse.papyrus.views.properties.modelelement.EMFModelElement#getValueFactory(java.lang.String) - * - * @param propertyPath - * @return - */ - @Override - public ReferenceValueFactory getValueFactory(final String propertyPath) { - //allow to disabled the edition of the filling queries - if(TABLE_FILLING_QUERIES.equals(propertyPath)) { - return null; - } - return super.getValueFactory(propertyPath); - } -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationContentProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationContentProvider.java deleted file mode 100644 index e5f2e99fc0b..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationContentProvider.java +++ /dev/null @@ -1,99 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.provider; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.core.runtime.Assert; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.facet.infra.browser.custom.MetamodelView; -import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance2.TableInstance2; -import org.eclipse.papyrus.infra.emf.providers.strategy.SemanticEMFContentProvider; -import org.eclipse.papyrus.infra.table.properties.modelelement.PapyrusTableModelElement; - -/** - * - * The content provider for the MetamodelView - * - */ -public class CustomizationContentProvider extends SemanticEMFContentProvider { - - /** - * the table instance - */ - private final TableInstance2 source; - - /** - * the preference - */ - private final int preference; - - /** - * - * Constructor. - * - * @param feature - * the feature - * @param eObject - * the eobject - * @param pref - * the preference : it allows to display to choose how to display the local customization : - * - */ - public CustomizationContentProvider(final EStructuralFeature feature, final EObject eObject, final int pref) { - super(eObject, feature); - preference = pref; - Assert.isTrue(eObject instanceof TableInstance2); - source = (TableInstance2)eObject; - } - - /** - * - * @see org.eclipse.papyrus.views.properties.providers.EcoreReferenceContentProvider#getElements() - * - * @return - */ - @Override - public Object[] getElements() { - Object[] elements = new Object[0]; - List allCustom = new ArrayList(); - allCustom.addAll(source.getCustomizations()); - List allLocalCustom = new ArrayList(); - allLocalCustom.addAll(source.getLocalCustomizations()); - switch(preference) { - case PapyrusTableModelElement.NO_LOCALS: - allCustom.removeAll(allLocalCustom); - elements = allCustom.toArray(); - break; - case PapyrusTableModelElement.ONLY_ONE_LOCALS: - allLocalCustom.remove(0); - allCustom.removeAll(allLocalCustom); - elements = allCustom.toArray(); - break; - case PapyrusTableModelElement.ALL_LOCALS: - elements = allCustom.toArray(); - break; - default: - break; - } - return elements; - } - -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationLabelProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationLabelProvider.java deleted file mode 100644 index 4c60d0bf35f..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/CustomizationLabelProvider.java +++ /dev/null @@ -1,74 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.provider; - -import org.eclipse.emf.facet.infra.browser.custom.MetamodelView; -import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance2.TableInstance2; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.papyrus.infra.table.properties.modelelement.PapyrusTableModelElement; - -/** - * - * LabelProvider for the MetamodelView - * - */ -public class CustomizationLabelProvider extends LabelProvider { - - /** the table instance*/ - private final TableInstance2 table; - - /** the preference : allows to manage the text displayed to represent the MetamodelView*/ - private final int preference; - - /** - * - * Constructor. - * - * @param table - * the table instance - * @param pref - * the preference - */ - public CustomizationLabelProvider(final TableInstance2 table, final int pref) { - preference = pref; - this.table = table; - } - - /** - * - * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object) - * - * @param element - * @return - */ - @Override - public String getText(final Object element) { - final MetamodelView metamodelView = (MetamodelView) element; - if(table.getLocalCustomizations().contains(metamodelView)){ - switch(preference){ - case PapyrusTableModelElement.NO_LOCALS : - //it is not possible - return ""; //$NON-NLS-1$ - case PapyrusTableModelElement.ONLY_ONE_LOCALS : - return "localCustomizations"; //$NON-NLS-1$ - case PapyrusTableModelElement.ALL_LOCALS : - return "localCustomization" + " " + metamodelView.getMetamodelURI(); //$NON-NLS-1$ //$NON-NLS-2$ - default : - return metamodelView.getName(); - } - }else{ - return metamodelView.getName(); - } - } -} \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/ElementTypeContentProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/ElementTypeContentProvider.java deleted file mode 100644 index a6d6f0eda9d..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/ElementTypeContentProvider.java +++ /dev/null @@ -1,173 +0,0 @@ -package org.eclipse.papyrus.infra.table.properties.provider; - -import java.util.Arrays; -import java.util.LinkedList; -import java.util.List; -import java.util.Set; -import java.util.TreeSet; - -import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry; -import org.eclipse.gmf.runtime.emf.type.core.IClientContext; -import org.eclipse.gmf.runtime.emf.type.core.IElementType; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.jface.viewers.StructuredViewer; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerFilter; -import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; -import org.eclipse.papyrus.infra.table.properties.Activator; -import org.eclipse.papyrus.infra.table.properties.messages.Messages; -import org.eclipse.papyrus.infra.widgets.editors.AbstractEditor; -import org.eclipse.papyrus.infra.widgets.editors.ICommitListener; -import org.eclipse.papyrus.infra.widgets.editors.StringEditor; -import org.eclipse.papyrus.infra.widgets.providers.AbstractStaticContentProvider; -import org.eclipse.papyrus.infra.widgets.providers.IGraphicalContentProvider; -import org.eclipse.papyrus.infra.widgets.providers.PatternViewerFilter; -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.Composite; - - -public class ElementTypeContentProvider extends AbstractStaticContentProvider implements ITreeContentProvider, IGraphicalContentProvider { - - private Set values = null; - - - public String[] getElements() { - if(this.values == null) { - this.values = getValues(); - } - - return this.values.toArray(new String[values.size()]); - } - - - private Set getValues() { - final Set allValues = getAllPossiblesValues(); - return allValues; - } - - private Set getAllPossiblesValues() { - - IClientContext clientContext = null; - try { - clientContext = TypeContext.getContext(); - } catch (ServiceException e1) { - Activator.log.error(e1); - } - IElementType[] types = ElementTypeRegistry.getInstance().getElementTypes(clientContext); - final Set ids = new TreeSet(); - for(IElementType iElementType : types) { - final String id = iElementType.getId(); - if(id.contains("sysml.stereotype.") || id.contains("uml.stereotype.")) {//FIXME should not be done here -> should be adapted in the Papyrus Table V3 //$NON-NLS-1$ //$NON-NLS-2$ - //nothing to do - } else { - ids.add(id); - } - } - return ids; - } - - - public Object[] getChildren(Object parentElement) { - return new Object[0]; - } - - public Object getParent(Object element) { - return null; //Flat provider - } - - public boolean hasChildren(Object element) { - return false; - } - - /** - * {@inheritDoc} - */ - public void createBefore(Composite parent) { - createPatternFilter(parent); - } - - protected ViewerFilter patternFilter; - - private String currentFilterPattern = ""; //$NON-NLS-1$ - - private StructuredViewer viewer; - - protected void createPatternFilter(Composite parent) { - StringEditor editor = new StringEditor(parent, SWT.NONE); - editor.setLabel("Filter:"); //$NON-NLS-1$ - editor.setToolTipText(Messages.ElementTypeContentProvider_EnterTheNameOfTheWantedElement); - editor.setValidateOnDelay(true); - patternFilter = new PatternViewerFilter(); - ((PatternViewerFilter)patternFilter).setPattern(currentFilterPattern); - - editor.addCommitListener(new ICommitListener() { - - public void commit(AbstractEditor editor) { - String filterPattern = (String)((StringEditor)editor).getValue(); - ((PatternViewerFilter)patternFilter).setPattern(filterPattern); - viewer.refresh(); - if(!("".equals(filterPattern) || currentFilterPattern.equals(filterPattern))) { //$NON-NLS-1$ - Object firstMatch = getFirstMatchingElement(null); - if(firstMatch != null) { - // revealSemanticElement(Collections.singletonList(firstMatch)); - } - currentFilterPattern = filterPattern; - } - } - - }); - - List filters = new LinkedList(Arrays.asList(viewer.getFilters())); - filters.add(patternFilter); - viewer.setFilters(filters.toArray(new ViewerFilter[filters.size()])); - } - - - public void createAfter(Composite parent) { - } - - - @Override - public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { - super.inputChanged(viewer, oldInput, newInput); - this.viewer = (StructuredViewer)viewer; - } - - /** - * Returns the first (encapsulated) element matching the current filters - * - * @return - */ - protected Object getFirstMatchingElement(Object parent) { - //Browse from the root element - if(parent == null) { - for(Object parentElement : getElements(viewer.getInput())) { - Object firstMatch = getFirstMatchingElement(parentElement); - if(firstMatch != null) { - return firstMatch; - } - } - return null; - } - - for(ViewerFilter filter : viewer.getFilters()) { - if(!filter.select(viewer, getParent(parent), parent)) { - return null; - } - } - - //Browse the child elements - for(Object childElement : getChildren(parent)) { - Object firstMatch = getFirstMatchingElement(childElement); - if(firstMatch != null) { - return firstMatch; - } - } - - //No match found - return null; - } - - -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FacetLabelProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FacetLabelProvider.java deleted file mode 100644 index 3c4872d0ab2..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FacetLabelProvider.java +++ /dev/null @@ -1,40 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.provider; - -import org.eclipse.emf.facet.infra.facet.Facet; -import org.eclipse.jface.viewers.LabelProvider; - -/** - * - * The label provider for the facets - * - */ -public class FacetLabelProvider extends LabelProvider{ - - /** - * - * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object) - * - * @param element - * @return - */ - @Override - public String getText(final Object element) { - if(element instanceof Facet){ - return ((Facet)element).getName(); - } - return super.getText(element); - } -} \ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FillingQueriesContentProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FillingQueriesContentProvider.java deleted file mode 100644 index 2c78d470d45..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/FillingQueriesContentProvider.java +++ /dev/null @@ -1,164 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 CEA LIST. - * - * - * 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: - * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.provider; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.facet.infra.query.ModelQuery; -import org.eclipse.emf.facet.infra.query.ModelQuerySet; -import org.eclipse.emf.facet.infra.query.core.ModelQuerySetCatalog; -import org.eclipse.emf.facet.widgets.nattable.instance.tableinstance.TableInstance; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.papyrus.infra.widgets.providers.IHierarchicContentProvider; -import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider; - -/** - * - * Thi content provider for the FillingQueries editor - * - */ -public class FillingQueriesContentProvider implements IHierarchicContentProvider, IStaticContentProvider{ - - private final TableInstance table; - public FillingQueriesContentProvider(final TableInstance table) { - this.table = table; - } - - /** - * - * @see org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider#getElements() - * - * @return - */ - public Object[] getElements() { - //we return only the querySet with interesting queries - Collection allQueriesSet = new ArrayList(); - Collection querySetToKeep = new ArrayList(); - allQueriesSet.addAll(ModelQuerySetCatalog.getSingleton().getAllModelQuerySets()); - for(ModelQuerySet current : allQueriesSet){ - if(getChildren(current).length!=0){ - querySetToKeep.add(current); - } - } - return querySetToKeep.toArray(); - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getElements(java.lang.Object) - * - * @param inputElement - * @return - */ - public Object[] getElements(final Object inputElement) { - // TODO Auto-generated method stub - return null; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object) - * - * @param parentElement - * @return - */ - public Object[] getChildren(final Object parentElement) { - if(parentElement instanceof ModelQuerySet){ - List queries = new ArrayList(); - queries.addAll(((ModelQuerySet)parentElement).getQueries()); - List queriesToKeep = new ArrayList(); - EObject context = this.table.getContext(); - EClass eClassContext = context.eClass(); - for(ModelQuery current : queries){ - //TODO we should test the return type, no? - EList scope = current.getScope(); - for(EClass currentEClass : scope){ - if(currentEClass.isSuperTypeOf(eClassContext) || eClassContext.isInstance(current)){ - - queriesToKeep.add(current); - }else{ - queriesToKeep.add(current); - //nothing to do - } - - } - } - return queries.toArray(); - } - return new Object[0]; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#getParent(java.lang.Object) - * - * @param element - * @return - */ - public Object getParent(final Object element) { - return null; - } - - /** - * - * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object) - * - * @param element - * @return - */ - public boolean hasChildren(final Object element) { - return getChildren(element).length!=0; - } - - /** - * - * @see org.eclipse.jface.viewers.IContentProvider#dispose() - * - */ - public void dispose() { - //nothing to do - } - - /** - * - * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) - * - * @param viewer - * @param oldInput - * @param newInput - */ - public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) { - //nothing to do - } - - /** - * - * @see org.eclipse.papyrus.infra.widgets.providers.IHierarchicContentProvider#isValidValue(java.lang.Object) - * - * @param element - * @return - */ - public boolean isValidValue(final Object element) { - if(element instanceof ModelQuery){ - return true; - } - return false; - } - -} diff --git a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/PasteElementContainmentFeatureContentProvider.java b/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/PasteElementContainmentFeatureContentProvider.java deleted file mode 100644 index 7dd29503fb4..00000000000 --- a/deprecated/org.eclipse.papyrus.infra.table.properties/src/org/eclipse/papyrus/infra/table/properties/provider/PasteElementContainmentFeatureContentProvider.java +++ /dev/null @@ -1,70 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2012 CEA LIST. - * - * 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: - * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation - *****************************************************************************/ -package org.eclipse.papyrus.infra.table.properties.provider; - -import java.util.LinkedList; -import java.util.List; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.jface.viewers.ITreeContentProvider; -import org.eclipse.papyrus.infra.table.instance.papyrustableinstance.PapyrusTableInstance; -import org.eclipse.papyrus.infra.widgets.providers.AbstractStaticContentProvider; - - -public class PasteElementContainmentFeatureContentProvider extends AbstractStaticContentProvider implements ITreeContentProvider { - - private PapyrusTableInstance contextTable; - - public PasteElementContainmentFeatureContentProvider(PapyrusTableInstance contextTable) { - this.contextTable = contextTable; - } - - public EClass[] getElements() { - EObject context = contextTable.getTable().getContext(); - - if(context == null) { - return new EClass[0]; - } - - EClass contextMetaclass = context.eClass(); - return new EClass[]{ contextMetaclass }; - } - - public EReference[] getChildren(Object parentElement) { - if(parentElement instanceof EClass) { - EClass contextMetaclass = (EClass)parentElement; - List result = new LinkedList(); - for(EReference reference : contextMetaclass.getEAllReferences()) { - if(reference.isContainment() && reference.getUpperBound() != 1) { - result.add(reference); - } - } - return result.toArray(new EReference[result.size()]); - } - - return new EReference[0]; - } - - public Object getParent(Object element) { - if(element instanceof EReference) { - return ((EReference)element).getEContainingClass(); - } - return null; - } - - public boolean hasChildren(Object element) { - return getChildren(element).length > 0; - } - -} -- cgit v1.2.3