From ba4efd93fb68ab982635e3c6f39c30acb3ed850b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Sun, 19 Jan 2025 11:40:51 +0200 Subject: [PATCH] Mark AnimatorFactory(and friends) for removal These haven't been used at all since Eclipse 3.3. --- .../src/org/eclipse/jface/dialogs/AnimatorFactory.java | 4 ++-- .../src/org/eclipse/jface/dialogs/ControlAnimator.java | 9 +++++---- .../src/org/eclipse/jface/util/Policy.java | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java index 8d2ff58ac52..10e950d6e14 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/AnimatorFactory.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2015 IBM Corporation and others. + * Copyright (c) 2006, 2025 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -26,7 +26,7 @@ * @since 3.2 * @deprecated as of 3.3, this class is no longer used. */ -@Deprecated +@Deprecated(forRemoval = true, since = "2025-03") public class AnimatorFactory { /** * Creates a new ControlAnimator for use by JFace in animating diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java index 1a8ce645b3e..846abe25095 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ControlAnimator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2015 IBM Corporation and others. + * Copyright (c) 2006, 2025 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -21,13 +21,14 @@ /** * ControlAnimator provides a simple implementation to display or hide a control * at the bottom of the parent composite. Other animations will be written as - * subclasses of this class.

+ * subclasses of this class. + *

* Instances of this class can be created using an AnimatorFactory. * * @since 3.2 + * @deprecated as of 3.3, this class is no longer used */ - - +@Deprecated(forRemoval = true, since = "2025-03") public class ControlAnimator { /** the control that will be displayed or hidden */ protected Control control; diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java index 027086b3f6d..0f233c13b36 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2015 IBM Corporation and others. + * Copyright (c) 2004, 2025 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -211,7 +211,7 @@ public static void setComparator(Comparator comparator) { * @since 3.2 * @deprecated this is no longer in use as of 3.3 */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") public static void setAnimatorFactory(AnimatorFactory factory) { animatorFactory = factory; } @@ -224,7 +224,7 @@ public static void setAnimatorFactory(AnimatorFactory factory) { * @since 3.2 * @deprecated this is no longer in use as of 3.3 */ - @Deprecated + @Deprecated(forRemoval = true, since = "2025-03") public static AnimatorFactory getAnimatorFactory() { if (animatorFactory == null) animatorFactory = new AnimatorFactory();