diff options
author | Jay Arthanareeswaran | 2020-04-29 07:38:38 +0000 |
---|---|---|
committer | Jay Arthanareeswaran | 2020-04-29 07:38:38 +0000 |
commit | 1f93561bae63c9cb26248cb8b8f2581c869490e1 (patch) | |
tree | 8575ce53667c1dab962d23f753563e24b07e8080 | |
parent | 954ea79a9532e06a3b2216eb824f6e9c52403095 (diff) | |
download | eclipse.jdt.core-1f93561bae63c9cb26248cb8b8f2581c869490e1.tar.gz eclipse.jdt.core-1f93561bae63c9cb26248cb8b8f2581c869490e1.tar.xz eclipse.jdt.core-1f93561bae63c9cb26248cb8b8f2581c869490e1.zip |
Use PlatformUI.getWorkbench() to avoid deprecated warning
Change-Id: I18a6ded6add759c7cbe3f01698ceeb30ce26947f
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
-rw-r--r-- | org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java index e70d4ea94b..1ae36aba13 100644 --- a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java +++ b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2019 BEA Systems, Inc. + * Copyright (c) 2005, 2020 BEA Systems, Inc. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -18,6 +18,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PlatformUI; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; @@ -68,7 +69,7 @@ public class AptUIPlugin extends AbstractUIPlugin { } public static IWorkbenchWindow getActiveWorkbenchWindow() { - return getDefault().getWorkbench().getActiveWorkbenchWindow(); + return PlatformUI.getWorkbench().getActiveWorkbenchWindow(); } public static Shell getActiveWorkbenchShell() { |