Skip to content

Commit b4b98c6

Browse files
committed
Stop using deprecated Platform.run method
Use SafeRunner.run directly
1 parent 68255e3 commit b4b98c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/decorators/FullDecoratorDefinition.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2015 IBM Corporation and others.
2+
* Copyright (c) 2000, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -15,7 +15,7 @@
1515

1616
import org.eclipse.core.runtime.CoreException;
1717
import org.eclipse.core.runtime.IConfigurationElement;
18-
import org.eclipse.core.runtime.Platform;
18+
import org.eclipse.core.runtime.SafeRunner;
1919
import org.eclipse.jface.util.SafeRunnable;
2020
import org.eclipse.jface.viewers.IBaseLabelProvider;
2121
import org.eclipse.jface.viewers.ILabelDecorator;
@@ -53,10 +53,10 @@ protected ILabelDecorator internalGetDecorator() throws CoreException {
5353
return null;
5454
}
5555

56-
final CoreException[] exceptions = new CoreException[1];
56+
CoreException[] exceptions = new CoreException[1];
5757

5858
if (decorator == null) {
59-
Platform.run(
59+
SafeRunner.run(
6060
new SafeRunnable(NLS.bind(WorkbenchMessages.DecoratorManager_ErrorActivatingDecorator, getName())) {
6161
@Override
6262
public void run() {

0 commit comments

Comments
 (0)