From f444806b98e392998dc472b9d915db6784422e8b Mon Sep 17 00:00:00 2001 From: RolandoMagico <75312877+RolandoMagico@users.noreply.github.com> Date: Sat, 23 Jan 2021 15:08:17 +0100 Subject: [PATCH] Fixed API compatibility --- Plugin/src/contextquickie2/plugin/Activator.java | 3 +-- .../plugin/EclipseExplorerContextMenuEntry.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Plugin/src/contextquickie2/plugin/Activator.java b/Plugin/src/contextquickie2/plugin/Activator.java index 5635fb8..48e3cb3 100644 --- a/Plugin/src/contextquickie2/plugin/Activator.java +++ b/Plugin/src/contextquickie2/plugin/Activator.java @@ -25,7 +25,6 @@ of this software and associated documentation files(the "Software"), to deal package contextquickie2.plugin; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.jface.resource.ResourceLocator; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; @@ -78,6 +77,6 @@ public static Activator getDefault() */ public static ImageDescriptor getImageDescriptor(final String path) { - return ResourceLocator.imageDescriptorFromBundle(PLUGIN_ID, path).get(); + return imageDescriptorFromPlugin(PLUGIN_ID, path); } } diff --git a/Plugin/src/contextquickie2/plugin/EclipseExplorerContextMenuEntry.java b/Plugin/src/contextquickie2/plugin/EclipseExplorerContextMenuEntry.java index 081120b..408fc0c 100644 --- a/Plugin/src/contextquickie2/plugin/EclipseExplorerContextMenuEntry.java +++ b/Plugin/src/contextquickie2/plugin/EclipseExplorerContextMenuEntry.java @@ -264,7 +264,6 @@ private IStatus waitForProcessToFinish(ProcessData processInfo, IProgressMonitor catch (InterruptedException e) { logger.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e)); - logger.error(e.getMessage(), e); return Status.CANCEL_STATUS; } }