Skip to content

Commit 7d41213

Browse files
committed
This change marks several deprecated, unused methods for removal and
internal deprecated methods being removed.
1 parent 9dee7b7 commit 7d41213

File tree

9 files changed

+20
-31
lines changed

9 files changed

+20
-31
lines changed

bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ExecutionEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public ExecutionEvent() {
8989
* @deprecated use
9090
* {@link ExecutionEvent#ExecutionEvent(Command, Map, Object, Object)}
9191
*/
92-
@Deprecated
92+
@Deprecated(forRemoval = true, since = "2025-12")
9393
public ExecutionEvent(@SuppressWarnings("rawtypes") final Map parameters, final Object trigger,
9494
final Object applicationContext) {
9595
this(null, parameters, trigger, applicationContext);

bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterizedCommand.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public final class ParameterizedCommand implements Comparable {
6363
*
6464
* @deprecated no longer used
6565
*/
66-
@Deprecated
66+
@Deprecated(forRemoval = true, since = "2025-12")
6767
public static final int INDEX_PARAMETER_ID = 0;
6868

6969
/**
@@ -72,7 +72,7 @@ public final class ParameterizedCommand implements Comparable {
7272
*
7373
* @deprecated no longer used
7474
*/
75-
@Deprecated
75+
@Deprecated(forRemoval = true, since = "2025-12")
7676
public static final int INDEX_PARAMETER_NAME = 1;
7777

7878
/**
@@ -81,15 +81,15 @@ public final class ParameterizedCommand implements Comparable {
8181
*
8282
* @deprecated no longer used
8383
*/
84-
@Deprecated
84+
@Deprecated(forRemoval = true, since = "2025-12")
8585
public static final int INDEX_PARAMETER_VALUE_NAME = 2;
8686

8787
/**
8888
* The index of the value of the parameter that the command can understand.
8989
*
9090
* @deprecated no longer used
9191
*/
92-
@Deprecated
92+
@Deprecated(forRemoval = true, since = "2025-12")
9393
public static final int INDEX_PARAMETER_VALUE_VALUE = 3;
9494

9595
/**
@@ -450,7 +450,7 @@ public boolean equals(final Object object) {
450450
* @deprecated Please use {@link #executeWithChecks(Object, Object)}
451451
* instead.
452452
*/
453-
@Deprecated
453+
@Deprecated(forRemoval = true, since = "2025-12")
454454
public Object execute(final Object trigger, final Object applicationContext)
455455
throws ExecutionException, NotHandledException {
456456
return command.execute(new ExecutionEvent(command, getParameterMap(), trigger, applicationContext));

bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/Diffs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private static <E> int listIndexOf(List<E> list, Object object, int index) {
361361
* <code>false</code> otherwise.
362362
* @deprecated Use {@link Objects#equals(Object, Object)} instead
363363
*/
364-
@Deprecated
364+
@Deprecated(forRemoval = true, since = "2025-12")
365365
public static final boolean equals(final Object left, final Object right) {
366366
return Objects.equals(left, right);
367367
}

bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/ObservablesManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void addContext(DataBindingContext context, boolean trackTargets, boolean
123123
* @param runnable the runnable to execute
124124
* @since 1.2
125125
*/
126-
@Deprecated(since = "1.11.0")
126+
@Deprecated(forRemoval = true, since = "2025-12")
127127
public void runAndCollect(Runnable runnable) {
128128
IObservable[] collected = ObservableTracker.runAndCollect(runnable);
129129
for (IObservable observable : collected) {

bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/helpers/URI.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ private static String[] fix(String[] segments)
542542
*/
543543
public static URI createURI(String uri)
544544
{
545-
return createURIWithCache(uri);
545+
return createURI(uri);
546546
}
547547

548548
/**
@@ -569,7 +569,7 @@ public static URI createURI(String uri)
569569
*/
570570
public static URI createURI(String uri, boolean ignoreEscaped)
571571
{
572-
return createURIWithCache(encodeURI(uri, ignoreEscaped, FRAGMENT_LAST_SEPARATOR));
572+
return createURI(encodeURI(uri, ignoreEscaped, FRAGMENT_LAST_SEPARATOR));
573573
}
574574

575575
/**
@@ -627,7 +627,7 @@ public static URI createURI(String uri, boolean ignoreEscaped)
627627
*/
628628
public static URI createURI(String uri, boolean ignoreEscaped, int fragmentLocationStyle)
629629
{
630-
return createURIWithCache(encodeURI(uri, ignoreEscaped, fragmentLocationStyle));
630+
return createURI(encodeURI(uri, ignoreEscaped, fragmentLocationStyle));
631631
}
632632

633633
/**
@@ -649,10 +649,10 @@ public static URI createURI(String uri, boolean ignoreEscaped, int fragmentLocat
649649
* @deprecated Use {@link #createURI(String) createURI}, which now has explicit
650650
* device support enabled. The two methods now operate identically.
651651
*/
652-
@Deprecated
652+
@Deprecated(forRemoval = true, since = "2025-12")
653653
public static URI createDeviceURI(String uri)
654654
{
655-
return createURIWithCache(uri);
655+
return createURI(uri);
656656
}
657657

658658
// Uses a cache to speed up creation of a URI from a string. The cache
@@ -667,7 +667,7 @@ public static URI createDeviceURI(String uri)
667667
*
668668
* @deprecated Please use {@link #createURI(String) createURI} instead.
669669
*/
670-
@Deprecated
670+
@Deprecated(forRemoval = true, since = "2025-12")
671671
public static URI createURIWithCache(String uri)
672672
{
673673
int i = uri.indexOf(FRAGMENT_SEPARATOR);
@@ -903,7 +903,7 @@ public static URI createFileURI(String pathName)
903903
* @see #createPlatformResourceURI(String, boolean)
904904
* @deprecated Use {@link #createPlatformResourceURI(String, boolean)} instead.
905905
*/
906-
@Deprecated
906+
@Deprecated(forRemoval = true, since = "2025-12")
907907
public static URI createPlatformResourceURI(String pathName)
908908
{
909909
return createPlatformResourceURI(pathName, ENCODE_PLATFORM_RESOURCE_URIS);
@@ -1191,7 +1191,7 @@ public static boolean validArchiveAuthority(String value)
11911191
* @deprecated As of EMF 2.0, replaced by {@link #validArchiveAuthority
11921192
* validArchiveAuthority}.
11931193
*/
1194-
@Deprecated
1194+
@Deprecated(forRemoval = true, since = "2025-12")
11951195
public static boolean validJarAuthority(String value)
11961196
{
11971197
return validArchiveAuthority(value);

bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/internal/css/swt/ICTabRendering.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*******************************************************************************/
1616
package org.eclipse.e4.ui.internal.css.swt;
1717

18-
import org.eclipse.core.runtime.ILog;
1918
import org.eclipse.swt.graphics.Color;
2019

2120
public interface ICTabRendering {
@@ -39,18 +38,8 @@ public interface ICTabRendering {
3938

4039
void setOuterKeyline(Color color);
4140

42-
@Deprecated(forRemoval = true)
43-
default void setShadowColor(Color color) {
44-
ILog.of(ICTabRendering.class).info("setShadowColor not supported anymore in platform renderer");
45-
}
46-
4741
void setCornerRadius(int radius);
4842

49-
@Deprecated(forRemoval = true)
50-
default void setShadowVisible(boolean visible) {
51-
ILog.of(ICTabRendering.class).info("setShadowVisible not supported anymore in platform renderer");
52-
}
53-
5443
/**
5544
* Sets whether to use a custom tab background (reusing tab colors and
5645
* gradients), or default one from plain CTabFolder (using widget background

bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/application/ui/basic/MWizardDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
* @model
3434
* @generated
3535
*/
36-
@Deprecated
36+
@Deprecated(forRemoval = true, since = "2025-12")
3737
public interface MWizardDialog extends MDialog {
3838
} // MWizardDialog

bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/ProgressManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class ProgressManager extends ProgressProvider {
6767
*
6868
* @deprecated use IProgressConstants#PROPERTY_IN_DIALOG instead
6969
*/
70-
@Deprecated
70+
@Deprecated(forRemoval = true, since = "2025-12")
7171
public static final QualifiedName PROPERTY_IN_DIALOG = IProgressConstants.PROPERTY_IN_DIALOG;
7272

7373
private static final String ERROR_JOB = "errorstate.svg"; //$NON-NLS-1$
@@ -622,7 +622,7 @@ public JobInfo removeJob(Job job) {
622622
* @deprecated use the more thread safe {@link #removeJob(Job)} instead. See bug
623623
* 558655.
624624
*/
625-
@Deprecated
625+
@Deprecated(forRemoval = true, since = "2025-12")
626626
public void removeJobInfo(JobInfo info) {
627627
removeJob(info.getJob());
628628
}

tests/org.eclipse.e4.emf.xpath.test/src/org/eclipse/e4/emf/xpath/test/model/xpathtest/impl/XpathtestFactoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public XpathtestPackage getXpathtestPackage() {
157157
* @deprecated
158158
* @generated
159159
*/
160-
@Deprecated
160+
@Deprecated(forRemoval = true, since = "2025-12")
161161
public static XpathtestPackage getPackage() {
162162
return XpathtestPackage.eINSTANCE;
163163
}

0 commit comments

Comments
 (0)