Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2018-11-12 04:52:26 -0500
committervincent lorenzo2018-11-12 07:59:11 -0500
commitc05fd538d64a06c765fee0d1289e006623d258c9 (patch)
tree72e078ecd83a08fc6fe09d49ad0a16b9fb543276
parent2183e773219d02bfe8c4d85af85212b4875173f1 (diff)
downloadorg.eclipse.papyrus-c05fd538d64a06c765fee0d1289e006623d258c9.tar.gz
org.eclipse.papyrus-c05fd538d64a06c765fee0d1289e006623d258c9.tar.xz
org.eclipse.papyrus-c05fd538d64a06c765fee0d1289e006623d258c9.zip
Bug 541029 - [Depreacted] Set duplicated classes as deprecated in org.eclipse.papyrus.infra.gmfdiag.tooling.runtime
- add the @Deprecated annotation - update the minor fo the plugin (required to be able to write since when the classes are deprecated) Change-Id: Ifdd261a4bee4590d3d97421efc3548ba7bad704f Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/META-INF/MANIFEST.MF2
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/pom.xml2
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/structure/DiagramStructure.java12
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/DiagramUpdater.java12
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterLinkDescriptor.java16
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterNodeDescriptor.java12
6 files changed, 43 insertions, 13 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/META-INF/MANIFEST.MF b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/META-INF/MANIFEST.MF
index 5719014ab50..56a6ab9c2c4 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/META-INF/MANIFEST.MF
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.papyrus.infra.gmfdiag.tooling.runtime;singleton:=true
-Bundle-Version: 3.0.0.qualifier
+Bundle-Version: 3.1.0.qualifier
Bundle-Vendor: %providerName
Bundle-Description: %Bundle-Description
Bundle-Localization: plugin
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/pom.xml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/pom.xml
index f1c1c3f6260..6ed4b1367d1 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/pom.xml
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/pom.xml
@@ -7,7 +7,7 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.papyrus.infra.gmfdiag.tooling.runtime</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <version>3.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<description>Papyrus fork of org.eclipse.gmf.tooling.runtime to remain in the release train</description>
</project> \ No newline at end of file
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/structure/DiagramStructure.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/structure/DiagramStructure.java
index c7a839dbeeb..571e29ee098 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/structure/DiagramStructure.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/structure/DiagramStructure.java
@@ -1,8 +1,18 @@
-package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.structure;
+package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.structure;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.notation.View;
+/**
+ *
+ * @deprecated since 3.1
+ * use {@link org.eclipse.papyrus.infra.gmfdiag.common.structure.DiagramStructure} API instead
+ *
+ * This class will be removed in Papyrus 5.0, see Bug 541027
+ *
+ *
+ */
+@Deprecated
public abstract class DiagramStructure {
public abstract int getVisualID(View view);
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/DiagramUpdater.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/DiagramUpdater.java
index 268183db178..22b65decc81 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/DiagramUpdater.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/DiagramUpdater.java
@@ -1,17 +1,17 @@
/*
* Copyright (c) 2012, Montages AG
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Michael Golubev (Montages) - initial API (#372479)
*/
-package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
+package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
import java.util.List;
@@ -19,7 +19,13 @@ import org.eclipse.gmf.runtime.notation.View;
/**
* @since 3.0
+ *
+ * @deprecated since 3.1
+ * use {@link org.eclipse.papyrus.infra.gmfdiag.common.updater.DiagramUpdater} API instead
+ *
+ * This class will be removed in Papyrus 5.0, see Bug 541027
*/
+@Deprecated
public interface DiagramUpdater {
public List<? extends UpdaterNodeDescriptor> getSemanticChildren(View view);
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterLinkDescriptor.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterLinkDescriptor.java
index 65f965e17ab..a499ecb38a7 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterLinkDescriptor.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterLinkDescriptor.java
@@ -1,18 +1,18 @@
/*
* Copyright (c) 2006, 2007, 2012 Borland Software Corporation and others
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
- * Alexander Shatalin (Borland) - original templates
+ * Alexander Shatalin (Borland) - original templates
* Michael Golubev (Montages) - API extracted to gmf.tooling.runtime (#372479)
*/
-package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
+package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.EObject;
@@ -21,7 +21,13 @@ import org.eclipse.gmf.runtime.emf.type.core.IElementType;
/**
* @since 3.0
+ *
+ * @deprecated since 3.1
+ * use {@link org.eclipse.papyrus.infra.gmfdiag.common.updater.UpdaterLinkDescriptor} API instead
+ *
+ * This class will be removed in Papyrus 5.0, see Bug 541027
*/
+@Deprecated
public class UpdaterLinkDescriptor extends UpdaterNodeDescriptor {
private EObject mySource;
@@ -40,6 +46,7 @@ public class UpdaterLinkDescriptor extends UpdaterNodeDescriptor {
this(source, destination, (EObject) null, linkVID);
mySemanticAdapter = new IAdaptable() {
+ @Override
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
if (IElementType.class.equals(adapter)) {
return elementType;
@@ -53,6 +60,7 @@ public class UpdaterLinkDescriptor extends UpdaterNodeDescriptor {
this(source, destination, linkElement, linkVID);
mySemanticAdapter = new EObjectAdapter(linkElement) {
+ @Override
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
if (IElementType.class.equals(adapter)) {
return elementType;
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterNodeDescriptor.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterNodeDescriptor.java
index 72287c6f328..81d6257d582 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterNodeDescriptor.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/update/UpdaterNodeDescriptor.java
@@ -1,24 +1,30 @@
/*
* Copyright (c) 2006, 2007, 2012 Borland Software Corporation and others
- *
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Alexander Shatalin (Borland) - original templates
* Michael Golubev (Montages) - API extracted to gmf.tooling.runtime (#372479)
*/
-package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
+package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.update;
import org.eclipse.emf.ecore.EObject;
/**
* @since 3.0
+ *
+ * @deprecated since 3.1
+ * use {@link org.eclipse.papyrus.infra.gmfdiag.common.updater.UpdaterNodeDescriptor} API instead
+ *
+ * This class will be removed in Papyrus 5.0, see Bug 541027
*/
+@Deprecated
public class UpdaterNodeDescriptor {
private final EObject myModelElement;

Back to the top