Skip to content
Snippets Groups Projects
Commit 606a10b1 authored by Simon Barner's avatar Simon Barner
Browse files

Use org.eclipse.jface.resource.ResourceLocator.imageDescriptorFromBundle

* Instead of deprecated method in AbstractUIPlugin

Issue-Ref: 3939
Issue-Url: https://af3-developer.fortiss.org/issues/3939



Signed-off-by: default avatarSimon Barner <barner@fortiss.org>
parent 67e7dc24
No related branches found
No related tags found
1 merge request!203939: FX Icons
AF3Application.java 9bd897f7c02bfffc9be41c4fcb9ceca088a574b4 GREEN
AF3ApplicationActivator.java 3f3a7bbe875ede3b265d7fa27e675961c5792e37 GREEN
AF3ApplicationActivator.java cf948c7116dae2311d06e2fa54f51fd05aa3f2e8 YELLOW
NewProjectContextMenu.java cda28ae7d66ca140f24d13ec2e205c02068c3dc1 GREEN
......@@ -15,6 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.rcp.application;
import static org.eclipse.jface.resource.ResourceLocator.imageDescriptorFromBundle;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
......@@ -70,7 +72,7 @@ public class AF3ApplicationActivator extends AbstractUIPlugin {
* relative path
*/
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
return imageDescriptorFromBundle(PLUGIN_ID, path).orElse(null);
}
/**
......
AF3HelpActivator.java ba9e079aa36be2c09780df324cdca9fcd280711e GREEN
AF3HelpActivator.java 0e4b9fee0114114c727b0df1b359bc00053f66db YELLOW
......@@ -15,6 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.rcp.help;
import static org.eclipse.jface.resource.ResourceLocator.imageDescriptorFromBundle;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
......@@ -53,6 +55,6 @@ public class AF3HelpActivator extends AbstractUIPlugin {
/** Returns an image descriptor for the image file at the given plug-in relative path. */
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
return imageDescriptorFromBundle(PLUGIN_ID, path).orElse(null);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment