Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 14:17:25 +0000
committerLaurent Wouters2014-04-04 14:17:25 +0000
commit0ea91ae364d5f65ad0dace367aa3fef7fa8d1377 (patch)
treec8b13edc1e16632aae3d37070f03fb2d4fb1b9b4
parent0e07a6ec6b665e9ae7a31d4b9ac3e962c748c598 (diff)
downloadorg.eclipse.papyrus-0ea91ae364d5f65ad0dace367aa3fef7fa8d1377.tar.gz
org.eclipse.papyrus-0ea91ae364d5f65ad0dace367aa3fef7fa8d1377.tar.xz
org.eclipse.papyrus-0ea91ae364d5f65ad0dace367aa3fef7fa8d1377.zip
[clean] Retiring org.eclipse.papyrus.views.documentationlast/org.eclipse.papyrus.views.documentation
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/.classpath7
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/.project28
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/META-INF/MANIFEST.MF17
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/build.properties7
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/plugin.properties12
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/plugin.xml6
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/schema/documentationManager.exsd100
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/Activator.java43
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationManager.java131
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationManagerRegistry.java148
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationUnsupportedException.java27
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/IDocumentationChangedListener.java32
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/IDocumentationManager.java105
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/Messages.java38
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/eannotation/AddOrRemoveAssociatedResourceCommand.java152
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/eannotation/ChangeEAnnotationCommand.java150
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/eannotation/EAnnotationDocumentationManager.java161
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/eannotation/IEAnnotationConstants.java28
-rw-r--r--deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/messages.properties5
20 files changed, 0 insertions, 1225 deletions
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/.classpath b/deprecated/org.eclipse.papyrus.views.documentation/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/.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/org.eclipse.papyrus.views.documentation/.project b/deprecated/org.eclipse.papyrus.views.documentation/.project
deleted file mode 100644
index 6f2cf1dabb3..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.views.documentation</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.views.documentation/META-INF/MANIFEST.MF
deleted file mode 100644
index c8fbb49d90a..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport,
- org.eclipse.core.runtime,
- org.eclipse.core.commands
-Export-Package: org.eclipse.papyrus.views.documentation,
- org.eclipse.papyrus.views.documentation.eannotation
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 0.10.1.qualifier
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-Activator: org.eclipse.papyrus.views.documentation.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.views.documentation;singleton
- :=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/about.html b/deprecated/org.eclipse.papyrus.views.documentation/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/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>June 5, 2007</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>
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/build.properties b/deprecated/org.eclipse.papyrus.views.documentation/build.properties
deleted file mode 100644
index fc75f29690d..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-#Mon Sep 12 09:29:50 CEST 2011
-bin.includes=META-INF/,.,plugin.xml,schema/,plugin.properties,about.html
-output..=bin/
-src.includes = about.html
-source..=src/
-bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/plugin.properties b/deprecated/org.eclipse.papyrus.views.documentation/plugin.properties
deleted file mode 100644
index 9d6c640a44d..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#################################################################################
-# Copyright (c) 2010 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:
-# Atos Origin - Initial API and Implementation
-##################################################################################
-pluginName=Papyrus documentation manager (Incubation)
-providerName=Eclipse Modeling Project
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/plugin.xml b/deprecated/org.eclipse.papyrus.views.documentation/plugin.xml
deleted file mode 100644
index 21020b34feb..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/plugin.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension-point id="documentationManager" name="documentationManager" schema="schema/documentationManager.exsd"/>
-
-</plugin>
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/schema/documentationManager.exsd b/deprecated/org.eclipse.papyrus.views.documentation/schema/documentationManager.exsd
deleted file mode 100644
index 1ca36d98dcb..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/schema/documentationManager.exsd
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.papyrus.views.documentation" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.papyrus.views.documentation" id="modelDocumentationManager" name="modelDocumentationManager"/>
- </appinfo>
- <documentation>
- This extension is used to provide a way to get and set a documentation for an element of a specific meta-model.
-A generic implementation using EAnnotation on EModelElement is used if no other implementation is found for the current meta-model.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="documentationManager" minOccurs="0" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="documentationManager">
- <complexType>
- <attribute name="modelNsURI" type="string" use="required">
- <annotation>
- <documentation>
- The nsURI of the meta-model for which this implementation applies.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="managerClass" type="string" use="required">
- <annotation>
- <documentation>
- The implementation for the specified meta-model.
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.views.documentation.registry.IDocumentationManager"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="priority">
- <annotation>
- <documentation>
- This attribute is used to specify the priority of the contributed documentationManager.
-The documentationManager with the higher priority will be used. The behavior is unspecified if more than one documentationManager have the same modelNsURI and the same priority. Default value is Lowest.
- </documentation>
- </annotation>
- <simpleType>
- <restriction base="string">
- <enumeration value="Lowest">
- </enumeration>
- <enumeration value="Low">
- </enumeration>
- <enumeration value="Medium">
- </enumeration>
- <enumeration value="High">
- </enumeration>
- <enumeration value="Highest">
- </enumeration>
- </restriction>
- </simpleType>
- </attribute>
- </complexType>
- </element>
-
-
-
-
-
-
-</schema>
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/Activator.java b/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/Activator.java
deleted file mode 100644
index fb0b9db7978..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/Activator.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Mathieu Velten (Atos Origin) mathieu.velten@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.views.documentation;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- static BundleContext getContext() {
- return context;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-
-}
diff --git a/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationManager.java b/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationManager.java
deleted file mode 100644
index 0735303eec2..00000000000
--- a/deprecated/org.eclipse.papyrus.views.documentation/src/org/eclipse/papyrus/views/documentation/DocumentationManager.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 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:
- * Mathieu Velten (Atos Origin) mathieu.velten@atosorigin.com - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.views.documentation;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-
-
-/**
- * Helper class to access and modify documentation independently from the meta-model.
- * It also provides an easy way to be notified of documentation change.
- * The default implementation {@link EAnnotationDocumentationManager} uses an EAnnotation if it is available.
- *
- * @author mvelten
- *
- */
-public class DocumentationManager extends DocumentationManagerRegistry implements IDocumentationManager {
-
- private static class DocumentationManagerHolder {
-
- public static final DocumentationManager instance = new DocumentationManager();
- }
-
- public static DocumentationManager getInstance() {
- return DocumentationManagerHolder.instance;
- }
-
- private static Set<IDocumentationChangedListener> documentationChangedListeners = new HashSet<IDocumentationChangedListener>();
-
- /**
- * {@inheritDoc}
- */
- public String getDocumentation(EObject eObject) throws DocumentationUnsupportedException {
- if (eObject != null) {
- IDocumentationManager documentationManager = getDocumentationManager(eObject.eClass().getEPackage().getNsURI());
- if(documentationManager != null) {
- return documentationManager.getDocumentation(eObject);
- }
- }
- throw new DocumentationUnsupportedException(Messages.DocumentationManager_UnsupportedModelType);
- }
-
- /**
- * {@inheritDoc}
- */
- public Command getChangeDocumentationCommand(EObject eObject, String newDocumentation) {
- IDocumentationManager documentationManager = getDocumentationManager(eObject.eClass().getEPackage().getNsURI());
- if(documentationManager != null) {
- return documentationManager.getChangeDocumentationCommand(eObject, newDocumentation);
- }
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public Command getAddAssociatedResourceCommand(EObject eObject, URI resourceURI) {
- IDocumentationManager documentationManager = getDocumentationManager(eObject.eClass().getEPackage().getNsURI());
- if(documentationManager != null) {
- return documentationManager.getAddAssociatedResourceCommand(eObject, resourceURI);
- }
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public Command getRemoveAssociatedResourceCommand(EObject eObject, URI resourceURI) {
- IDocumentationManager documentationManager = getDocumentationManager(eObject.eClass().getEPackage().getNsURI());
- if(documentationManager != null) {
- return documentationManager.getRemoveAssociatedResourceCommand(eObject, resourceURI);
- }
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- public List<URI> getAssociatedResources(EObject eObject) throws DocumentationUnsupportedException {
- IDocumentationManager docum