Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-10-25 14:57:11 +0000
committerAlexander Kurtakov2019-10-27 15:40:11 +0000
commit643f2bb7ec80231751b7a653f38975b0a2938020 (patch)
tree65f45fe474ed44d97975fffb47eb216dc283dd87 /org.eclipse.m2e.editor
parenta6dc67e9fe55aa83376633dd5fd8b4b41beecd86 (diff)
downloadm2e-core-643f2bb7ec80231751b7a653f38975b0a2938020.tar.gz
m2e-core-643f2bb7ec80231751b7a653f38975b0a2938020.tar.xz
m2e-core-643f2bb7ec80231751b7a653f38975b0a2938020.zip
Move away of deprecated AbstractUIPlugin.imageDescriptorFromPlugin
Change-Id: Iffdb54a85087be2c2c2dc110a83bc708ee7dec7b Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
index fad30c39..4ac0bf69 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/MavenEditorImages.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2010 Sonatype, Inc.
+ * Copyright (c) 2008, 2019 Sonatype, Inc.
* 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
@@ -16,8 +16,8 @@ import org.slf4j.LoggerFactory;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.jface.resource.ResourceLocator;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
@@ -134,7 +134,7 @@ public class MavenEditorImages {
}
private static ImageDescriptor createDescriptor(String image) {
- return AbstractUIPlugin.imageDescriptorFromPlugin(MavenEditorPlugin.PLUGIN_ID, "icons/" + image); //$NON-NLS-1$
+ return ResourceLocator.imageDescriptorFromBundle(MavenEditorPlugin.PLUGIN_ID, "icons/" + image).get(); //$NON-NLS-1$
}
}

Back to the top