summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 10:18:34 (EDT)
committerLaurent Wouters2014-04-04 10:18:34 (EDT)
commitf93b63ee7072c2fac4ca4894f665fb706bec8d2a (patch)
tree2ea5f8a4fd75c00baff97d3afe2a1f70d8f9f168
parent1c85e06b74524701911f689da389c0f2d1898259 (diff)
downloadorg.eclipse.papyrus-f93b63ee7072c2fac4ca4894f665fb706bec8d2a.zip
org.eclipse.papyrus-f93b63ee7072c2fac4ca4894f665fb706bec8d2a.tar.gz
org.eclipse.papyrus-f93b63ee7072c2fac4ca4894f665fb706bec8d2a.tar.bz2
[clean] Retiring org.eclipse.papyrus.infra.table.efacetlast/org.eclipse.papyrus.infra.table.efacet
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.classpath7
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.project40
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/META-INF/MANIFEST.MF27
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/build.properties6
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/plugin.xml31
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetCustomization.uiCustom38
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetQuery.querySet23
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_Facet.facetSet12
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_FacetCustomization.uiCustom13
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/Activator.java35
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractEditorContainerQuery.java33
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractGetEditorIconQuery.java57
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetContainedTables.java63
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableIcon.java17
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java14
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java32
16 files changed, 0 insertions, 448 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.classpath b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.classpath
deleted file mode 100644
index 45f024e..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <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="output" path="bin"/>
-</classpath>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.project b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.project
deleted file mode 100644
index f6616ca..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/.project
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.table.efacet</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>
- <buildCommand>
- <name>org.eclipse.emf.facet.common.sdk.core.projectBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.emf.facet.common.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.emf.facet.common.ProjectNature</nature>
- <nature>org.eclipse.emf.facet.common.sdk.core.ProjectNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/META-INF/MANIFEST.MF b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/META-INF/MANIFEST.MF
deleted file mode 100644
index b5aa18a..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,27 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.facet.util.core,
- org.eclipse.uml2.uml,
- org.eclipse.emf.ecore,
- org.eclipse.emf.facet.infra.query.core,
- org.eclipse.emf.facet.infra.facet.core,
- org.eclipse.uml2.types,
- org.eclipse.emf.facet.infra.browser.custom.core,
- org.eclipse.papyrus.infra.core;bundle-version="0.10.1",
- com.google.guava,
- org.eclipse.papyrus.views.modelexplorer;bundle-version="0.10.1",
- org.eclipse.papyrus.infra.table.efacet.metamodel;bundle-version="0.10.1",
- org.eclipse.papyrus.infra.core.sasheditor;bundle-version="0.10.1",
- org.eclipse.emf.facet.widgets.table.metamodel;bundle-version="0.2.0"
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .,
- bin
-Bundle-Version: 0.10.1.qualifier
-Bundle-Name: Facet for TableEFacet (Incubation)
-Bundle-Activator: org.eclipse.papyrus.infra.table.efacet.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.table.efacet;singleton:
- =true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/build.properties b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/build.properties
deleted file mode 100644
index 8de5aee..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- resources/
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/plugin.xml b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/plugin.xml
deleted file mode 100644
index 29d6693..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/plugin.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.emf.facet.infra.facet.registration">
- <facetset
- file="resources/TableEFacet_Facet.facetSet">
- </facetset>
- </extension>
- <extension
- point="org.eclipse.emf.facet.infra.query.registration">
- <modelqueryset
- file="resources/TableEFacetQuery.querySet">
- </modelqueryset>
- </extension>
- <extension
- point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization
- file="resources/TableEFacetCustomization.uiCustom"
- loadByDefault="true">
- </browserCustomization>
- </extension>
- <extension
- point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization
- file="resources/TableEFacet_FacetCustomization.uiCustom"
- loadByDefault="true">
- </browserCustomization>
- </extension>
-
-</plugin>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetCustomization.uiCustom b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetCustomization.uiCustom
deleted file mode 100644
index 6f983f6..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetCustomization.uiCustom
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable">
- <types metaclassName="papyrustable.PapyrusTable">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:JavaModelQuery" href="emffacet:/query/TableEFacetQuery#GetTableName"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="icon">
- <defaultValue xsi:type="uicustom:DerivedFeatureValue">
- <valueCalculator xsi:type="query:JavaModelQuery" href="emffacet:/query/TableEFacetQuery#GetTableIcon"/>
- </defaultValue>
- </customizedFeatures>
- <customizedFeatures customizedFeature="hideMetaclassName">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- <references referenceName="table">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="feature">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="queries">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- <references referenceName="contextFeature">
- <customizedFeatures>
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
- </customizedFeatures>
- </references>
- </types>
-</uicustom:MetamodelView>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetQuery.querySet b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetQuery.querySet
deleted file mode 100644
index 5c30d18..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacetQuery.querySet
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="TableEFacetQuery">
- <associatedMetamodels href="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable#/"/>
- <associatedMetamodels href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/Types#/"/>
- <queries xsi:type="query:JavaModelQuery" name="IsTableContainer" description="Returns true if the element contains a Table" implementationClassName="org.eclipse.papyrus.infra.table.efacet.queries.IsTableContainer">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
- <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
- </queries>
- <queries xsi:type="query:JavaModelQuery" name="GetContainedTables" description="Get the collection of all contained tables" upperBound="-1" implementationClassName="org.eclipse.papyrus.infra.table.efacet.queries.GetContainedTables">
- <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable#//PapyrusTable"/>
- <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
- </queries>
- <queries xsi:type="query:JavaModelQuery" name="GetTableIcon" description="Return the path to the icon of the corresponding table" implementationClassName="org.eclipse.papyrus.infra.table.efacet.queries.GetTableIcon">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- <scope href="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable#//PapyrusTable"/>
- </queries>
- <queries xsi:type="query:JavaModelQuery" name="GetTableName" description="Return the name for the table" implementationClassName="org.eclipse.papyrus.infra.table.efacet.queries.GetTableName">
- <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//String"/>
- <scope href="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable#//PapyrusTable"/>
- </queries>
-</query:ModelQuerySet>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_Facet.facetSet b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_Facet.facetSet
deleted file mode 100644
index df451b6..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_Facet.facetSet
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<facet:FacetSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:facet="http://www.eclipse.org/EmfFacet/infra/facet/0.8.incubation" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="TableEFacet_Facet" nsURI="http://www.eclipse.org/papyrus/TableEFacet_Facet" nsPrefix="TableEFacet_Facet">
- <eClassifiers xsi:type="facet:Facet" name="TableEFacetContainer" abstract="true">
- <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
- <eStructuralFeatures xsi:type="facet:FacetReference" name="tables" upperBound="-1" volatile="true" unsettable="true">
- <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/Papyrus/PapyrusTable/0.9.0/papyrustable#//PapyrusTable"/>
- <valueQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/TableEFacetQuery#GetContainedTables"/>
- </eStructuralFeatures>
- <conditionQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/TableEFacetQuery#IsTableContainer"/>
- </eClassifiers>
- <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
-</facet:FacetSet>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_FacetCustomization.uiCustom b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_FacetCustomization.uiCustom
deleted file mode 100644
index 7f3885c..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/resources/TableEFacet_FacetCustomization.uiCustom
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/papyrus/TableEFacet_Facet">
- <types metaclassName="TableEFacet_Facet.TableEFacetContainer">
- <references referenceName="tables">
- <customizedFeatures customizedFeature="label">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="super>Tutu"/>
- </customizedFeatures>
- <customizedFeatures customizedFeature="collapseLink">
- <defaultValue xsi:type="uicustom:StaticFeatureValue" value="true"/>
- </customizedFeatures>
- </references>
- </types>
-</uicustom:MetamodelView>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/Activator.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/Activator.java
deleted file mode 100644
index 333c2d0..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/Activator.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/** The activator class controls the plug-in life cycle */
-public class Activator extends Plugin {
-
- // The shared instance
- private static Activator plugin;
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.table.efacet"; //$NON-NLS-1$
-
- @Override
- public void start(final BundleContext context) throws Exception {
- super.start(context);
- Activator.plugin = this;
- }
-
- @Override
- public void stop(final BundleContext context) throws Exception {
- Activator.plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return Activator.plugin;
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractEditorContainerQuery.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractEditorContainerQuery.java
deleted file mode 100644
index fd9ec5c..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractEditorContainerQuery.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
-import org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageMngr;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
-import org.eclipse.papyrus.infra.core.utils.EditorUtils;
-import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
-
-/**
- *
- * An abstract class to get the pageMngr
- *
- */
-//TODO duplicated code from modelexplorer.views
-//TODO should be refactored and store into an upper plugin like oep.infra.core.xxx
-public abstract class AbstractEditorContainerQuery {//we don't need to implements IJavaModelQuery here
-
- /**
- *
- * @return
- * @throws ServiceException
- */
- protected IPageMngr getPageMngr() throws ServiceException {
- // pageMngr can't be static, because there is a new IPageMngr each time we open a Papyrus Editor
- final IMultiDiagramEditor papyrusEditor = EditorUtils.getMultiDiagramEditor();
- if(papyrusEditor != null) {
- final ServicesRegistry serviceRegistry = papyrusEditor.getServicesRegistry();
- return ServiceUtils.getInstance().getIPageMngr(serviceRegistry);
- }
- throw new ServiceException("Can't retrieve the IPageMngr"); //$NON-NLS-1$
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractGetEditorIconQuery.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractGetEditorIconQuery.java
deleted file mode 100644
index bed379f..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/AbstractGetEditorIconQuery.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.papyrus.infra.core.editorsfactory.IPageIconsRegistry;
-import org.eclipse.papyrus.infra.core.editorsfactory.IPageIconsRegistryExtended;
-import org.eclipse.papyrus.infra.core.editorsfactory.PageIconsRegistry;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.utils.EditorUtils;
-
-/**
- *
- * An abstract class to get the iconRegistery
- *
- */
-//TODO duplicated code from modelexplorer.views
-//TODO should be refactored and store into an upper plugin like oep.infra.core.xxx
-public abstract class AbstractGetEditorIconQuery {//we don't need to implements IJavaModelQuery here
-
- /**
- * the icon registry
- */
- private static IPageIconsRegistry editorRegistry;
-
- /**
- * Get the EditorRegistry used to create editor instances. This default
- * implementation return the singleton eINSTANCE. This method can be
- * subclassed to return another registry.
- *
- * @return the singleton eINSTANCE of editor registry
- */
- protected IPageIconsRegistryExtended getEditorRegistry() {
- if(editorRegistry == null) {
- editorRegistry = createEditorRegistry();
- }
- if(!(editorRegistry instanceof IPageIconsRegistryExtended)) {
- throw new RuntimeException("The editor registry do not implement IPageIconsRegistryExtended");////$NON-NLS-1$
- }
- return (IPageIconsRegistryExtended)editorRegistry;
- }
-
- /**
- * Return the EditorRegistry for nested editor descriptors. Subclass should
- * implements this method in order to return the registry associated to the
- * extension point namespace.
- *
- * @return the EditorRegistry for nested editor descriptors
- * FIXME : use a deprecated method
- */
- protected IPageIconsRegistry createEditorRegistry() {
- try {
- return EditorUtils.getServiceRegistry().getService(IPageIconsRegistry.class);
- } catch (final ServiceException e) {
- // Not found, return an empty one which return null for each
- // request.
- return new PageIconsRegistry();
- }
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetContainedTables.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetContainedTables.java
deleted file mode 100644
index da01cb9..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetContainedTables.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.EStructuralFeature.Setting;
-import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
-import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
-import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
-import org.eclipse.emf.facet.widgets.table.metamodel.v0_2_0.table.Table;
-import org.eclipse.emf.facet.widgets.table.metamodel.v0_2_0.table.TablePackage;
-import org.eclipse.papyrus.infra.core.utils.PapyrusEcoreUtils;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrustablePackage;
-import org.eclipse.uml2.uml.Element;
-
-import com.google.common.base.Function;
-import com.google.common.base.Predicate;
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Sets;
-
-/** Get the collection of all contained tables */
-//FIXME this query is declared using Element in the querySet -> change into EObject when the EMF-Facet bug will be corrected 365744
-
-public class GetContainedTables extends AbstractEditorContainerQuery implements IJavaModelQuery<Element, Collection<PapyrusTable>> {
-
- public Collection<PapyrusTable> evaluate(final Element context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
- final Predicate<EStructuralFeature.Setting> p = new Predicate<EStructuralFeature.Setting>() {
-
- public boolean apply(final EStructuralFeature.Setting setting) {
- return setting.getEObject() instanceof Table && setting.getEStructuralFeature() == TablePackage.Literals.TABLE__CONTEXT;
- }
- };
- final Function<EStructuralFeature.Setting, PapyrusTable> f = new Function<EStructuralFeature.Setting, PapyrusTable>() {
-
- public PapyrusTable apply(final EStructuralFeature.Setting setting) {
- final Collection<Setting> references = PapyrusEcoreUtils.getUsages(setting.getEObject());
- final Predicate<Setting> p2 = new Predicate<EStructuralFeature.Setting>() {
-
- public boolean apply(final Setting setting) {
- return setting.getEObject() instanceof PapyrusTable && PapyrustablePackage.Literals.PAPYRUS_TABLE__TABLE == setting.getEStructuralFeature();
- }
- };
- final Iterator<Setting> iterator = Iterables.filter(references, p2).iterator();
- if(iterator.hasNext()) {
- return (PapyrusTable)iterator.next().getEObject();
- }
- return null;
- }
-
- };
-
- Iterable<PapyrusTable> transform = Iterables.transform(Iterables.filter(PapyrusEcoreUtils.getUsages(context), p), f);
- transform = Iterables.filter(transform, new Predicate<PapyrusTable>() {
-
- public boolean apply(final PapyrusTable table) {
- return table != null;
- }
- });
- return Sets.newHashSet(transform);
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableIcon.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableIcon.java
deleted file mode 100644
index 6ce506e..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableIcon.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
-import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
-import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-
-/** Return the path to the icon of the corresponding table */
-public class GetTableIcon extends AbstractGetEditorIconQuery implements IJavaModelQuery<PapyrusTable, String> {
-
- /**
- * {@inheritDoc}
- */
- public String evaluate(final PapyrusTable context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
- return "/" + getEditorRegistry().getEditorURLIcon(context); //$NON-NLS-1$
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java
deleted file mode 100644
index e2eb1e2..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/GetTableName.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
-import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
-import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
-import org.eclipse.papyrus.infra.table.efacet.metamodel.papyrustable.PapyrusTable;
-
-/** Return the name for the table */
-public class GetTableName implements IJavaModelQuery<PapyrusTable, String> {
-
- public String evaluate(final PapyrusTable context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
- return context.getName() + " (new)";
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java b/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java
deleted file mode 100644
index 1c7dcc5..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.infra.table.efacet/src/org/eclipse/papyrus/infra/table/efacet/queries/IsTableContainer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.eclipse.papyrus.infra.table.efacet.queries;
-
-import org.eclipse.emf.ecore.EStructuralFeature.Setting;
-import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
-import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
-import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
-import org.eclipse.emf.facet.widgets.table.metamodel.v0_2_0.table.Table;
-import org.eclipse.emf.facet.widgets.table.metamodel.v0_2_0.table.TablePackage;
-import org.eclipse.papyrus.views.modelexplorer.NavigatorUtils;
-import org.eclipse.uml2.uml.Element;
-
-import com.google.common.base.Predicate;
-
-/** Returns true if the element contains a Table */
-//FIXME this query is declared using Element in the querySet -> change into EObject when the EMF-Facet bug will be corrected 365744
-//FIXME : remove the dependencies on the ModelExplorer
-public class IsTableContainer extends AbstractEditorContainerQuery implements IJavaModelQuery<Element, Boolean> {
-
- /**
- * {@inheritDoc}
- */
- public Boolean evaluate(final Element context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
- final Predicate<Setting> p = new Predicate<Setting>() {
-
- public boolean apply(final Setting arg0) {
- return arg0.getEObject() instanceof Table && arg0.getEStructuralFeature() == TablePackage.Literals.TABLE__CONTEXT;
- }
- };
- final boolean result = NavigatorUtils.find(context, p);
- return NavigatorUtils.find(context, p);
- }
-}