summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 10:20:24 (EDT)
committerLaurent Wouters2014-04-04 10:20:24 (EDT)
commit04376aa917c9ee08d86d235d4d7b85d591dd2a5b (patch)
treed7cf9157ffa3944cb61e603a7a821a5d7a2a2fd3
parent5f0e59765c0800297e81d4e9a2c29b880b1a8629 (diff)
downloadorg.eclipse.papyrus-04376aa917c9ee08d86d235d4d7b85d591dd2a5b.zip
org.eclipse.papyrus-04376aa917c9ee08d86d235d4d7b85d591dd2a5b.tar.gz
org.eclipse.papyrus-04376aa917c9ee08d86d235d4d7b85d591dd2a5b.tar.bz2
[clean] Retiring org.eclipse.papyrus.uml.efacetlast/org.eclipse.papyrus.uml.efacet
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.classpath7
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.project29
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/META-INF/MANIFEST.MF13
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/build.properties5
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/plugin.xml13
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml.efacet17
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml_label.custom15
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/Activator.java50
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/GetStereotypedLabelForNamedElementQuery.java44
-rw-r--r--deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/IsUMLElementQuery.java68
11 files changed, 0 insertions, 268 deletions
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.classpath b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.classpath
deleted file mode 100644
index 2d1a430..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.project b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.project
deleted file mode 100644
index b83c6fc..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.uml.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>
- </buildSpec>
- <natures>
- <nature>org.eclipse.emf.facet.common.ProjectNature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.settings/org.eclipse.jdt.core.prefs b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 44217f8..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-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/TableEFacet/org.eclipse.papyrus.uml.efacet/META-INF/MANIFEST.MF b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/META-INF/MANIFEST.MF
deleted file mode 100644
index 9b64eef..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,13 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.emf.facet.query.java.core,
- org.eclipse.uml2.uml
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 0.10.1.qualifier
-Bundle-Name: Customization for UML (Incubation)
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.uml.efacet.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.uml.efacet;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/build.properties b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/build.properties
deleted file mode 100644
index 6f20375..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/plugin.xml b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/plugin.xml
deleted file mode 100644
index ad206a1..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/plugin.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?eclipse version="3.4"?>
-
-<plugin>
- <extension point="org.eclipse.emf.facet.util.emf.core.modeldeclaration">
- <modeldeclaration file="resources/uml_label.custom">
- </modeldeclaration>
- </extension>
-
- <extension point="org.eclipse.emf.facet.util.emf.core.modeldeclaration">
- <modeldeclaration file="resources/uml.efacet"/>
- </extension>
-</plugin>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml.efacet b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml.efacet
deleted file mode 100644
index 02d135c..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml.efacet
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<efacet: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:efacet="http://www.eclipse.org/emf/facet/efacet/0.2.incubation/efacet" xmlns:javaQuery="http://www.eclipse.org/emf/facet/query/java/0.2.incubation/javaquery" xmlns:query="http://www.eclipse.org/emf/facet/efacet/0.2.incubation/efacet/query" name="uml_efacet" nsURI="papyrus" nsPrefix="prefix">
- <eClassifiers xsi:type="efacet:Facet" name="uml_element">
- <extendedMetaclass href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
- <facetElements xsi:type="efacet:FacetAttribute" name="isUMLElement" derived="true" documentation="true if the author wrote more than 8 books">
- <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <query xsi:type="query:OperationCallQuery" operation="//uml_element/isUMLElementQuery"/>
- </facetElements>
- <facetOperations name="isUMLElementQuery" lowerBound="1" documentation="Returns true if the Eobject is an UML element">
- <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- <eParameters name="eStructuralFeature">
- <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//ETypedElement"/>
- </eParameters>
- <query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.uml.efacet.queries.IsUMLElementQuery"/>
- </facetOperations>
- </eClassifiers>
-</efacet:FacetSet>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml_label.custom b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml_label.custom
deleted file mode 100644
index 5275aa0..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/resources/uml_label.custom
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<custom:Customization xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:custom="http://www.eclipse.org/emf/facet/custom/0.2.incubation/custom" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:efacet="http://www.eclipse.org/emf/facet/efacet/0.2.incubation/efacet" xmlns:javaQuery="http://www.eclipse.org/emf/facet/query/java/0.2.incubation/javaquery" name="papyrus_uml_customization">
- <eClassifiers xsi:type="custom:EClassCustomization" name="uml_label_">
- <extendedMetaclass href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
- <facetOperations name="label" lowerBound="1" documentation="Returns the label for the element">
- <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eParameters name="eStructuralFeature">
- <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//ETypedElement"/>
- </eParameters>
- <query xsi:type="javaQuery:JavaQuery" implementationClassName="org.eclipse.papyrus.uml.efacet.queries.GetStereotypedLabelForNamedElementQuery"/>
- <override xsi:type="efacet:FacetOperation" href="platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject/label"/>
- </facetOperations>
- <extendedFacets href="platform:/plugin/org.eclipse.emf.facet.custom.ui/resources/customproperties.efacet#//CustomizedEObject"/>
- </eClassifiers>
-</custom:Customization>
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/Activator.java b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/Activator.java
deleted file mode 100644
index 2f0f571..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/Activator.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.eclipse.papyrus.uml.efacet;
-
-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.uml.customization"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/GetStereotypedLabelForNamedElementQuery.java b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/GetStereotypedLabelForNamedElementQuery.java
deleted file mode 100644
index 62f76e9..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/GetStereotypedLabelForNamedElementQuery.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.eclipse.papyrus.uml.efacet.queries;
-
-import java.util.List;
-
-import org.eclipse.emf.facet.efacet.core.IFacetManager;
-import org.eclipse.emf.facet.efacet.core.exception.DerivedTypedElementException;
-import org.eclipse.emf.facet.query.java.core.IJavaQuery2;
-import org.eclipse.emf.facet.query.java.core.IParameterValueList2;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Stereotype;
-
-/**
- *
- * Duplicate code from org.eclipse.papyrus.uml.modelexplorer. This code moved
- * when we rewrite the customization for uml.
- */
-//TODO : we should write the customization for unamed UML element in order to display stertype and : body for comment, class for generalization?, ...
-//TODO : move the implementation of the query in an upper plugin
-public class GetStereotypedLabelForNamedElementQuery implements IJavaQuery2<NamedElement, String> {
-
- /** left Stereotype delimiters ('Guillemets francais'). */
- public static String ST_LEFT = String.valueOf("\u00AB"); //$NON-NLS-1$
-
- /** Right Stereotype delimiters ('Guillemets francais'). */
- public static String ST_RIGHT = String.valueOf("\u00BB"); //$NON-NLS-1$
-
- public String evaluate(final NamedElement context, IParameterValueList2 parameterValues, IFacetManager facetManager) throws DerivedTypedElementException {
- //TODO : move this part of the code in an upper plugin
- String txt = ""; //$NON-NLS-1$
- List<Stereotype> stereoList = context.getAppliedStereotypes();
- if(stereoList.size() == 0) {
- return context.getName();
- } else {
- for(int i = 0; i < stereoList.size(); i++) {
- txt = txt + stereoList.get(i).getName();
- if(i < stereoList.size() - 1) {
- txt = txt + ", "; //$NON-NLS-1$
- }
- }
- txt = ST_LEFT + txt + ST_RIGHT + " " + context.getName(); //$NON-NLS-1$
- return txt;
- }
- }
-}
diff --git a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/IsUMLElementQuery.java b/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/IsUMLElementQuery.java
deleted file mode 100644
index 982ab4f..0000000
--- a/deprecated/TableEFacet/org.eclipse.papyrus.uml.efacet/src/org/eclipse/papyrus/uml/efacet/queries/IsUMLElementQuery.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.eclipse.papyrus.uml.efacet.queries;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.facet.efacet.core.IFacetManager;
-import org.eclipse.emf.facet.efacet.core.exception.DerivedTypedElementException;
-import org.eclipse.emf.facet.query.java.core.IJavaQuery2;
-import org.eclipse.emf.facet.query.java.core.IParameterValueList2;
-import org.eclipse.uml2.uml.Element;
-
-/**
- *
- * Duplicate code from org.eclipse.papyrus.uml.modelexplorer. This code moved
- * when we rewrite the customization for uml.
- */
-public class IsUMLElementQuery implements IJavaQuery2<EObject, Boolean> {
-
- public Boolean evaluate(final EObject context,
- IParameterValueList2 parameterValues, IFacetManager facetManager)
- throws DerivedTypedElementException {
- return context instanceof Element;
- }
-
-}
-
-// /*
-// *
-// */
-// package org.eclipse.papyrus.uml.modelexplorer.queries;
-//
-// import java.util.List;
-//
-// 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.uml2.uml.NamedElement;
-// import org.eclipse.uml2.uml.Stereotype;
-//
-// /** get the name + the list of applied stereotypes */
-// public class GetComplexName implements IJavaModelQuery<NamedElement, String>
-// {
-// /** left Stereotype delimiters ('Guillemets francais'). */
-// public static String ST_LEFT = String.valueOf("\u00AB"); //$NON-NLS-1$
-//
-// /** Right Stereotype delimiters ('Guillemets francais'). */
-// public static String ST_RIGHT = String.valueOf("\u00BB"); //$NON-NLS-1$
-//
-// public String evaluate(final NamedElement context,
-// final ParameterValueList parameterValues)
-// throws ModelQueryExecutionException {
-// // TODO Auto-generated method stub
-// String txt = ""; //$NON-NLS-1$
-// List<Stereotype> stereoList = context.getAppliedStereotypes();
-// if (stereoList.size() == 0) {
-// return context.getName();
-// } else {
-// for (int i = 0; i < stereoList.size(); i++) {
-// txt = txt + stereoList.get(i).getName();
-// if (i < stereoList.size() - 1) {
-// txt = txt + ", "; //$NON-NLS-1$
-// }
-// }
-// txt = ST_LEFT + txt + ST_RIGHT + " " + context.getName(); //$NON-NLS-1$
-// return txt;
-// }
-// }
-// }
-