diff options
author | Alexander Kurtakov | 2019-10-25 14:51:29 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-10-27 12:51:03 +0000 |
commit | a6dc67e9fe55aa83376633dd5fd8b4b41beecd86 (patch) | |
tree | 76bd8c3e81892510736127b6b53bb1e3aab398d8 /org.eclipse.m2e.launching | |
parent | 92a86307e76e6ccec48ccaa8ab4071d7f26ebe6e (diff) | |
download | m2e-core-a6dc67e9fe55aa83376633dd5fd8b4b41beecd86.tar.gz m2e-core-a6dc67e9fe55aa83376633dd5fd8b4b41beecd86.tar.xz m2e-core-a6dc67e9fe55aa83376633dd5fd8b4b41beecd86.zip |
Move away of deprecated AbstractUIPlugin.getWorkbench.
Call PlatformUI.getWorkbench directly.
Change-Id: I88e4078a7ffa5d962e174d6326318b0f2c6f548a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.launching')
-rw-r--r-- | org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java index d935ea21..80d7b257 100644 --- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java +++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/actions/ExecutePomAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008-2018 Sonatype, Inc. and others. + * Copyright (c) 2008, 2019 Sonatype, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -55,6 +55,7 @@ import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IFileEditorInput; +import org.eclipse.ui.PlatformUI; import org.eclipse.ui.dialogs.ElementListSelectionDialog; import org.eclipse.m2e.core.MavenPlugin; @@ -62,7 +63,6 @@ import org.eclipse.m2e.core.internal.IMavenConstants; import org.eclipse.m2e.core.project.IMavenProjectFacade; import org.eclipse.m2e.core.project.IMavenProjectRegistry; import org.eclipse.m2e.core.project.ResolverConfiguration; -import org.eclipse.m2e.core.ui.internal.M2EUIPluginActivator; import org.eclipse.m2e.internal.launch.LaunchingUtils; import org.eclipse.m2e.internal.launch.Messages; import org.eclipse.m2e.ui.internal.launch.MavenLaunchMainTab; @@ -161,7 +161,7 @@ public class ExecutePomAction implements ILaunchShortcut, IExecutableExtension { } private Shell getShell() { - return M2EUIPluginActivator.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell(); + return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); } private IContainer findPomXmlBasedir(IContainer dir) { |