diff options
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/InformationDesc.java | 15 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/JNLPFile.java | 2 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/Parser.java | 2 |
3 files changed, 5 insertions, 14 deletions
diff --git a/netx/net/sourceforge/jnlp/InformationDesc.java b/netx/net/sourceforge/jnlp/InformationDesc.java index f83329a..4d38d85 100644 --- a/netx/net/sourceforge/jnlp/InformationDesc.java +++ b/netx/net/sourceforge/jnlp/InformationDesc.java @@ -52,17 +52,13 @@ public class InformationDesc { /** the data as list of key,value pairs */ private List<Object> info; - /** the JNLPFile this information is for */ - private JNLPFile jnlpFile; /** * Create an information element object. * - * @param jnlpFile file that the information is for * @param locales the locales the information is for */ - public InformationDesc(JNLPFile jnlpFile, Locale locales[]) { - this.jnlpFile = jnlpFile; + public InformationDesc(Locale locales[]) { this.locales = locales; } @@ -171,6 +167,8 @@ public class InformationDesc { } } + // FIXME if there's no larger icon, choose the closest smaller icon + // instead of the first if (best == null) best = icons[0]; @@ -185,13 +183,6 @@ public class InformationDesc { } /** - * Returns the JNLPFile the information is for. - */ - public JNLPFile getJNLPFile() { - return jnlpFile; - } - - /** * Returns whether offline execution allowed. */ public boolean isOfflineAllowed() { diff --git a/netx/net/sourceforge/jnlp/JNLPFile.java b/netx/net/sourceforge/jnlp/JNLPFile.java index a48ed7e..3577482 100644 --- a/netx/net/sourceforge/jnlp/JNLPFile.java +++ b/netx/net/sourceforge/jnlp/JNLPFile.java @@ -371,7 +371,7 @@ public class JNLPFile { * through the specified locale. */ public InformationDesc getInformation(final Locale locale) { - return new InformationDesc(this, new Locale[] { locale }) { + return new InformationDesc(new Locale[] { locale }) { @Override protected List<Object> getItems(Object key) { List<Object> result = new ArrayList<Object>(); diff --git a/netx/net/sourceforge/jnlp/Parser.java b/netx/net/sourceforge/jnlp/Parser.java index efa6bcd..37e3c0f 100644 --- a/netx/net/sourceforge/jnlp/Parser.java +++ b/netx/net/sourceforge/jnlp/Parser.java @@ -494,7 +494,7 @@ class Parser { Locale locales[] = getLocales(node); // create information - InformationDesc info = new InformationDesc(file, locales); + InformationDesc info = new InformationDesc(locales); // step through the elements Node child = node.getFirstChild(); |