public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }
public URL toFileURL(URL url) throws IOException { URLConnection connection = url.openConnection(); if (connection instanceof BundleURLConnection) { URL result = ((BundleURLConnection) connection).getFileURL(); /* If we got a connection then we know the resource exists in * the bundle but if connection.getFileURL returned null then there * was a problem extracting the file to disk. See bug 259241. **/ if (result == null) throw new IOException(NLS.bind(Msg.ECLIPSE_PLUGIN_EXTRACTION_PROBLEM, url)); return result; } return url; }