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

Make GraphicUtils::getURIString() private

* Use tooling.kernel's ResourceUtils::getResourceURI() instead

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



Signed-off-by: default avatarSimon Barner <barner@fortiss.org>
parent 369088f2
No related branches found
No related tags found
1 merge request!933939: FX Icon
GraphicUtils.java 46cfc991cd3ef787fec3f95751bc680d68479e26 GREEN
GraphicUtils.java 9373a2c7a5ebb0d87284d0f6f983348812e5b90d YELLOW
JavaFXUtils.java db3cf28289109ffec64c8f96c7b2de779a977b3b GREEN
......@@ -32,7 +32,7 @@ public class GraphicUtils {
private static final HashMap<String, Image> imageCache = new HashMap<>();
/** Returns the plugin-local URI string for the given resource. */
public static String getURIString(String pluginId, String localPath) {
private static String getURIString(String pluginId, String localPath) {
if(!pluginId.endsWith("/") && !localPath.startsWith("/")) {
localPath = "/" + localPath;
}
......@@ -41,6 +41,9 @@ public class GraphicUtils {
/** Returns the Java FX Image loaded from the plugin's local path. */
public static Image getFXImage(String pluginId, String localPath) {
if(pluginId == null || localPath == null) {
return null;
}
String uri = getURIString(pluginId, localPath);
if(uri == null) {
return 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