Ejemplo n.º 1
0
  public URL toURL() {
    URL url = null;

    try {
      if (m_file != null) {
        url = m_file.toURI().toURL();
      } else if (m_entry != null) {
        String zipPath = m_composite.getName();
        String entry = m_entry.getName();
        url = new URL("jar:file:" + zipPath + "!/" + entry);
      } else if (m_composite != null) {
        url = m_composite.toURL();
      }
    } catch (IOException ex) {
      // } catch (MalformedURLException ex) {
    }

    return url;
  }