summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 10:12:27 (EDT)
committerLaurent Wouters2014-04-04 10:12:27 (EDT)
commitfb36e87405e0b67807e6d1bbcf5268d11487202b (patch)
treea16f9a17d386266060154ab3af240ea00ce91e35
parent6253d6e2d97971b685422bd5ad59322a915714f1 (diff)
downloadorg.eclipse.papyrus-fb36e87405e0b67807e6d1bbcf5268d11487202b.zip
org.eclipse.papyrus-fb36e87405e0b67807e6d1bbcf5268d11487202b.tar.gz
org.eclipse.papyrus-fb36e87405e0b67807e6d1bbcf5268d11487202b.tar.bz2
[clean] Retiring org.eclipse.papyrus.resourcelast/org.eclipse.papyrus.resource
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/org.eclipse.papyrus.resource/.classpath7
-rw-r--r--deprecated/org.eclipse.papyrus.resource/.project28
-rw-r--r--deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.gmf.bridge.ui.dashboard.prefs7
-rw-r--r--deprecated/org.eclipse.papyrus.resource/.svnignore1
-rw-r--r--deprecated/org.eclipse.papyrus.resource/META-INF/MANIFEST.MF18
-rw-r--r--deprecated/org.eclipse.papyrus.resource/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.resource/build.properties8
-rw-r--r--deprecated/org.eclipse.papyrus.resource/model/resource.ecore15
-rw-r--r--deprecated/org.eclipse.papyrus.resource/model/resource.ecorediag41
-rw-r--r--deprecated/org.eclipse.papyrus.resource/model/resource.genmodel19
-rw-r--r--deprecated/org.eclipse.papyrus.resource/plugin.properties15
-rw-r--r--deprecated/org.eclipse.papyrus.resource/plugin.xml30
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/Resource.java60
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceEObject.java28
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceFactory.java60
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourcePackage.java199
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/filters/HideStereotypeApplicationsViewerFilter.java40
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceEObjectImpl.java50
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceFactoryImpl.java118
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java189
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourcePackageImpl.java220
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceAdapterFactory.java147
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceSwitch.java155
-rw-r--r--deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceUtil.java94
25 files changed, 0 insertions, 1580 deletions
diff --git a/deprecated/org.eclipse.papyrus.resource/.classpath b/deprecated/org.eclipse.papyrus.resource/.classpath
deleted file mode 100644
index 45f024e..0000000
--- a/deprecated/org.eclipse.papyrus.resource/.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/org.eclipse.papyrus.resource/.project b/deprecated/org.eclipse.papyrus.resource/.project
deleted file mode 100644
index 0811569..0000000
--- a/deprecated/org.eclipse.papyrus.resource/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.resource</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.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.core.resources.prefs b/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index b2c5fda..0000000
--- a/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Oct 01 10:44:12 CEST 2009
-eclipse.preferences.version=1
-encoding//model/resource.ecorediag=UTF-8
diff --git a/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.gmf.bridge.ui.dashboard.prefs b/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.gmf.bridge.ui.dashboard.prefs
deleted file mode 100644
index ccfe185..0000000
--- a/deprecated/org.eclipse.papyrus.resource/.settings/org.eclipse.gmf.bridge.ui.dashboard.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Thu Oct 01 11:12:06 CEST 2009
-eclipse.preferences.version=1
-gmf_dashboard/domainGenerationModel=platform\:/resource/org.eclipse.papyrus.sysml/model/SysML.profile.genmodel
-gmf_dashboard/domainModel=platform\:/resource/org.eclipse.papyrus.sysml/model/sysml.ecore
-gmf_dashboard/graphicalDefinitionModel=platform\:/resource/org.eclipse.papyrus.sysml/model/sysml.gmfgraph
-gmf_dashboard/mappingModel=platform\:/resource/org.eclipse.papyrus.sysml/model/sysm1.gmfmap
-gmf_dashboard/toolingDefinitionModel=platform\:/resource/org.eclipse.papyrus.sysml/model/sysml.gmftool
diff --git a/deprecated/org.eclipse.papyrus.resource/.svnignore b/deprecated/org.eclipse.papyrus.resource/.svnignore
deleted file mode 100644
index c5e82d7..0000000
--- a/deprecated/org.eclipse.papyrus.resource/.svnignore
+++ /dev/null
@@ -1 +0,0 @@
-bin \ No newline at end of file
diff --git a/deprecated/org.eclipse.papyrus.resource/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.resource/META-INF/MANIFEST.MF
deleted file mode 100644
index 0b0c420..0000000
--- a/deprecated/org.eclipse.papyrus.resource/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,18 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.ecore;visibility:=reexport,
- org.eclipse.ui.navigator,
- org.eclipse.jface
-Export-Package: org.eclipse.papyrus.resource,
- org.eclipse.papyrus.resource.impl,
- org.eclipse.papyrus.resource.util
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .
-Bundle-Version: 0.9.0.qualifier
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.resource;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/org.eclipse.papyrus.resource/about.html b/deprecated/org.eclipse.papyrus.resource/about.html
deleted file mode 100644
index 35b45e0..0000000
--- a/deprecated/org.eclipse.papyrus.resource/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>September 30, 2009</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/deprecated/org.eclipse.papyrus.resource/build.properties b/deprecated/org.eclipse.papyrus.resource/build.properties
deleted file mode 100644
index 64272a1..0000000
--- a/deprecated/org.eclipse.papyrus.resource/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-#Mon Sep 12 09:30:10 CEST 2011
-output..=bin/
-bin.includes=.,model/,META-INF/,plugin.xml,plugin.properties,about.html
-jars.compile.order=.
-src.includes=.,model/,META-INF/,plugin.xml,plugin.properties,about.html
-source..=src/
-bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.resource/model/resource.ecore b/deprecated/org.eclipse.papyrus.resource/model/resource.ecore
deleted file mode 100644
index 6b01cf9..0000000
--- a/deprecated/org.eclipse.papyrus.resource/model/resource.ecore
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="resource"
- nsURI="http://www.eclipse.org/papyurs/0.7.0/Resource" nsPrefix="resource">
- <eClassifiers xsi:type="ecore:EClass" name="Resource">
- <eOperations name="setResource">
- <eParameters name="r" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EResource"/>
- </eOperations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="eobjects" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject" volatile="true"
- transient="true" containment="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ResourceEObject" eSuperTypes="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
-</ecore:EPackage>
diff --git a/deprecated/org.eclipse.papyrus.resource/model/resource.ecorediag b/deprecated/org.eclipse.papyrus.resource/model/resource.ecorediag
deleted file mode 100644
index 3c3f7f3..0000000
--- a/deprecated/org.eclipse.papyrus.resource/model/resource.ecorediag
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmi:id="_l43mkK5mEd6h2ecTXi7wcw" type="EcoreTools" name="resource.ecorediag" measurementUnit="Pixel">
- <children xmi:type="notation:Node" xmi:id="_l5eDgK5mEd6h2ecTXi7wcw" type="1001">
- <children xmi:type="notation:Node" xmi:id="_l5eDg65mEd6h2ecTXi7wcw" type="4001"/>
- <children xmi:type="notation:Node" xmi:id="_l5eDhK5mEd6h2ecTXi7wcw" type="5001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_l5eDha5mEd6h2ecTXi7wcw"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_l5eDhq5mEd6h2ecTXi7wcw"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_l5eDh65mEd6h2ecTXi7wcw"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_l5eDiK5mEd6h2ecTXi7wcw" type="5002">
- <children xmi:type="notation:Node" xmi:id="_n7r08eWzEd6SJ_7l1eHvag" type="2002">
- <element xmi:type="ecore:EOperation" href="resource.ecore#//Resource/setResource"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_n7r08uWzEd6SJ_7l1eHvag"/>
- </children>
- <styles xmi:type="notation:DrawerStyle" xmi:id="_l5eDia5mEd6h2ecTXi7wcw"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_l5eDiq5mEd6h2ecTXi7wcw"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_l5eDi65mEd6h2ecTXi7wcw"/>
- </children>
- <styles xmi:type="notation:ShapeStyle" xmi:id="_l5eDga5mEd6h2ecTXi7wcw" fontColor="4210752" fontName="Microsoft Sans Serif" fontHeight="10" fillColor="13761016" lineColor="8421504"/>
- <element xmi:type="ecore:EClass" href="resource.ecore#//Resource"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l5eDgq5mEd6h2ecTXi7wcw" x="130" y="115"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_A3Rw8K5rEd6xDPdY34V9OQ" type="1001">
- <children xmi:type="notation:Node" xmi:id="_A3bh8K5rEd6xDPdY34V9OQ" type="4001"/>
- <children xmi:type="notation:Node" xmi:id="_A3bh8a5rEd6xDPdY34V9OQ" type="5001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_A3bh8q5rEd6xDPdY34V9OQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_A3bh865rEd6xDPdY34V9OQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_A3bh9K5rEd6xDPdY34V9OQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_A3bh9a5rEd6xDPdY34V9OQ" type="5002">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_A3bh9q5rEd6xDPdY34V9OQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_A3bh965rEd6xDPdY34V9OQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_A3bh-K5rEd6xDPdY34V9OQ"/>
- </children>
- <styles xmi:type="notation:ShapeStyle" xmi:id="_A3Rw8a5rEd6xDPdY34V9OQ" fontColor="4210752" fontName="Microsoft Sans Serif" fontHeight="10" fillColor="13761016" lineColor="8421504"/>
- <element xmi:type="ecore:EClass" href="resource.ecore#//ResourceEObject"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_A3Rw8q5rEd6xDPdY34V9OQ" x="25" y="365"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_l43mka5mEd6h2ecTXi7wcw"/>
- <element xmi:type="ecore:EPackage" href="resource.ecore#/"/>
-</notation:Diagram>
diff --git a/deprecated/org.eclipse.papyrus.resource/model/resource.genmodel b/deprecated/org.eclipse.papyrus.resource/model/resource.genmodel
deleted file mode 100644
index 5c55c82..0000000
--- a/deprecated/org.eclipse.papyrus.resource/model/resource.genmodel
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.resource/src"
- editorDirectory="" modelPluginID="org.eclipse.papyrus.resource" modelName="Resource"
- testsDirectory="" importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0"
- copyrightFields="false">
- <foreignModel>resource.ecore</foreignModel>
- <genPackages prefix="Resource" basePackage="org.eclipse.papyrus" disposableProviderFactory="true"
- ecorePackage="resource.ecore#/">
- <genClasses ecoreClass="resource.ecore#//Resource">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference resource.ecore#//Resource/eobjects"/>
- <genOperations ecoreOperation="resource.ecore#//Resource/setResource">
- <genParameters ecoreParameter="resource.ecore#//Resource/setResource/r"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="resource.ecore#//ResourceEObject"/>
- </genPackages>
-</genmodel:GenModel>
diff --git a/deprecated/org.eclipse.papyrus.resource/plugin.properties b/deprecated/org.eclipse.papyrus.resource/plugin.properties
deleted file mode 100644
index e3ff0b1..0000000
--- a/deprecated/org.eclipse.papyrus.resource/plugin.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-####################################################################################
-# Copyright (c) 2008 Atos Origin.
-#
-#
-# 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:
-# Emilien Perico (Atos Origin) emilien.perico@atosorigin.com - Initial API and implementation
-#
-##################################################################################
-pluginName = Papyrus Resource Model (Incubation)
-providerName=Eclipse Modeling Project
diff --git a/deprecated/org.eclipse.papyrus.resource/plugin.xml b/deprecated/org.eclipse.papyrus.resource/plugin.xml
deleted file mode 100644
index 6f1e188..0000000
--- a/deprecated/org.eclipse.papyrus.resource/plugin.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-
-<!--
- <copyright>
- </copyright>
-
- $Id$
--->
-
-<plugin>
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <package
- uri="http://www.eclipse.org/papyurs/0.7.0/Resource"
- class="org.eclipse.papyrus.resource.ResourcePackage"
- genModel="model/resource.genmodel"/>
- </extension>
- <extension
- point="org.eclipse.ui.navigator.navigatorContent">
- <commonFilter
- activeByDefault="true"
- class="org.eclipse.papyrus.resource.filters.HideStereotypeApplicationsViewerFilter"
- description="Hide Steretype Applications items in the navigator"
- id="org.eclipse.papyrus.navigator.filters.HideStereotypeApplicationsViewerFilter"
- name="Stereotype Applications">
- </commonFilter>
- </extension>
-
-</plugin>
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/Resource.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/Resource.java
deleted file mode 100644
index 57f9450..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/Resource.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>Resource</b></em>'. <!--
- * end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.resource.Resource#getEobjects <em>Eobjects</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.resource.ResourcePackage#getResource()
- * @model
- * @generated
- */
-public interface Resource extends EObject {
-
- /**
- * Returns the value of the '<em><b>Eobjects</b></em>' containment reference list. The list
- * contents are of type {@link org.eclipse.emf.ecore.EObject}. <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Eobjects</em>' containment reference list isn't clear, there
- * really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Eobjects</em>' containment reference list.
- * @see org.eclipse.papyrus.resource.ResourcePackage#getResource_Eobjects()
- * @model containment="true" transient="true" volatile="true"
- * @generated
- */
- EList<EObject> getEobjects();
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @model
- * @generated
- */
- void setResource(org.eclipse.emf.ecore.resource.Resource r);
-
-} // Resource
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceEObject.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceEObject.java
deleted file mode 100644
index 37dcb22..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceEObject.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc --> A representation of the model object '<em><b>EObject</b></em>'. <!--
- * end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.resource.ResourcePackage#getResourceEObject()
- * @model
- * @generated
- */
-public interface ResourceEObject extends EObject {
-} // ResourceEObject
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceFactory.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceFactory.java
deleted file mode 100644
index d77a920..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourceFactory.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each
- * non-abstract class of the model. <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.ResourcePackage
- * @generated
- */
-public interface ResourceFactory extends EFactory {
-
- /**
- * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- ResourceFactory eINSTANCE = org.eclipse.papyrus.resource.impl.ResourceFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Resource</em>'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return a new object of class '<em>Resource</em>'.
- * @generated
- */
- Resource createResource();
-
- /**
- * Returns a new object of class '<em>EObject</em>'. <!-- begin-user-doc --> <!-- end-user-doc
- * -->
- *
- * @return a new object of class '<em>EObject</em>'.
- * @generated
- */
- ResourceEObject createResourceEObject();
-
- /**
- * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- ResourcePackage getResourcePackage();
-
-} // ResourceFactory
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourcePackage.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourcePackage.java
deleted file mode 100644
index 10f9435..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/ResourcePackage.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EcorePackage;
-
-/**
- * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta
- * objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.ResourceFactory
- * @model kind="package"
- * @generated
- */
-public interface ResourcePackage extends EPackage {
-
- /**
- * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "resource";
-
- /**
- * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyurs/0.7.0/Resource";
-
- /**
- * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "resource";
-
- /**
- * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- ResourcePackage eINSTANCE = org.eclipse.papyrus.resource.impl.ResourcePackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.resource.impl.ResourceImpl
- * <em>Resource</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.impl.ResourceImpl
- * @see org.eclipse.papyrus.resource.impl.ResourcePackageImpl#getResource()
- * @generated
- */
- int RESOURCE = 0;
-
- /**
- * The feature id for the '<em><b>Eobjects</b></em>' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE__EOBJECTS = 0;
-
- /**
- * The number of structural features of the '<em>Resource</em>' class. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.resource.impl.ResourceEObjectImpl
- * <em>EObject</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.impl.ResourceEObjectImpl
- * @see org.eclipse.papyrus.resource.impl.ResourcePackageImpl#getResourceEObject()
- * @generated
- */
- int RESOURCE_EOBJECT = 1;
-
- /**
- * The number of structural features of the '<em>EObject</em>' class. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int RESOURCE_EOBJECT_FEATURE_COUNT = EcorePackage.EOBJECT_FEATURE_COUNT + 0;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.resource.Resource
- * <em>Resource</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Resource</em>'.
- * @see org.eclipse.papyrus.resource.Resource
- * @generated
- */
- EClass getResource();
-
- /**
- * Returns the meta object for the containment reference list '
- * {@link org.eclipse.papyrus.resource.Resource#getEobjects <em>Eobjects</em>}'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Eobjects</em>'.
- * @see org.eclipse.papyrus.resource.Resource#getEobjects()
- * @see #getResource()
- * @generated
- */
- EReference getResource_Eobjects();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.resource.ResourceEObject
- * <em>EObject</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>EObject</em>'.
- * @see org.eclipse.papyrus.resource.ResourceEObject
- * @generated
- */
- EClass getResourceEObject();
-
- /**
- * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- ResourceFactory getResourceFactory();
-
- /**
- * <!-- begin-user-doc --> Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @generated
- */
- interface Literals {
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.resource.impl.ResourceImpl
- * <em>Resource</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.impl.ResourceImpl
- * @see org.eclipse.papyrus.resource.impl.ResourcePackageImpl#getResource()
- * @generated
- */
- EClass RESOURCE = eINSTANCE.getResource();
-
- /**
- * The meta object literal for the '<em><b>Eobjects</b></em>' containment reference list
- * feature. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- EReference RESOURCE__EOBJECTS = eINSTANCE.getResource_Eobjects();
-
- /**
- * The meta object literal for the '
- * {@link org.eclipse.papyrus.resource.impl.ResourceEObjectImpl <em>EObject</em>}' class.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.impl.ResourceEObjectImpl
- * @see org.eclipse.papyrus.resource.impl.ResourcePackageImpl#getResourceEObject()
- * @generated
- */
- EClass RESOURCE_EOBJECT = eINSTANCE.getResourceEObject();
-
- }
-
-} // ResourcePackage
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/filters/HideStereotypeApplicationsViewerFilter.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/filters/HideStereotypeApplicationsViewerFilter.java
deleted file mode 100644
index 1a28903..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/filters/HideStereotypeApplicationsViewerFilter.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Emilien Perico (Atos Origin) emilien.perico@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.filters;
-
-import org.eclipse.emf.ecore.impl.DynamicEObjectImpl;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.resource.ResourceEObject;
-
-/**
- * Filter Stereotype application elements in navigator in order to hide.
- *
- * @author eperico
- */
-public class HideStereotypeApplicationsViewerFilter extends ViewerFilter {
-
- /**
- * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer,
- * java.lang.Object, java.lang.Object)
- */
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element) {
- if (element instanceof DynamicEObjectImpl || element instanceof ResourceEObject) {
- return false;
- }
- return true;
- }
-
-}
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceEObjectImpl.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceEObjectImpl.java
deleted file mode 100644
index c8bbc2e..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceEObjectImpl.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.papyrus.resource.ResourceEObject;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>EObject</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ResourceEObjectImpl extends EObjectImpl implements ResourceEObject {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ResourceEObjectImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ResourcePackage.Literals.RESOURCE_EOBJECT;
- }
-
-} // ResourceEObjectImpl
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceFactoryImpl.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceFactoryImpl.java
deleted file mode 100644
index 3323674..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceFactoryImpl.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.papyrus.resource.*;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourceEObject;
-import org.eclipse.papyrus.resource.ResourceFactory;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
- *
- * @generated
- */
-public class ResourceFactoryImpl extends EFactoryImpl implements ResourceFactory {
-
- /**
- * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static ResourceFactory init() {
- try {
- ResourceFactory theResourceFactory = (ResourceFactory) EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/papyurs/0.7.0/Resource");
- if (theResourceFactory != null) {
- return theResourceFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ResourceFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case ResourcePackage.RESOURCE:
- return createResource();
- case ResourcePackage.RESOURCE_EOBJECT:
- return createResourceEObject();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Resource createResource() {
- ResourceImpl resource = new ResourceImpl();
- return resource;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceEObject createResourceEObject() {
- ResourceEObjectImpl resourceEObject = new ResourceEObjectImpl();
- return resourceEObject;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourcePackage getResourcePackage() {
- return (ResourcePackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ResourcePackage getPackage() {
- return ResourcePackage.eINSTANCE;
- }
-
-} // ResourceFactoryImpl
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java
deleted file mode 100644
index 23734bb..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourceImpl.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.impl;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.BasicEList;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>Resource</b></em>'. <!--
- * end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.resource.impl.ResourceImpl#getEobjects <em>Eobjects</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ResourceImpl extends EObjectImpl implements Resource {
-
- /**
- * Map to register the managed EMF resources with the papyrus resource TODO don't forget to
- * unload your resource after using it.
- */
- private static Map<org.eclipse.emf.ecore.resource.Resource, Resource> resources = new HashMap<org.eclipse.emf.ecore.resource.Resource, Resource>();
-
- private org.eclipse.emf.ecore.resource.Resource eobjectResource = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ResourceImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ResourcePackage.Literals.RESOURCE;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public EList<EObject> getEobjects() {
- if (eobjectResource != null) {
- return eobjectResource.getContents();
- }
- return new BasicEList<EObject>();
- }
-
- /**
- * Gets the Papyrus resource from the EMF resource
- *
- * @param r the EMF resource
- *
- * @return the Papyrus resource
- */
- public static Resource getResource(org.eclipse.emf.ecore.resource.Resource r) {
- return resources.get(r);
- }
-
- /**
- * <!-- begin-user-doc --> Register the EMF resource <!-- end-user-doc -->
- *
- * @generated NOT
- */
- public void setResource(org.eclipse.emf.ecore.resource.Resource r) {
- eobjectResource = r;
- resources.put(r, this);
- }
-
- /**
- * Unregister the EMF resource
- *
- * @param r
- * the resource
- */
- public static void dispose(org.eclipse.emf.ecore.resource.Resource r) {
- resources.remove(r);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case ResourcePackage.RESOURCE__EOBJECTS:
- return ((InternalEList<?>) getEobjects()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ResourcePackage.RESOURCE__EOBJECTS:
- return getEobjects();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ResourcePackage.RESOURCE__EOBJECTS:
- getEobjects().clear();
- getEobjects().addAll((Collection<? extends EObject>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ResourcePackage.RESOURCE__EOBJECTS:
- getEobjects().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ResourcePackage.RESOURCE__EOBJECTS:
- return !getEobjects().isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // ResourceImpl
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourcePackageImpl.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourcePackageImpl.java
deleted file mode 100644
index 2cb0af5..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/impl/ResourcePackageImpl.java
+++ /dev/null
@@ -1,220 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.impl;
-
-import static org.eclipse.papyrus.resource.ResourcePackage.RESOURCE;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EOperation;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourceEObject;
-import org.eclipse.papyrus.resource.ResourceFactory;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
- *
- * @generated
- */
-public class ResourcePackageImpl extends EPackageImpl implements ResourcePackage {
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass resourceEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass resourceEObjectEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI
- * value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init
- * init()}, which also performs initialization of the package, or returns the registered
- * package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.resource.ResourcePackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ResourcePackageImpl() {
- super(eNS_URI, ResourceFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others
- * upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link ResourcePackage#eINSTANCE} when that field is
- * accessed. Clients should not invoke it directly. Instead, they should simply access that
- * field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static ResourcePackage init() {
- if (isInited)
- return (ResourcePackage) EPackage.Registry.INSTANCE.getEPackage(ResourcePackage.eNS_URI);
-
- // Obtain or create and register package
- ResourcePackageImpl theResourcePackage = (ResourcePackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ResourcePackageImpl ? EPackage.Registry.INSTANCE
- .get(eNS_URI)
- : new ResourcePackageImpl());
-
- isInited = true;
-
- // Create package meta-data objects
- theResourcePackage.createPackageContents();
-
- // Initialize created meta-data
- theResourcePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theResourcePackage.freeze();
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ResourcePackage.eNS_URI, theResourcePackage);
- return theResourcePackage;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getResource() {
- return resourceEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getResource_Eobjects() {
- return (EReference) resourceEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getResourceEObject() {
- return resourceEObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceFactory getResourceFactory() {
- return (ResourceFactory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is guarded to have no affect on
- * any invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated)
- return;
- isCreated = true;
-
- // Create classes and their features
- resourceEClass = createEClass(RESOURCE);
- createEReference(resourceEClass, RESOURCE__EOBJECTS);
-
- resourceEObjectEClass = createEClass(RESOURCE_EOBJECT);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This method is guarded to have
- * no affect on any invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized)
- return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- resourceEObjectEClass.getESuperTypes().add(ecorePackage.getEObject());
-
- // Initialize classes and features; add operations and parameters
- initEClass(resourceEClass, Resource.class, "Resource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getResource_Eobjects(), ecorePackage.getEObject(), null, "eobjects", null, 0, -1,
- Resource.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
- !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- EOperation op = addEOperation(resourceEClass, null, "setResource", 0, 1, IS_UNIQUE, IS_ORDERED);
- addEParameter(op, ecorePackage.getEResource(), "r", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(resourceEObjectEClass, ResourceEObject.class, "ResourceEObject", !IS_ABSTRACT, !IS_INTERFACE,
- IS_GENERATED_INSTANCE_CLASS);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // ResourcePackageImpl
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceAdapterFactory.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceAdapterFactory.java
deleted file mode 100644
index a3bfe5f..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceAdapterFactory.java
+++ /dev/null
@@ -1,147 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.resource.*;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourceEObject;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter
- * <code>createXXX</code> method for each class of the model. <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.ResourcePackage
- * @generated
- */
-public class ResourceAdapterFactory extends AdapterFactoryImpl {
-
- /**
- * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ResourcePackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = ResourcePackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc
- * --> This implementation returns <code>true</code> if the object is either the model's package
- * or is an instance object of the model. <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- protected ResourceSwitch<Adapter> modelSwitch = new ResourceSwitch<Adapter>() {
-
- @Override
- public Adapter caseResource(Resource object) {
- return createResourceAdapter();
- }
-
- @Override
- public Adapter caseResourceEObject(ResourceEObject object) {
- return createResourceEObjectAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.resource.Resource
- * <em>Resource</em>}'. <!-- begin-user-doc --> This default implementation returns null so that
- * we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the
- * cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.resource.Resource
- * @generated
- */
- public Adapter createResourceAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.papyrus.resource.ResourceEObject <em>EObject</em>}'. <!-- begin-user-doc
- * --> This default implementation returns null so that we can easily ignore cases; it's useful
- * to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.resource.ResourceEObject
- * @generated
- */
- public Adapter createResourceEObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case. <!-- begin-user-doc --> This default
- * implementation returns null. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} // ResourceAdapterFactory
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceSwitch.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceSwitch.java
deleted file mode 100644
index d3d4eef..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceSwitch.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.resource.*;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourceEObject;
-import org.eclipse.papyrus.resource.ResourcePackage;
-
-/**
- * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the
- * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for
- * each class of the model, starting with the actual class of the object and proceeding up the
- * inheritance hierarchy until a non-null result is returned, which is the result of the switch.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.resource.ResourcePackage
- * @generated
- */
-public class ResourceSwitch<T> {
-
- /**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ResourcePackage modelPackage;
-
- /**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ResourceSwitch() {
- if (modelPackage == null) {
- modelPackage = ResourcePackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result;
- * it yields that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result;
- * it yields that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result;
- * it yields that result. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case ResourcePackage.RESOURCE: {
- Resource resource = (Resource) theEObject;
- T result = caseResource(resource);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case ResourcePackage.RESOURCE_EOBJECT: {
- ResourceEObject resourceEObject = (ResourceEObject) theEObject;
- T result = caseResourceEObject(resourceEObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Resource</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Resource</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseResource(Resource object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseResourceEObject(ResourceEObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!--
- * begin-user-doc --> This implementation returns null; returning a non-null result will
- * terminate the switch, but this is the last case anyway. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} // ResourceSwitch
diff --git a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceUtil.java b/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceUtil.java
deleted file mode 100644
index 1588043..0000000
--- a/deprecated/org.eclipse.papyrus.resource/src/org/eclipse/papyrus/resource/util/ResourceUtil.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * 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:
- * Tristan Faure (Atos Origin) tristan.faure@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.resource.util;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.resource.Resource;
-import org.eclipse.papyrus.resource.ResourceFactory;
-import org.eclipse.papyrus.resource.impl.ResourceImpl;
-
-/**
- * This class provides static methods to help users using Resources
- *
- * @author tristan.faure@atosorigin.com
- *
- */
-public class ResourceUtil {
-
- /**
- * Get in the EMF Resource of the eobject e the Resource Papyrus If it doesn't exist, it adds it
- *
- * @param e
- * the eobject contained in the resource browsed
- * @return the Resource or null if the parameter is null or if the eobject in parameter doesn't
- * have an EMF Resource
- */
- public static Resource getResource(EObject e) {
- if (e == null || e.eResource() == null) {
- return null;
- }
- return getResource(e.eResource());
- }
-
- /**
- * Get in the EMF Resource the Resource papyrus If it doesn't exist, it adds it
- *
- * @param eResource
- * the Papyrus Resource browsed
- * @return the Resource or null if the parameter is null
- */
- public static Resource getResource(org.eclipse.emf.ecore.resource.Resource eResource) {
- if (eResource == null) {
- return null;
- }
- Resource result = ResourceImpl.getResource(eResource);
- if (result == null) {
- result = ResourceFactory.eINSTANCE.createResource();
- result.setResource(eResource);
- }
- return result;
- }
-
- /**
- * Remove the Papyrus Resource from the EMF Resource of e
- *
- * @param e
- */
- public static void removeResource(EObject e) {
- if (e == null || e.eResource() == null) {
- return;
- }
- removeResource(e.eResource());
- }
-
- /**
- * Remove the Papyrus Resource from the EMF Resource eResource
- *
- * @param eResource
- */
- public static void removeResource(org.eclipse.emf.ecore.resource.Resource eResource) {
- if (eResource == null) {
- return;
- }
- Iterator<EObject> i = eResource.getContents().iterator();
- while (i.hasNext()) {
- EObject current = i.next();
- if (current instanceof Resource) {
- i.remove();
- }
- }
- }
-}